diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/clock-imx1.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx21.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx25.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx27.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx31.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx35.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-mx5/clock-mx51-mx53.c | 18 | ||||
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-imx-uart.c | 7 |
8 files changed, 44 insertions, 37 deletions
diff --git a/arch/arm/mach-imx/clock-imx1.c b/arch/arm/mach-imx/clock-imx1.c index dcc41728fe72..4aabeb241563 100644 --- a/arch/arm/mach-imx/clock-imx1.c +++ b/arch/arm/mach-imx/clock-imx1.c | |||
@@ -587,9 +587,9 @@ static struct clk_lookup lookups[] __initdata = { | |||
587 | _REGISTER_CLOCK(NULL, "mma", mma_clk) | 587 | _REGISTER_CLOCK(NULL, "mma", mma_clk) |
588 | _REGISTER_CLOCK("imx_udc.0", NULL, usbd_clk) | 588 | _REGISTER_CLOCK("imx_udc.0", NULL, usbd_clk) |
589 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 589 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
590 | _REGISTER_CLOCK("imx-uart.0", NULL, uart_clk) | 590 | _REGISTER_CLOCK("imx1-uart.0", NULL, uart_clk) |
591 | _REGISTER_CLOCK("imx-uart.1", NULL, uart_clk) | 591 | _REGISTER_CLOCK("imx1-uart.1", NULL, uart_clk) |
592 | _REGISTER_CLOCK("imx-uart.2", NULL, uart_clk) | 592 | _REGISTER_CLOCK("imx1-uart.2", NULL, uart_clk) |
593 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk) | 593 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk) |
594 | _REGISTER_CLOCK("imx1-cspi.0", NULL, spi_clk) | 594 | _REGISTER_CLOCK("imx1-cspi.0", NULL, spi_clk) |
595 | _REGISTER_CLOCK("imx1-cspi.1", NULL, spi_clk) | 595 | _REGISTER_CLOCK("imx1-cspi.1", NULL, spi_clk) |
diff --git a/arch/arm/mach-imx/clock-imx21.c b/arch/arm/mach-imx/clock-imx21.c index bf30a8c7ce6f..ee15d8c9db08 100644 --- a/arch/arm/mach-imx/clock-imx21.c +++ b/arch/arm/mach-imx/clock-imx21.c | |||
@@ -1162,10 +1162,10 @@ static struct clk_lookup lookups[] = { | |||
1162 | _REGISTER_CLOCK(NULL, "perclk3", per_clk[2]) | 1162 | _REGISTER_CLOCK(NULL, "perclk3", per_clk[2]) |
1163 | _REGISTER_CLOCK(NULL, "perclk4", per_clk[3]) | 1163 | _REGISTER_CLOCK(NULL, "perclk4", per_clk[3]) |
1164 | _REGISTER_CLOCK(NULL, "clko", clko_clk) | 1164 | _REGISTER_CLOCK(NULL, "clko", clko_clk) |
1165 | _REGISTER_CLOCK("imx-uart.0", NULL, uart_clk[0]) | 1165 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart_clk[0]) |
1166 | _REGISTER_CLOCK("imx-uart.1", NULL, uart_clk[1]) | 1166 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart_clk[1]) |
1167 | _REGISTER_CLOCK("imx-uart.2", NULL, uart_clk[2]) | 1167 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart_clk[2]) |
1168 | _REGISTER_CLOCK("imx-uart.3", NULL, uart_clk[3]) | 1168 | _REGISTER_CLOCK("imx21-uart.3", NULL, uart_clk[3]) |
1169 | _REGISTER_CLOCK(NULL, "gpt1", gpt_clk[0]) | 1169 | _REGISTER_CLOCK(NULL, "gpt1", gpt_clk[0]) |
1170 | _REGISTER_CLOCK(NULL, "gpt1", gpt_clk[1]) | 1170 | _REGISTER_CLOCK(NULL, "gpt1", gpt_clk[1]) |
1171 | _REGISTER_CLOCK(NULL, "gpt1", gpt_clk[2]) | 1171 | _REGISTER_CLOCK(NULL, "gpt1", gpt_clk[2]) |
diff --git a/arch/arm/mach-imx/clock-imx25.c b/arch/arm/mach-imx/clock-imx25.c index af1c580b06bc..006b30e4b4e7 100644 --- a/arch/arm/mach-imx/clock-imx25.c +++ b/arch/arm/mach-imx/clock-imx25.c | |||
@@ -272,11 +272,12 @@ DEFINE_CLOCK(can2_clk, 1, CCM_CGCR1, 3, get_rate_ipg, NULL, NULL); | |||
272 | }, | 272 | }, |
273 | 273 | ||
274 | static struct clk_lookup lookups[] = { | 274 | static struct clk_lookup lookups[] = { |
275 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 275 | /* i.mx25 has the i.mx21 type uart */ |
276 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 276 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart1_clk) |
277 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 277 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart2_clk) |
278 | _REGISTER_CLOCK("imx-uart.3", NULL, uart4_clk) | 278 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart3_clk) |
279 | _REGISTER_CLOCK("imx-uart.4", NULL, uart5_clk) | 279 | _REGISTER_CLOCK("imx21-uart.3", NULL, uart4_clk) |
280 | _REGISTER_CLOCK("imx21-uart.4", NULL, uart5_clk) | ||
280 | _REGISTER_CLOCK("mxc-ehci.0", "usb", usbotg_clk) | 281 | _REGISTER_CLOCK("mxc-ehci.0", "usb", usbotg_clk) |
281 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usbotg_clk) | 282 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usbotg_clk) |
282 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) | 283 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) |
diff --git a/arch/arm/mach-imx/clock-imx27.c b/arch/arm/mach-imx/clock-imx27.c index 583f2515c1d5..8c9a681ebfc1 100644 --- a/arch/arm/mach-imx/clock-imx27.c +++ b/arch/arm/mach-imx/clock-imx27.c | |||
@@ -624,12 +624,13 @@ DEFINE_CLOCK1(csi_clk, 0, NULL, 0, parent, &csi_clk1, &per4_clk); | |||
624 | }, | 624 | }, |
625 | 625 | ||
626 | static struct clk_lookup lookups[] = { | 626 | static struct clk_lookup lookups[] = { |
627 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 627 | /* i.mx27 has the i.mx21 type uart */ |
628 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 628 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart1_clk) |
629 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 629 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart2_clk) |
630 | _REGISTER_CLOCK("imx-uart.3", NULL, uart4_clk) | 630 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart3_clk) |
631 | _REGISTER_CLOCK("imx-uart.4", NULL, uart5_clk) | 631 | _REGISTER_CLOCK("imx21-uart.3", NULL, uart4_clk) |
632 | _REGISTER_CLOCK("imx-uart.5", NULL, uart6_clk) | 632 | _REGISTER_CLOCK("imx21-uart.4", NULL, uart5_clk) |
633 | _REGISTER_CLOCK("imx21-uart.5", NULL, uart6_clk) | ||
633 | _REGISTER_CLOCK(NULL, "gpt1", gpt1_clk) | 634 | _REGISTER_CLOCK(NULL, "gpt1", gpt1_clk) |
634 | _REGISTER_CLOCK(NULL, "gpt2", gpt2_clk) | 635 | _REGISTER_CLOCK(NULL, "gpt2", gpt2_clk) |
635 | _REGISTER_CLOCK(NULL, "gpt3", gpt3_clk) | 636 | _REGISTER_CLOCK(NULL, "gpt3", gpt3_clk) |
diff --git a/arch/arm/mach-imx/clock-imx31.c b/arch/arm/mach-imx/clock-imx31.c index 25f343fca2b9..8d212a93ee7f 100644 --- a/arch/arm/mach-imx/clock-imx31.c +++ b/arch/arm/mach-imx/clock-imx31.c | |||
@@ -547,11 +547,12 @@ static struct clk_lookup lookups[] = { | |||
547 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usb_clk1) | 547 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usb_clk1) |
548 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", usb_clk2) | 548 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", usb_clk2) |
549 | _REGISTER_CLOCK("mx3-camera.0", NULL, csi_clk) | 549 | _REGISTER_CLOCK("mx3-camera.0", NULL, csi_clk) |
550 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 550 | /* i.mx31 has the i.mx21 type uart */ |
551 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 551 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart1_clk) |
552 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 552 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart2_clk) |
553 | _REGISTER_CLOCK("imx-uart.3", NULL, uart4_clk) | 553 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart3_clk) |
554 | _REGISTER_CLOCK("imx-uart.4", NULL, uart5_clk) | 554 | _REGISTER_CLOCK("imx21-uart.3", NULL, uart4_clk) |
555 | _REGISTER_CLOCK("imx21-uart.4", NULL, uart5_clk) | ||
555 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | 556 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) |
556 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | 557 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) |
557 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c3_clk) | 558 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c3_clk) |
diff --git a/arch/arm/mach-imx/clock-imx35.c b/arch/arm/mach-imx/clock-imx35.c index 5a4cc1ea405b..b44cb065e629 100644 --- a/arch/arm/mach-imx/clock-imx35.c +++ b/arch/arm/mach-imx/clock-imx35.c | |||
@@ -486,9 +486,10 @@ static struct clk_lookup lookups[] = { | |||
486 | _REGISTER_CLOCK(NULL, "spdif", spdif_clk) | 486 | _REGISTER_CLOCK(NULL, "spdif", spdif_clk) |
487 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) | 487 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) |
488 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) | 488 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) |
489 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 489 | /* i.mx35 has the i.mx21 type uart */ |
490 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 490 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart1_clk) |
491 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 491 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart2_clk) |
492 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart3_clk) | ||
492 | _REGISTER_CLOCK("mxc-ehci.0", "usb", usbotg_clk) | 493 | _REGISTER_CLOCK("mxc-ehci.0", "usb", usbotg_clk) |
493 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usbotg_clk) | 494 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usbotg_clk) |
494 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) | 495 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) |
diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index 23cd809fa8b8..b8119e8fb519 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c | |||
@@ -1422,9 +1422,10 @@ DEFINE_CLOCK(ipu_di1_clk, 0, MXC_CCM_CCGR6, MXC_CCM_CCGRx_CG6_OFFSET, | |||
1422 | }, | 1422 | }, |
1423 | 1423 | ||
1424 | static struct clk_lookup mx51_lookups[] = { | 1424 | static struct clk_lookup mx51_lookups[] = { |
1425 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 1425 | /* i.mx51 has the i.mx21 type uart */ |
1426 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 1426 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart1_clk) |
1427 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 1427 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart2_clk) |
1428 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart3_clk) | ||
1428 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 1429 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
1429 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 1430 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
1430 | _REGISTER_CLOCK("mxc_pwm.0", "pwm", pwm1_clk) | 1431 | _REGISTER_CLOCK("mxc_pwm.0", "pwm", pwm1_clk) |
@@ -1470,11 +1471,12 @@ static struct clk_lookup mx51_lookups[] = { | |||
1470 | }; | 1471 | }; |
1471 | 1472 | ||
1472 | static struct clk_lookup mx53_lookups[] = { | 1473 | static struct clk_lookup mx53_lookups[] = { |
1473 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 1474 | /* i.mx53 has the i.mx21 type uart */ |
1474 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 1475 | _REGISTER_CLOCK("imx21-uart.0", NULL, uart1_clk) |
1475 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 1476 | _REGISTER_CLOCK("imx21-uart.1", NULL, uart2_clk) |
1476 | _REGISTER_CLOCK("imx-uart.3", NULL, uart4_clk) | 1477 | _REGISTER_CLOCK("imx21-uart.2", NULL, uart3_clk) |
1477 | _REGISTER_CLOCK("imx-uart.4", NULL, uart5_clk) | 1478 | _REGISTER_CLOCK("imx21-uart.3", NULL, uart4_clk) |
1479 | _REGISTER_CLOCK("imx21-uart.4", NULL, uart5_clk) | ||
1478 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 1480 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
1479 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 1481 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
1480 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) | 1482 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) |
diff --git a/arch/arm/plat-mxc/devices/platform-imx-uart.c b/arch/arm/plat-mxc/devices/platform-imx-uart.c index cfce8c918b73..2020d84956c3 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-uart.c +++ b/arch/arm/plat-mxc/devices/platform-imx-uart.c | |||
@@ -152,7 +152,7 @@ struct platform_device *__init imx_add_imx_uart_3irq( | |||
152 | }, | 152 | }, |
153 | }; | 153 | }; |
154 | 154 | ||
155 | return imx_add_platform_device("imx-uart", data->id, res, | 155 | return imx_add_platform_device("imx1-uart", data->id, res, |
156 | ARRAY_SIZE(res), pdata, sizeof(*pdata)); | 156 | ARRAY_SIZE(res), pdata, sizeof(*pdata)); |
157 | } | 157 | } |
158 | 158 | ||
@@ -172,6 +172,7 @@ struct platform_device *__init imx_add_imx_uart_1irq( | |||
172 | }, | 172 | }, |
173 | }; | 173 | }; |
174 | 174 | ||
175 | return imx_add_platform_device("imx-uart", data->id, res, ARRAY_SIZE(res), | 175 | /* i.mx21 type uart runs on all i.mx except i.mx1 */ |
176 | pdata, sizeof(*pdata)); | 176 | return imx_add_platform_device("imx21-uart", data->id, |
177 | res, ARRAY_SIZE(res), pdata, sizeof(*pdata)); | ||
177 | } | 178 | } |