diff options
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r-- | arch/arm/mach-w90x900/clock.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/clock.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/cpu.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/vmalloc.h | 2 |
4 files changed, 13 insertions, 12 deletions
diff --git a/arch/arm/mach-w90x900/clock.c b/arch/arm/mach-w90x900/clock.c index b785994bab0a..2c371ff22e51 100644 --- a/arch/arm/mach-w90x900/clock.c +++ b/arch/arm/mach-w90x900/clock.c | |||
@@ -90,12 +90,3 @@ void nuc900_subclk_enable(struct clk *clk, int enable) | |||
90 | 90 | ||
91 | __raw_writel(clken, W90X900_VA_CLKPWR + SUBCLK); | 91 | __raw_writel(clken, W90X900_VA_CLKPWR + SUBCLK); |
92 | } | 92 | } |
93 | |||
94 | |||
95 | void clks_register(struct clk_lookup *clks, size_t num) | ||
96 | { | ||
97 | int i; | ||
98 | |||
99 | for (i = 0; i < num; i++) | ||
100 | clkdev_add(&clks[i]); | ||
101 | } | ||
diff --git a/arch/arm/mach-w90x900/clock.h b/arch/arm/mach-w90x900/clock.h index f5816a06eed6..c56ddab3d912 100644 --- a/arch/arm/mach-w90x900/clock.h +++ b/arch/arm/mach-w90x900/clock.h | |||
@@ -14,7 +14,6 @@ | |||
14 | 14 | ||
15 | void nuc900_clk_enable(struct clk *clk, int enable); | 15 | void nuc900_clk_enable(struct clk *clk, int enable); |
16 | void nuc900_subclk_enable(struct clk *clk, int enable); | 16 | void nuc900_subclk_enable(struct clk *clk, int enable); |
17 | void clks_register(struct clk_lookup *clks, size_t num); | ||
18 | 17 | ||
19 | struct clk { | 18 | struct clk { |
20 | unsigned long cken; | 19 | unsigned long cken; |
diff --git a/arch/arm/mach-w90x900/cpu.c b/arch/arm/mach-w90x900/cpu.c index 20dc0c96214d..642207e18198 100644 --- a/arch/arm/mach-w90x900/cpu.c +++ b/arch/arm/mach-w90x900/cpu.c | |||
@@ -45,6 +45,7 @@ static struct map_desc nuc900_iodesc[] __initdata = { | |||
45 | IODESC_ENT(UART), | 45 | IODESC_ENT(UART), |
46 | IODESC_ENT(TIMER), | 46 | IODESC_ENT(TIMER), |
47 | IODESC_ENT(EBI), | 47 | IODESC_ENT(EBI), |
48 | IODESC_ENT(GPIO), | ||
48 | }; | 49 | }; |
49 | 50 | ||
50 | /* Initial clock declarations. */ | 51 | /* Initial clock declarations. */ |
@@ -68,6 +69,11 @@ static DEFINE_CLK(gdma, 27); | |||
68 | static DEFINE_CLK(adc, 28); | 69 | static DEFINE_CLK(adc, 28); |
69 | static DEFINE_CLK(usi, 29); | 70 | static DEFINE_CLK(usi, 29); |
70 | static DEFINE_CLK(ext, 0); | 71 | static DEFINE_CLK(ext, 0); |
72 | static DEFINE_CLK(timer0, 19); | ||
73 | static DEFINE_CLK(timer1, 20); | ||
74 | static DEFINE_CLK(timer2, 21); | ||
75 | static DEFINE_CLK(timer3, 22); | ||
76 | static DEFINE_CLK(timer4, 23); | ||
71 | 77 | ||
72 | static struct clk_lookup nuc900_clkregs[] = { | 78 | static struct clk_lookup nuc900_clkregs[] = { |
73 | DEF_CLKLOOK(&clk_lcd, "nuc900-lcd", NULL), | 79 | DEF_CLKLOOK(&clk_lcd, "nuc900-lcd", NULL), |
@@ -90,6 +96,11 @@ static struct clk_lookup nuc900_clkregs[] = { | |||
90 | DEF_CLKLOOK(&clk_adc, "nuc900-adc", NULL), | 96 | DEF_CLKLOOK(&clk_adc, "nuc900-adc", NULL), |
91 | DEF_CLKLOOK(&clk_usi, "nuc900-spi", NULL), | 97 | DEF_CLKLOOK(&clk_usi, "nuc900-spi", NULL), |
92 | DEF_CLKLOOK(&clk_ext, NULL, "ext"), | 98 | DEF_CLKLOOK(&clk_ext, NULL, "ext"), |
99 | DEF_CLKLOOK(&clk_timer0, NULL, "timer0"), | ||
100 | DEF_CLKLOOK(&clk_timer1, NULL, "timer1"), | ||
101 | DEF_CLKLOOK(&clk_timer2, NULL, "timer2"), | ||
102 | DEF_CLKLOOK(&clk_timer3, NULL, "timer3"), | ||
103 | DEF_CLKLOOK(&clk_timer4, NULL, "timer4"), | ||
93 | }; | 104 | }; |
94 | 105 | ||
95 | /* Initial serial platform data */ | 106 | /* Initial serial platform data */ |
@@ -208,6 +219,6 @@ void __init nuc900_map_io(struct map_desc *mach_desc, int mach_size) | |||
208 | 219 | ||
209 | void __init nuc900_init_clocks(void) | 220 | void __init nuc900_init_clocks(void) |
210 | { | 221 | { |
211 | clks_register(nuc900_clkregs, ARRAY_SIZE(nuc900_clkregs)); | 222 | clkdev_add_table(nuc900_clkregs, ARRAY_SIZE(nuc900_clkregs)); |
212 | } | 223 | } |
213 | 224 | ||
diff --git a/arch/arm/mach-w90x900/include/mach/vmalloc.h b/arch/arm/mach-w90x900/include/mach/vmalloc.h index 2f9dfb928533..b067e44500a4 100644 --- a/arch/arm/mach-w90x900/include/mach/vmalloc.h +++ b/arch/arm/mach-w90x900/include/mach/vmalloc.h | |||
@@ -18,6 +18,6 @@ | |||
18 | #ifndef __ASM_ARCH_VMALLOC_H | 18 | #ifndef __ASM_ARCH_VMALLOC_H |
19 | #define __ASM_ARCH_VMALLOC_H | 19 | #define __ASM_ARCH_VMALLOC_H |
20 | 20 | ||
21 | #define VMALLOC_END (0xE0000000) | 21 | #define VMALLOC_END (0xe0000000UL) |
22 | 22 | ||
23 | #endif /* __ASM_ARCH_VMALLOC_H */ | 23 | #endif /* __ASM_ARCH_VMALLOC_H */ |