From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ns.lynxeye.de ([87.118.118.114] helo=lynxeye.de) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKSCA-0003kV-J1 for barebox@lists.infradead.org; Sat, 27 Apr 2019 18:37:09 +0000 Received: from antimon.fritz.box (a89-183-44-132.net-htp.de [89.183.44.132]) by lynxeye.de (Postfix) with ESMTPA id 5D4E5E7421F for ; Sat, 27 Apr 2019 20:36:31 +0200 (CEST) From: Lucas Stach Date: Sat, 27 Apr 2019 20:36:25 +0200 Message-Id: <20190427183627.22549-3-l.stach@pengutronix.de> In-Reply-To: <20190427183627.22549-1-l.stach@pengutronix.de> References: <20190427183627.22549-1-l.stach@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/4] ARM: rpi: add clock for sdhost To: barebox@lists.infradead.org The sdhost is driven by the core clock. Signed-off-by: Lucas Stach --- 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