From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UwRqs-0007sk-Tn for barebox@lists.infradead.org; Tue, 09 Jul 2013 06:56:44 +0000 Date: Tue, 9 Jul 2013 08:56:20 +0200 From: Sascha Hauer Message-ID: <20130709065620.GO516@pengutronix.de> References: <20130705065137.GH516@pengutronix.de> <1373059305-20443-1-git-send-email-sebastian.hesselbarth@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1373059305-20443-1-git-send-email-sebastian.hesselbarth@gmail.com> 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: Re: [PATCH RESEND] ARM: mvebu: add clock aliases for spi0/spi1 on Dove To: Sebastian Hesselbarth Cc: Thomas Petazzoni , barebox@lists.infradead.org On Fri, Jul 05, 2013 at 11:21:45PM +0200, Sebastian Hesselbarth wrote: > This adds clock aliases for spi controllers found on Dove to allow > spi driver to get tclk frequency. > > Signed-off-by: Sebastian Hesselbarth > --- > @Sascha: I forgot to update MVEBU SPI v4 patch numbering to indicate > that this patch is also required for the SPI driver to find its clock > with clk_get instead of clk_fixup. > > As stated in the original patch for SPI clock aliases, I am not planing > to add any more clk aliases like this but prefer to work on DT clk > provider first. > > Cc: Sascha Hauer > Cc: Thomas Petazzoni > Cc: barebox@lists.infradead.org Applied, thanks Sascha > --- > arch/arm/mach-mvebu/dove.c | 2 ++ > arch/arm/mach-mvebu/include/mach/dove-regs.h | 3 +++ > 2 files changed, 5 insertions(+) > > 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.10.4 > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox