public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] dm: cpu: bmips: add BCM6338 support
Date: Mon, 15 May 2017 22:49:55 +0200	[thread overview]
Message-ID: <1494881397-8935-2-git-send-email-noltari@gmail.com> (raw)
In-Reply-To: <1494881397-8935-1-git-send-email-noltari@gmail.com>

BCM6338 has a fixed CPU frequency of 240 MHz.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
 drivers/cpu/bmips_cpu.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c
index 4f412fa..07a873a 100644
--- a/drivers/cpu/bmips_cpu.c
+++ b/drivers/cpu/bmips_cpu.c
@@ -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)
 {
 	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,
 };
 
+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 = {
 	.get_cpu_desc = bmips_short_cpu_desc,
 	.get_cpu_freq = bcm6348_get_cpu_freq,
@@ -307,6 +318,9 @@ static const struct udevice_id bmips_cpu_ids[] = {
 		.compatible = "brcm,bcm6328-cpu",
 		.data = (ulong)&bmips_cpu_bcm6328,
 	}, {
+		.compatible = "brcm,bcm6338-cpu",
+		.data = (ulong)&bmips_cpu_bcm6338,
+	}, {
 		.compatible = "brcm,bcm6348-cpu",
 		.data = (ulong)&bmips_cpu_bcm6348,
 	}, {
-- 
2.1.4

  reply	other threads:[~2017-05-15 20:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 20:49 [U-Boot] [PATCH 0/3] mips: bmips: add BCM6338 SoC support Álvaro Fernández Rojas
2017-05-15 20:49 ` Álvaro Fernández Rojas [this message]
2017-05-15 20:49 ` [U-Boot] [PATCH 2/3] MIPS: add support for Broadcom MIPS BCM6338 SoC family Álvaro Fernández Rojas
2017-05-15 20:49 ` [U-Boot] [PATCH 3/3] MIPS: add BMIPS Sagem F@ST1704 board Álvaro Fernández Rojas
2017-05-16 11:40   ` Daniel Schwierzeck
2017-05-16 16:46 ` [U-Boot] [PATCH v2 0/3] mips: bmips: add BCM6338 SoC support Álvaro Fernández Rojas
2017-05-16 16:46   ` [U-Boot] [PATCH v2 1/3] dm: cpu: bmips: add BCM6338 support Álvaro Fernández Rojas
2017-05-17  1:34     ` Simon Glass
2017-05-16 16:46   ` [U-Boot] [PATCH v2 2/3] MIPS: add support for Broadcom MIPS BCM6338 SoC family Álvaro Fernández Rojas
2017-05-17  1:34     ` Simon Glass
2017-05-16 16:46   ` [U-Boot] [PATCH v2 3/3] MIPS: add BMIPS Sagem F@ST1704 board Álvaro Fernández Rojas
2017-05-17  1:34     ` Simon Glass
2017-05-20 16:07   ` [U-Boot] [PATCH v2 0/3] mips: bmips: add BCM6338 SoC support Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1494881397-8935-2-git-send-email-noltari@gmail.com \
    --to=noltari@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox