From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/4] ARM: rpi: add clock for sdhost
Date: Sat, 27 Apr 2019 20:36:25 +0200 [thread overview]
Message-ID: <20190427183627.22549-3-l.stach@pengutronix.de> (raw)
In-Reply-To: <20190427183627.22549-1-l.stach@pengutronix.de>
The sdhost is driven by the core clock.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boards/raspberry-pi/rpi-common.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c
index bc877f853a..00ae49b686 100644
--- a/arch/arm/boards/raspberry-pi/rpi-common.c
+++ b/arch/arm/boards/raspberry-pi/rpi-common.c
@@ -319,6 +319,14 @@ static int rpi_clock_init(void)
clkdev_add_physbase(clk, 0x20300000, NULL);
clkdev_add_physbase(clk, 0x3f300000, NULL);
+ clk = rpi_register_firmware_clock(BCM2835_MBOX_CLOCK_ID_CORE,
+ "bcm2835_sdhost");
+ if (IS_ERR(clk))
+ return PTR_ERR(clk);
+
+ clkdev_add_physbase(clk, 0x20202000, NULL);
+ clkdev_add_physbase(clk, 0x3f202000, NULL);
+
return 0;
}
postconsole_initcall(rpi_clock_init);
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-04-27 18:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-27 18:36 [PATCH 0/4] BCM283x sdhost driver Lucas Stach
2019-04-27 18:36 ` [PATCH 1/4] mci: add driver for BCM283x sdhost core Lucas Stach
2019-04-29 7:42 ` Sascha Hauer
2019-04-27 18:36 ` Lucas Stach [this message]
2019-04-27 19:28 ` [PATCH 2/4] ARM: rpi: add clock for sdhost Sam Ravnborg
2019-04-27 18:36 ` [PATCH 3/4] ARM: rpi: enable sdhost driver in defconfig Lucas Stach
2019-04-27 18:36 ` [PATCH 4/4] ARM: rpi3: remove swapped sdhci and sdhost Lucas Stach
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=20190427183627.22549-3-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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