From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bk0-x235.google.com ([2a00:1450:4008:c01::235]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uuhad-000582-2O for barebox@lists.infradead.org; Thu, 04 Jul 2013 11:20:44 +0000 Received: by mail-bk0-f53.google.com with SMTP id e11so573361bkh.40 for ; Thu, 04 Jul 2013 04:20:16 -0700 (PDT) From: Sebastian Hesselbarth Date: Thu, 4 Jul 2013 13:20:07 +0200 Message-Id: <1372936808-728-1-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1372789849-12194-7-git-send-email-sebastian.hesselbarth@gmail.com> References: <1372789849-12194-7-git-send-email-sebastian.hesselbarth@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 v3 1/2] ARM: mvebu: add clock aliases for spi0/spi1 on Dove To: Sebastian Hesselbarth Cc: Thomas Petazzoni , barebox@lists.infradead.org This adds clock aliases for spi controllers found on Dove to allow spi driver to get tclk frequency. Signed-off-by: Sebastian Hesselbarth --- Changelog: v3: - add clock alias for Dove's spi0/spi1 devices to allow mvebu-spi to remove clk_lookup (Reported by Sascha Hauer) Note: This should be the last clock aliases added here. I prefer having a DT clk provider for those clocks instead. Either somebody is quicker than me, or I will provide one during this or next month. Cc: Thomas Petazzoni Cc: barebox@lists.infradead.org --- arch/arm/mach-mvebu/dove.c | 2 ++ arch/arm/mach-mvebu/include/mach/dove-regs.h | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mvebu/dove.c b/arch/arm/mach-mvebu/dove.c index 3909bf4..16ee116 100644 --- a/arch/arm/mach-mvebu/dove.c +++ b/arch/arm/mach-mvebu/dove.c @@ -124,6 +124,8 @@ static int dove_init_soc(void) dove_remap_mc_regs(); dove_init_clocks(); clkdev_add_physbase(tclk, (unsigned int)DOVE_TIMER_BASE, NULL); + clkdev_add_physbase(tclk, (unsigned int)DOVE_SPI0_BASE, NULL); + clkdev_add_physbase(tclk, (unsigned int)DOVE_SPI1_BASE, NULL); add_generic_device("orion-timer", DEVICE_ID_SINGLE, NULL, (unsigned int)DOVE_TIMER_BASE, 0x30, IORESOURCE_MEM, NULL); diff --git a/arch/arm/mach-mvebu/include/mach/dove-regs.h b/arch/arm/mach-mvebu/include/mach/dove-regs.h index 519457e..8b4319b 100644 --- a/arch/arm/mach-mvebu/include/mach/dove-regs.h +++ b/arch/arm/mach-mvebu/include/mach/dove-regs.h @@ -33,6 +33,9 @@ #define DOVE_UART_BASE (DOVE_INT_REGS_BASE + 0x12000) #define DOVE_UARTn_BASE(n) (DOVE_UART_BASE + ((n) * 0x100)) +#define DOVE_SPI0_BASE (DOVE_INT_REGS_BASE + 0x10600) +#define DOVE_SPI1_BASE (DOVE_INT_REGS_BASE + 0x14600) + #define DOVE_BRIDGE_BASE (DOVE_INT_REGS_BASE + 0x20000) #define INT_REGS_BASE_MAP 0x080 #define BRIDGE_RSTOUT_MASK 0x108 -- 1.7.2.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox