ARM: at91: prepare at91sam9rl DT transition
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 12 Mar 2014 09:43:37 +0000 (10:43 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 12 Mar 2014 10:30:21 +0000 (11:30 +0100)
Add the new names, coming from DT, for the clock lookups.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris BREZILLON <b.brezillon.dev@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91sam9rl.c

index 3651517abedfb1214386cabd93d7ab82844d16aa..4b6eb2df601ab0ed8787c5454e63d72fdca49ebe 100644 (file)
@@ -196,6 +196,23 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_ID("pioB", &pioB_clk),
        CLKDEV_CON_ID("pioC", &pioC_clk),
        CLKDEV_CON_ID("pioD", &pioD_clk),
+       /* more lookup table for DT entries */
+       CLKDEV_CON_DEV_ID("usart", "fffff200.serial", &mck),
+       CLKDEV_CON_DEV_ID("usart", "fffb0000.serial", &usart0_clk),
+       CLKDEV_CON_DEV_ID("usart", "ffffb400.serial", &usart1_clk),
+       CLKDEV_CON_DEV_ID("usart", "ffffb800.serial", &usart2_clk),
+       CLKDEV_CON_DEV_ID("usart", "ffffbc00.serial", &usart3_clk),
+       CLKDEV_CON_DEV_ID("t0_clk", "fffa0000.timer", &tc0_clk),
+       CLKDEV_CON_DEV_ID("t1_clk", "fffa0000.timer", &tc1_clk),
+       CLKDEV_CON_DEV_ID("t2_clk", "fffa0000.timer", &tc2_clk),
+       CLKDEV_CON_DEV_ID("mci_clk", "fffa4000.mmc", &mmc_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffa8000.i2c", &twi0_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffac000.i2c", &twi1_clk),
+       CLKDEV_CON_DEV_ID(NULL, "ffffc800.pwm", &pwm_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffff400.gpio", &pioA_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffff600.gpio", &pioB_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffff800.gpio", &pioC_clk),
+       CLKDEV_CON_DEV_ID(NULL, "fffffa00.gpio", &pioD_clk),
 };
 
 static struct clk_lookup usart_clocks_lookups[] = {