diff options
Diffstat (limited to 'arch/arm/mach-lpc32xx/clock.c')
-rw-r--r-- | arch/arm/mach-lpc32xx/clock.c | 77 |
1 files changed, 35 insertions, 42 deletions
diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index 2fc24ca12054..f6a3ffec1f4b 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++ b/arch/arm/mach-lpc32xx/clock.c | |||
@@ -1095,49 +1095,42 @@ struct clk *clk_get_parent(struct clk *clk) | |||
1095 | } | 1095 | } |
1096 | EXPORT_SYMBOL(clk_get_parent); | 1096 | EXPORT_SYMBOL(clk_get_parent); |
1097 | 1097 | ||
1098 | #define _REGISTER_CLOCK(d, n, c) \ | ||
1099 | { \ | ||
1100 | .dev_id = (d), \ | ||
1101 | .con_id = (n), \ | ||
1102 | .clk = &(c), \ | ||
1103 | }, | ||
1104 | |||
1105 | static struct clk_lookup lookups[] = { | 1098 | static struct clk_lookup lookups[] = { |
1106 | _REGISTER_CLOCK(NULL, "osc_32KHz", osc_32KHz) | 1099 | CLKDEV_INIT(NULL, "osc_32KHz", &osc_32KHz), |
1107 | _REGISTER_CLOCK(NULL, "osc_pll397", osc_pll397) | 1100 | CLKDEV_INIT(NULL, "osc_pll397", &osc_pll397), |
1108 | _REGISTER_CLOCK(NULL, "osc_main", osc_main) | 1101 | CLKDEV_INIT(NULL, "osc_main", &osc_main), |
1109 | _REGISTER_CLOCK(NULL, "sys_ck", clk_sys) | 1102 | CLKDEV_INIT(NULL, "sys_ck", &clk_sys), |
1110 | _REGISTER_CLOCK(NULL, "arm_pll_ck", clk_armpll) | 1103 | CLKDEV_INIT(NULL, "arm_pll_ck", &clk_armpll), |
1111 | _REGISTER_CLOCK(NULL, "ck_pll5", clk_usbpll) | 1104 | CLKDEV_INIT(NULL, "ck_pll5", &clk_usbpll), |
1112 | _REGISTER_CLOCK(NULL, "hclk_ck", clk_hclk) | 1105 | CLKDEV_INIT(NULL, "hclk_ck", &clk_hclk), |
1113 | _REGISTER_CLOCK(NULL, "pclk_ck", clk_pclk) | 1106 | CLKDEV_INIT(NULL, "pclk_ck", &clk_pclk), |
1114 | _REGISTER_CLOCK(NULL, "timer0_ck", clk_timer0) | 1107 | CLKDEV_INIT(NULL, "timer0_ck", &clk_timer0), |
1115 | _REGISTER_CLOCK(NULL, "timer1_ck", clk_timer1) | 1108 | CLKDEV_INIT(NULL, "timer1_ck", &clk_timer1), |
1116 | _REGISTER_CLOCK(NULL, "timer2_ck", clk_timer2) | 1109 | CLKDEV_INIT(NULL, "timer2_ck", &clk_timer2), |
1117 | _REGISTER_CLOCK(NULL, "timer3_ck", clk_timer3) | 1110 | CLKDEV_INIT(NULL, "timer3_ck", &clk_timer3), |
1118 | _REGISTER_CLOCK(NULL, "vfp9_ck", clk_vfp9) | 1111 | CLKDEV_INIT(NULL, "vfp9_ck", &clk_vfp9), |
1119 | _REGISTER_CLOCK(NULL, "clk_dmac", clk_dma) | 1112 | CLKDEV_INIT("pl08xdmac", NULL, &clk_dma), |
1120 | _REGISTER_CLOCK("pnx4008-watchdog", NULL, clk_wdt) | 1113 | CLKDEV_INIT("4003c000.watchdog", NULL, &clk_wdt), |
1121 | _REGISTER_CLOCK(NULL, "uart3_ck", clk_uart3) | 1114 | CLKDEV_INIT(NULL, "uart3_ck", &clk_uart3), |
1122 | _REGISTER_CLOCK(NULL, "uart4_ck", clk_uart4) | 1115 | CLKDEV_INIT(NULL, "uart4_ck", &clk_uart4), |
1123 | _REGISTER_CLOCK(NULL, "uart5_ck", clk_uart5) | 1116 | CLKDEV_INIT(NULL, "uart5_ck", &clk_uart5), |
1124 | _REGISTER_CLOCK(NULL, "uart6_ck", clk_uart6) | 1117 | CLKDEV_INIT(NULL, "uart6_ck", &clk_uart6), |
1125 | _REGISTER_CLOCK("pnx-i2c.0", NULL, clk_i2c0) | 1118 | CLKDEV_INIT("400a0000.i2c", NULL, &clk_i2c0), |
1126 | _REGISTER_CLOCK("pnx-i2c.1", NULL, clk_i2c1) | 1119 | CLKDEV_INIT("400a8000.i2c", NULL, &clk_i2c1), |
1127 | _REGISTER_CLOCK("pnx-i2c.2", NULL, clk_i2c2) | 1120 | CLKDEV_INIT("31020300.i2c", NULL, &clk_i2c2), |
1128 | _REGISTER_CLOCK("dev:ssp0", NULL, clk_ssp0) | 1121 | CLKDEV_INIT("dev:ssp0", NULL, &clk_ssp0), |
1129 | _REGISTER_CLOCK("dev:ssp1", NULL, clk_ssp1) | 1122 | CLKDEV_INIT("dev:ssp1", NULL, &clk_ssp1), |
1130 | _REGISTER_CLOCK("lpc32xx_keys.0", NULL, clk_kscan) | 1123 | CLKDEV_INIT("lpc32xx_keys.0", NULL, &clk_kscan), |
1131 | _REGISTER_CLOCK("lpc32xx-nand.0", "nand_ck", clk_nand) | 1124 | CLKDEV_INIT("lpc32xx-nand.0", "nand_ck", &clk_nand), |
1132 | _REGISTER_CLOCK("lpc32xx-adc", NULL, clk_adc) | 1125 | CLKDEV_INIT("40048000.adc", NULL, &clk_adc), |
1133 | _REGISTER_CLOCK(NULL, "i2s0_ck", clk_i2s0) | 1126 | CLKDEV_INIT(NULL, "i2s0_ck", &clk_i2s0), |
1134 | _REGISTER_CLOCK(NULL, "i2s1_ck", clk_i2s1) | 1127 | CLKDEV_INIT(NULL, "i2s1_ck", &clk_i2s1), |
1135 | _REGISTER_CLOCK("ts-lpc32xx", NULL, clk_tsc) | 1128 | CLKDEV_INIT("40048000.tsc", NULL, &clk_tsc), |
1136 | _REGISTER_CLOCK("dev:mmc0", NULL, clk_mmc) | 1129 | CLKDEV_INIT("20098000.sd", NULL, &clk_mmc), |
1137 | _REGISTER_CLOCK("lpc-eth.0", NULL, clk_net) | 1130 | CLKDEV_INIT("31060000.ethernet", NULL, &clk_net), |
1138 | _REGISTER_CLOCK("dev:clcd", NULL, clk_lcd) | 1131 | CLKDEV_INIT("dev:clcd", NULL, &clk_lcd), |
1139 | _REGISTER_CLOCK("lpc32xx_udc", "ck_usbd", clk_usbd) | 1132 | CLKDEV_INIT("31020000.usbd", "ck_usbd", &clk_usbd), |
1140 | _REGISTER_CLOCK("lpc32xx_rtc", NULL, clk_rtc) | 1133 | CLKDEV_INIT("lpc32xx_rtc", NULL, &clk_rtc), |
1141 | }; | 1134 | }; |
1142 | 1135 | ||
1143 | static int __init clk_init(void) | 1136 | static int __init clk_init(void) |