diff options
-rw-r--r-- | arch/arm/mach-mx5/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-mx5/board-mx53_evk.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-mx5/clock-mx51-mx53.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx5/devices-imx53.h | 5 | ||||
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx53.h | 16 |
6 files changed, 31 insertions, 8 deletions
diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig index 632d711f1925..23b0e3f5cad7 100644 --- a/arch/arm/mach-mx5/Kconfig +++ b/arch/arm/mach-mx5/Kconfig | |||
@@ -125,6 +125,7 @@ config MACH_MX53_EVK | |||
125 | select SOC_IMX53 | 125 | select SOC_IMX53 |
126 | select IMX_HAVE_PLATFORM_IMX_UART | 126 | select IMX_HAVE_PLATFORM_IMX_UART |
127 | select IMX_HAVE_PLATFORM_IMX_I2C | 127 | select IMX_HAVE_PLATFORM_IMX_I2C |
128 | select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX | ||
128 | help | 129 | help |
129 | Include support for MX53 EVK platform. This includes specific | 130 | Include support for MX53 EVK platform. This includes specific |
130 | configurations for the board and its peripherals. | 131 | configurations for the board and its peripherals. |
diff --git a/arch/arm/mach-mx5/board-mx53_evk.c b/arch/arm/mach-mx5/board-mx53_evk.c index d0b4570f44ee..4043451798db 100644 --- a/arch/arm/mach-mx5/board-mx53_evk.c +++ b/arch/arm/mach-mx5/board-mx53_evk.c | |||
@@ -99,6 +99,9 @@ static void __init mx53_evk_board_init(void) | |||
99 | 99 | ||
100 | imx53_add_imx_i2c(0, &mx53_evk_i2c_data); | 100 | imx53_add_imx_i2c(0, &mx53_evk_i2c_data); |
101 | imx53_add_imx_i2c(1, &mx53_evk_i2c_data); | 101 | imx53_add_imx_i2c(1, &mx53_evk_i2c_data); |
102 | |||
103 | imx53_add_sdhci_esdhc_imx(0, NULL); | ||
104 | imx53_add_sdhci_esdhc_imx(1, NULL); | ||
102 | } | 105 | } |
103 | 106 | ||
104 | static void __init mx53_evk_timer_init(void) | 107 | static void __init mx53_evk_timer_init(void) |
diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index 0ade3c4cc6c5..15fa89ed5d0c 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c | |||
@@ -1328,6 +1328,8 @@ static struct clk_lookup mx53_lookups[] = { | |||
1328 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) | 1328 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) |
1329 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | 1329 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) |
1330 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | 1330 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) |
1331 | _REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk) | ||
1332 | _REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_clk) | ||
1331 | }; | 1333 | }; |
1332 | 1334 | ||
1333 | static void clk_tree_init(void) | 1335 | static void clk_tree_init(void) |
diff --git a/arch/arm/mach-mx5/devices-imx53.h b/arch/arm/mach-mx5/devices-imx53.h index ca1232bcedeb..f7c89ef2f667 100644 --- a/arch/arm/mach-mx5/devices-imx53.h +++ b/arch/arm/mach-mx5/devices-imx53.h | |||
@@ -20,3 +20,8 @@ extern const struct imx_imx_uart_1irq_data imx53_imx_uart_data[] __initconst; | |||
20 | extern const struct imx_imx_i2c_data imx53_imx_i2c_data[] __initconst; | 20 | extern const struct imx_imx_i2c_data imx53_imx_i2c_data[] __initconst; |
21 | #define imx53_add_imx_i2c(id, pdata) \ | 21 | #define imx53_add_imx_i2c(id, pdata) \ |
22 | imx_add_imx_i2c(&imx53_imx_i2c_data[id], pdata) | 22 | imx_add_imx_i2c(&imx53_imx_i2c_data[id], pdata) |
23 | |||
24 | extern const struct imx_sdhci_esdhc_imx_data | ||
25 | imx53_sdhci_esdhc_imx_data[] __initconst; | ||
26 | #define imx53_add_sdhci_esdhc_imx(id, pdata) \ | ||
27 | imx_add_sdhci_esdhc_imx(&imx53_sdhci_esdhc_imx_data[id], pdata) | ||
diff --git a/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c b/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c index b3525648a01d..6b2940b93d94 100644 --- a/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c +++ b/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c | |||
@@ -53,6 +53,18 @@ imx51_sdhci_esdhc_imx_data[] __initconst = { | |||
53 | }; | 53 | }; |
54 | #endif /* ifdef CONFIG_SOC_IMX51 */ | 54 | #endif /* ifdef CONFIG_SOC_IMX51 */ |
55 | 55 | ||
56 | #ifdef CONFIG_SOC_IMX53 | ||
57 | const struct imx_sdhci_esdhc_imx_data | ||
58 | imx53_sdhci_esdhc_imx_data[] __initconst = { | ||
59 | #define imx53_sdhci_esdhc_imx_data_entry(_id, _hwid) \ | ||
60 | imx_sdhci_esdhc_imx_data_entry(MX53, _id, _hwid) | ||
61 | imx53_sdhci_esdhc_imx_data_entry(0, 1), | ||
62 | imx53_sdhci_esdhc_imx_data_entry(1, 2), | ||
63 | imx53_sdhci_esdhc_imx_data_entry(2, 3), | ||
64 | imx53_sdhci_esdhc_imx_data_entry(3, 4), | ||
65 | }; | ||
66 | #endif /* ifdef CONFIG_SOC_IMX53 */ | ||
67 | |||
56 | struct platform_device *__init imx_add_sdhci_esdhc_imx( | 68 | struct platform_device *__init imx_add_sdhci_esdhc_imx( |
57 | const struct imx_sdhci_esdhc_imx_data *data, | 69 | const struct imx_sdhci_esdhc_imx_data *data, |
58 | const struct esdhc_platform_data *pdata) | 70 | const struct esdhc_platform_data *pdata) |
diff --git a/arch/arm/plat-mxc/include/mach/mx53.h b/arch/arm/plat-mxc/include/mach/mx53.h index a35e0c79bf23..340937f94e6f 100644 --- a/arch/arm/plat-mxc/include/mach/mx53.h +++ b/arch/arm/plat-mxc/include/mach/mx53.h | |||
@@ -53,13 +53,13 @@ | |||
53 | #define MX53_SPBA0_BASE_ADDR 0x50000000 | 53 | #define MX53_SPBA0_BASE_ADDR 0x50000000 |
54 | #define MX53_SPBA0_SIZE SZ_1M | 54 | #define MX53_SPBA0_SIZE SZ_1M |
55 | 55 | ||
56 | #define MX53_MMC_SDHC1_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00004000) | 56 | #define MX53_ESDHC1_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00004000) |
57 | #define MX53_MMC_SDHC2_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00008000) | 57 | #define MX53_ESDHC2_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00008000) |
58 | #define MX53_UART3_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x0000C000) | 58 | #define MX53_UART3_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x0000C000) |
59 | #define MX53_CSPI1_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00010000) | 59 | #define MX53_CSPI1_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00010000) |
60 | #define MX53_SSI2_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00014000) | 60 | #define MX53_SSI2_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00014000) |
61 | #define MX53_MMC_SDHC3_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00020000) | 61 | #define MX53_ESDHC3_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00020000) |
62 | #define MX53_MMC_SDHC4_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00024000) | 62 | #define MX53_ESDHC4_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00024000) |
63 | #define MX53_SPDIF_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00028000) | 63 | #define MX53_SPDIF_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00028000) |
64 | #define MX53_ASRC_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x0002C000) | 64 | #define MX53_ASRC_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x0002C000) |
65 | #define MX53_ATA_DMA_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00030000) | 65 | #define MX53_ATA_DMA_BASE_ADDR (MX53_SPBA0_BASE_ADDR + 0x00030000) |
@@ -229,10 +229,10 @@ | |||
229 | * Interrupt numbers | 229 | * Interrupt numbers |
230 | */ | 230 | */ |
231 | #define MX53_INT_RESV0 0 | 231 | #define MX53_INT_RESV0 0 |
232 | #define MX53_INT_MMC_SDHC1 1 | 232 | #define MX53_INT_ESDHC1 1 |
233 | #define MX53_INT_MMC_SDHC2 2 | 233 | #define MX53_INT_ESDHC2 2 |
234 | #define MX53_INT_MMC_SDHC3 3 | 234 | #define MX53_INT_ESDHC3 3 |
235 | #define MX53_INT_MMC_SDHC4 4 | 235 | #define MX53_INT_ESDHC4 4 |
236 | #define MX53_INT_RESV5 5 | 236 | #define MX53_INT_RESV5 5 |
237 | #define MX53_INT_SDMA 6 | 237 | #define MX53_INT_SDMA 6 |
238 | #define MX53_INT_IOMUX 7 | 238 | #define MX53_INT_IOMUX 7 |