aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-06-24 14:04:33 -0400
committerShawn Guo <shawn.guo@linaro.org>2011-07-26 21:30:38 -0400
commitfe6b540ac033be6e9fa00dab1c8902dea0ad4016 (patch)
treeb71e37f03ba8e35667a1128b0d0356b46c6597b3 /arch/arm/mach-mx5
parentb0189cd087aa82bd23277cb5c8960ab030e13e5c (diff)
serial/imx: get rid of the uses of cpu_is_mx1()
The patch removes all the uses of cpu_is_mx1(). Instead, it uses the .id_table of platform_driver to distinguish the uart device type, IMX1_UART and IMX21_UART. The IMX21_UART type runs on all i.mx except i.mx1. A couple of !cpu_is_mx1 logic gets turned into is_imx21_uart, as the codes wrapped there are really IMX21 type uart specific. It also removes macro MX1_UCR3_REF25 and MX1_UCR3_REF30 which are not used anywhere. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Alan Cox <alan@linux.intel.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-mx5')
-rw-r--r--arch/arm/mach-mx5/clock-mx51-mx53.c18
1 files changed, 10 insertions, 8 deletions
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
1424static struct clk_lookup mx51_lookups[] = { 1424static 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
1472static struct clk_lookup mx53_lookups[] = { 1473static 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)