mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
dm: cpu: bmips: add BCM6338 support
BCM6338 has a fixed CPU frequency of 240 MHz. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
c4203e1d73
commit
05fc9e686a
@@ -128,6 +128,11 @@ static ulong bcm6328_get_cpu_freq(struct bmips_cpu_priv *priv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static ulong bcm6338_get_cpu_freq(struct bmips_cpu_priv *priv)
|
||||||
|
{
|
||||||
|
return 240000000;
|
||||||
|
}
|
||||||
|
|
||||||
static ulong bcm6348_get_cpu_freq(struct bmips_cpu_priv *priv)
|
static ulong bcm6348_get_cpu_freq(struct bmips_cpu_priv *priv)
|
||||||
{
|
{
|
||||||
unsigned int tmp, n1, n2, m1;
|
unsigned int tmp, n1, n2, m1;
|
||||||
@@ -207,6 +212,12 @@ static const struct bmips_cpu_hw bmips_cpu_bcm6328 = {
|
|||||||
.get_cpu_count = bcm6328_get_cpu_count,
|
.get_cpu_count = bcm6328_get_cpu_count,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct bmips_cpu_hw bmips_cpu_bcm6338 = {
|
||||||
|
.get_cpu_desc = bmips_short_cpu_desc,
|
||||||
|
.get_cpu_freq = bcm6338_get_cpu_freq,
|
||||||
|
.get_cpu_count = bcm6345_get_cpu_count,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct bmips_cpu_hw bmips_cpu_bcm6348 = {
|
static const struct bmips_cpu_hw bmips_cpu_bcm6348 = {
|
||||||
.get_cpu_desc = bmips_short_cpu_desc,
|
.get_cpu_desc = bmips_short_cpu_desc,
|
||||||
.get_cpu_freq = bcm6348_get_cpu_freq,
|
.get_cpu_freq = bcm6348_get_cpu_freq,
|
||||||
@@ -306,6 +317,9 @@ static const struct udevice_id bmips_cpu_ids[] = {
|
|||||||
}, {
|
}, {
|
||||||
.compatible = "brcm,bcm6328-cpu",
|
.compatible = "brcm,bcm6328-cpu",
|
||||||
.data = (ulong)&bmips_cpu_bcm6328,
|
.data = (ulong)&bmips_cpu_bcm6328,
|
||||||
|
}, {
|
||||||
|
.compatible = "brcm,bcm6338-cpu",
|
||||||
|
.data = (ulong)&bmips_cpu_bcm6338,
|
||||||
}, {
|
}, {
|
||||||
.compatible = "brcm,bcm6348-cpu",
|
.compatible = "brcm,bcm6348-cpu",
|
||||||
.data = (ulong)&bmips_cpu_bcm6348,
|
.data = (ulong)&bmips_cpu_bcm6348,
|
||||||
|
Reference in New Issue
Block a user