[PATCH v3 3/3] at91sam9g45: add device tree gpio clocks

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 2 23:46:20 PDT 2014


On Tue, Sep 02, 2014 at 01:08:00PM +0200, Raphaël Poggi wrote:
> Signed-off-by: Raphaël Poggi <poggi.raph at gmail.com>
> ---
>  arch/arm/mach-at91/at91sam9g45.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c
> index d19d26a..8c020fa 100644
> --- a/arch/arm/mach-at91/at91sam9g45.c
> +++ b/arch/arm/mach-at91/at91sam9g45.c
> @@ -201,6 +201,11 @@ static struct clk_lookup periph_clocks_lookups[] = {
>  	CLKDEV_DEV_ID("at91rm9200-gpio2", &pioC_clk),
>  	CLKDEV_DEV_ID("at91rm9200-gpio3", &pioDE_clk),
>  	CLKDEV_DEV_ID("at91rm9200-gpio4", &pioDE_clk),
> +	CLKDEV_DEV_ID("fffff200.gpio", &pioA_clk),
> +	CLKDEV_DEV_ID("fffff400.gpio", &pioB_clk),
> +	CLKDEV_DEV_ID("fffff600.gpio", &pioC_clk),
> +	CLKDEV_DEV_ID("fffff800.gpio", &pioDE_clk),
> +	CLKDEV_DEV_ID("fffffa00.gpio", &pioDE_clk),

Same comment here as to the i2c clocks: Can you use
clkdev_add_physbase(), like this:

	clkdev_add_physbase(&pioA_clk, 0xfffff200, NULL);
	clkdev_add_physbase(&pioB_clk, 0xfffff400, NULL);
	clkdev_add_physbase(&pioC_clk, 0xfffff600, NULL);
	clkdev_add_physbase(&pioDE_clk, 0xfffff800, NULL);
	clkdev_add_physbase(&pioDE_clk, 0xfffffa00, NULL);

at91rm9200-gpiox clkdevs can be removed then.

Sascha

-- 
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 |



More information about the barebox mailing list