ARM: 5948/1: Enable timer0 to time4 clock support for nuc910
authorwanzongshun <mcuos.com@gmail.com>
Fri, 19 Feb 2010 04:21:51 +0000 (05:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 21 Feb 2010 22:22:23 +0000 (22:22 +0000)
Enable timer0 to time4 clock support for nuc910

Signed-off-by: Wang Qiang <rurality.linux@gmail.com>
Signed-off-by: Wang Zongshun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-w90x900/cpu.c

index 20dc0c96214dcae4e93bb67910e5c0027eb6cf8f..dd8e1fdc5fcad21defbc0a42a601f12c9e0791ca 100644 (file)
@@ -68,6 +68,11 @@ static DEFINE_CLK(gdma, 27);
 static DEFINE_CLK(adc, 28);
 static DEFINE_CLK(usi, 29);
 static DEFINE_CLK(ext, 0);
+static DEFINE_CLK(timer0, 19);
+static DEFINE_CLK(timer1, 20);
+static DEFINE_CLK(timer2, 21);
+static DEFINE_CLK(timer3, 22);
+static DEFINE_CLK(timer4, 23);
 
 static struct clk_lookup nuc900_clkregs[] = {
        DEF_CLKLOOK(&clk_lcd, "nuc900-lcd", NULL),
@@ -90,6 +95,11 @@ static struct clk_lookup nuc900_clkregs[] = {
        DEF_CLKLOOK(&clk_adc, "nuc900-adc", NULL),
        DEF_CLKLOOK(&clk_usi, "nuc900-spi", NULL),
        DEF_CLKLOOK(&clk_ext, NULL, "ext"),
+       DEF_CLKLOOK(&clk_timer0, NULL, "timer0"),
+       DEF_CLKLOOK(&clk_timer1, NULL, "timer1"),
+       DEF_CLKLOOK(&clk_timer2, NULL, "timer2"),
+       DEF_CLKLOOK(&clk_timer3, NULL, "timer3"),
+       DEF_CLKLOOK(&clk_timer4, NULL, "timer4"),
 };
 
 /* Initial serial platform data */