From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 5.mo2.mail-out.ovh.net ([87.98.181.248] helo=mo2.mail-out.ovh.net) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1R3UX6-0003li-FI for barebox@lists.infradead.org; Tue, 13 Sep 2011 15:04:22 +0000 Received: from mail240.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 001A3DC7EC5 for ; Tue, 13 Sep 2011 17:05:20 +0200 (CEST) Date: Tue, 13 Sep 2011 16:42:38 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20110913144238.GC28104@game.jcrosoft.org> References: <20110912024629.GA28104@game.jcrosoft.org> <1315861521-32604-1-git-send-email-h.feurstein@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1315861521-32604-1-git-send-email-h.feurstein@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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] at91: add spi fake clock entries To: Hubert Feurstein Cc: barebox@lists.infradead.org There are not fake clock they are connection ID Best Regards, J. On 23:05 Mon 12 Sep , Hubert Feurstein wrote: > Signed-off-by: Hubert Feurstein > --- > arch/arm/mach-at91/at91sam9260.c | 7 +++++++ > arch/arm/mach-at91/at91sam9261.c | 7 +++++++ > arch/arm/mach-at91/at91sam9263.c | 2 ++ > arch/arm/mach-at91/at91sam9g45.c | 2 ++ > 4 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c > index c1f08e7..3af5747 100644 > --- a/arch/arm/mach-at91/at91sam9260.c > +++ b/arch/arm/mach-at91/at91sam9260.c > @@ -169,6 +169,11 @@ static struct clk *periph_clocks[] = { > // irq0 .. irq2 > }; > > +static struct clk_lookup periph_clocks_lookups[] = { > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi0", &spi0_clk), > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi1", &spi1_clk), > +}; > + > static struct clk_lookup usart_clocks_lookups[] = { > CLKDEV_CON_DEV_ID("usart", "atmel_usart0", &mck), > CLKDEV_CON_DEV_ID("usart", "atmel_usart1", &usart0_clk), > @@ -203,6 +208,8 @@ static void __init at91sam9260_register_clocks(void) > for (i = 0; i < ARRAY_SIZE(periph_clocks); i++) > clk_register(periph_clocks[i]); > > + clkdev_add_table(periph_clocks_lookups, > + ARRAY_SIZE(periph_clocks_lookups)); > clkdev_add_table(usart_clocks_lookups, > ARRAY_SIZE(usart_clocks_lookups)); > > diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c > index fbb8058..b1e09ef 100644 > --- a/arch/arm/mach-at91/at91sam9261.c > +++ b/arch/arm/mach-at91/at91sam9261.c > @@ -133,6 +133,11 @@ static struct clk *periph_clocks[] = { > // irq0 .. irq2 > }; > > +static struct clk_lookup periph_clocks_lookups[] = { > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi0", &spi0_clk), > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi1", &spi1_clk), > +}; > + > static struct clk_lookup usart_clocks_lookups[] = { > CLKDEV_CON_DEV_ID("usart", "atmel_usart0", &mck), > CLKDEV_CON_DEV_ID("usart", "atmel_usart1", &usart0_clk), > @@ -190,6 +195,8 @@ static void at91sam9261_register_clocks(void) > for (i = 0; i < ARRAY_SIZE(periph_clocks); i++) > clk_register(periph_clocks[i]); > > + clkdev_add_table(periph_clocks_lookups, > + ARRAY_SIZE(periph_clocks_lookups)); > clkdev_add_table(usart_clocks_lookups, > ARRAY_SIZE(usart_clocks_lookups)); > > diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c > index 12a7868..df2df7e 100644 > --- a/arch/arm/mach-at91/at91sam9263.c > +++ b/arch/arm/mach-at91/at91sam9263.c > @@ -166,6 +166,8 @@ static struct clk *periph_clocks[] = { > static struct clk_lookup periph_clocks_lookups[] = { > CLKDEV_CON_DEV_ID("mci_clk", "at91_mci0", &mmc0_clk), > CLKDEV_CON_DEV_ID("mci_clk", "at91_mci1", &mmc1_clk), > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi0", &spi0_clk), > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi1", &spi1_clk), > }; > > static struct clk_lookup usart_clocks_lookups[] = { > diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c > index d4c27f8..9c478cd 100644 > --- a/arch/arm/mach-at91/at91sam9g45.c > +++ b/arch/arm/mach-at91/at91sam9g45.c > @@ -191,6 +191,8 @@ static struct clk_lookup periph_clocks_lookups[] = { > CLKDEV_CON_ID("ohci_clk", &uhphs_clk), > CLKDEV_CON_DEV_ID("mci_clk", "atmel_mci0", &mmc0_clk), > CLKDEV_CON_DEV_ID("mci_clk", "atmel_mci1", &mmc1_clk), > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi0", &spi0_clk), > + CLKDEV_CON_DEV_ID("spi_clk", "atmel_spi1", &spi1_clk), > }; > > static struct clk_lookup usart_clocks_lookups[] = { > -- > 1.7.4.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox