diff options
Diffstat (limited to 'arch/arm/mach-mx5/clock-mx51-mx53.c')
-rw-r--r-- | arch/arm/mach-mx5/clock-mx51-mx53.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index 785e1a336183..0a19e7567c0b 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c | |||
@@ -1191,6 +1191,11 @@ DEFINE_CLOCK(gpt_ipg_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG10_OFFSET, | |||
1191 | DEFINE_CLOCK(gpt_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG9_OFFSET, | 1191 | DEFINE_CLOCK(gpt_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG9_OFFSET, |
1192 | NULL, NULL, &ipg_clk, &gpt_ipg_clk); | 1192 | NULL, NULL, &ipg_clk, &gpt_ipg_clk); |
1193 | 1193 | ||
1194 | DEFINE_CLOCK(pwm1_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG6_OFFSET, | ||
1195 | NULL, NULL, &ipg_clk, NULL); | ||
1196 | DEFINE_CLOCK(pwm2_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG8_OFFSET, | ||
1197 | NULL, NULL, &ipg_clk, NULL); | ||
1198 | |||
1194 | /* I2C */ | 1199 | /* I2C */ |
1195 | DEFINE_CLOCK(i2c1_clk, 0, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG9_OFFSET, | 1200 | DEFINE_CLOCK(i2c1_clk, 0, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG9_OFFSET, |
1196 | NULL, NULL, &ipg_clk, NULL); | 1201 | NULL, NULL, &ipg_clk, NULL); |
@@ -1283,6 +1288,8 @@ static struct clk_lookup mx51_lookups[] = { | |||
1283 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 1288 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) |
1284 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 1289 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
1285 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 1290 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
1291 | _REGISTER_CLOCK("mxc_pwm.0", "pwm", pwm1_clk) | ||
1292 | _REGISTER_CLOCK("mxc_pwm.1", "pwm", pwm2_clk) | ||
1286 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | 1293 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) |
1287 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | 1294 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) |
1288 | _REGISTER_CLOCK("imx-i2c.2", NULL, hsi2c_clk) | 1295 | _REGISTER_CLOCK("imx-i2c.2", NULL, hsi2c_clk) |
@@ -1295,7 +1302,7 @@ static struct clk_lookup mx51_lookups[] = { | |||
1295 | _REGISTER_CLOCK("mxc-ehci.2", "usb_ahb", usb_ahb_clk) | 1302 | _REGISTER_CLOCK("mxc-ehci.2", "usb_ahb", usb_ahb_clk) |
1296 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usboh3_clk) | 1303 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usboh3_clk) |
1297 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", ahb_clk) | 1304 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", ahb_clk) |
1298 | _REGISTER_CLOCK("imx-keypad.0", NULL, kpp_clk) | 1305 | _REGISTER_CLOCK("imx-keypad", NULL, kpp_clk) |
1299 | _REGISTER_CLOCK("mxc_nand", NULL, nfc_clk) | 1306 | _REGISTER_CLOCK("mxc_nand", NULL, nfc_clk) |
1300 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) | 1307 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) |
1301 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) | 1308 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) |
@@ -1326,6 +1333,13 @@ static struct clk_lookup mx53_lookups[] = { | |||
1326 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 1333 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
1327 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 1334 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
1328 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) | 1335 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) |
1336 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | ||
1337 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | ||
1338 | _REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk) | ||
1339 | _REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_clk) | ||
1340 | _REGISTER_CLOCK("imx53-ecspi.0", NULL, ecspi1_clk) | ||
1341 | _REGISTER_CLOCK("imx53-ecspi.1", NULL, ecspi2_clk) | ||
1342 | _REGISTER_CLOCK("imx53-cspi.0", NULL, cspi_clk) | ||
1329 | }; | 1343 | }; |
1330 | 1344 | ||
1331 | static void clk_tree_init(void) | 1345 | static void clk_tree_init(void) |
@@ -1363,7 +1377,6 @@ int __init mx51_clocks_init(unsigned long ckil, unsigned long osc, | |||
1363 | 1377 | ||
1364 | clk_tree_init(); | 1378 | clk_tree_init(); |
1365 | 1379 | ||
1366 | clk_set_parent(&uart_root_clk, &pll3_sw_clk); | ||
1367 | clk_enable(&cpu_clk); | 1380 | clk_enable(&cpu_clk); |
1368 | clk_enable(&main_bus_clk); | 1381 | clk_enable(&main_bus_clk); |
1369 | 1382 | ||
@@ -1406,6 +1419,7 @@ int __init mx53_clocks_init(unsigned long ckil, unsigned long osc, | |||
1406 | 1419 | ||
1407 | clk_tree_init(); | 1420 | clk_tree_init(); |
1408 | 1421 | ||
1422 | clk_set_parent(&uart_root_clk, &pll3_sw_clk); | ||
1409 | clk_enable(&cpu_clk); | 1423 | clk_enable(&cpu_clk); |
1410 | clk_enable(&main_bus_clk); | 1424 | clk_enable(&main_bus_clk); |
1411 | 1425 | ||