提交 603058f4 编写于 作者: Á Álvaro Fernández Rojas 提交者: Daniel Schwierzeck

dm: cpu: bmips: add BCM3380 support

As far as I know BCM3380 has a fixed CPU frequency since I couldn't find its
PLL registers in any documentation.
Signed-off-by: NÁlvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 5e14ce2f
...@@ -96,6 +96,11 @@ static int bmips_long_cpu_desc(struct bmips_cpu_priv *priv, char *buf, ...@@ -96,6 +96,11 @@ static int bmips_long_cpu_desc(struct bmips_cpu_priv *priv, char *buf,
return 0; return 0;
} }
static ulong bcm3380_get_cpu_freq(struct bmips_cpu_priv *priv)
{
return 333000000;
}
static ulong bcm6328_get_cpu_freq(struct bmips_cpu_priv *priv) static ulong bcm6328_get_cpu_freq(struct bmips_cpu_priv *priv)
{ {
unsigned int mips_pll_fcvo; unsigned int mips_pll_fcvo;
...@@ -190,6 +195,12 @@ static int bcm6358_get_cpu_count(struct bmips_cpu_priv *priv) ...@@ -190,6 +195,12 @@ static int bcm6358_get_cpu_count(struct bmips_cpu_priv *priv)
return 2; return 2;
} }
static const struct bmips_cpu_hw bmips_cpu_bcm3380 = {
.get_cpu_desc = bmips_short_cpu_desc,
.get_cpu_freq = bcm3380_get_cpu_freq,
.get_cpu_count = bcm6358_get_cpu_count,
};
static const struct bmips_cpu_hw bmips_cpu_bcm6328 = { static const struct bmips_cpu_hw bmips_cpu_bcm6328 = {
.get_cpu_desc = bmips_long_cpu_desc, .get_cpu_desc = bmips_long_cpu_desc,
.get_cpu_freq = bcm6328_get_cpu_freq, .get_cpu_freq = bcm6328_get_cpu_freq,
...@@ -290,6 +301,9 @@ int bmips_cpu_probe(struct udevice *dev) ...@@ -290,6 +301,9 @@ int bmips_cpu_probe(struct udevice *dev)
static const struct udevice_id bmips_cpu_ids[] = { static const struct udevice_id bmips_cpu_ids[] = {
{ {
.compatible = "brcm,bcm3380-cpu",
.data = (ulong)&bmips_cpu_bcm3380,
}, {
.compatible = "brcm,bcm6328-cpu", .compatible = "brcm,bcm6328-cpu",
.data = (ulong)&bmips_cpu_bcm6328, .data = (ulong)&bmips_cpu_bcm6328,
}, { }, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册