Commit 124bf94a authored by Uwe Kleine-König's avatar Uwe Kleine-König

ARM: imx: fix name for functions adding sdhci-esdhc-imx devices

and restore alphabetic ordering.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent c496fa6b
...@@ -93,7 +93,6 @@ comment "MX25 platforms:" ...@@ -93,7 +93,6 @@ comment "MX25 platforms:"
config MACH_MX25_3DS config MACH_MX25_3DS
bool "Support MX25PDK (3DS) Platform" bool "Support MX25PDK (3DS) Platform"
select SOC_IMX25 select SOC_IMX25
select IMX_HAVE_PLATFORM_ESDHC
select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMXDI_RTC select IMX_HAVE_PLATFORM_IMXDI_RTC
select IMX_HAVE_PLATFORM_IMX_FB select IMX_HAVE_PLATFORM_IMX_FB
...@@ -101,11 +100,11 @@ config MACH_MX25_3DS ...@@ -101,11 +100,11 @@ config MACH_MX25_3DS
select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_EHCI
select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_MXC_NAND
select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
config MACH_EUKREA_CPUIMX25 config MACH_EUKREA_CPUIMX25
bool "Support Eukrea CPUIMX25 Platform" bool "Support Eukrea CPUIMX25 Platform"
select SOC_IMX25 select SOC_IMX25
select IMX_HAVE_PLATFORM_ESDHC
select IMX_HAVE_PLATFORM_FLEXCAN select IMX_HAVE_PLATFORM_FLEXCAN
select IMX_HAVE_PLATFORM_FSL_USB2_UDC select IMX_HAVE_PLATFORM_FSL_USB2_UDC
select IMX_HAVE_PLATFORM_IMXDI_RTC select IMX_HAVE_PLATFORM_IMXDI_RTC
...@@ -114,6 +113,7 @@ config MACH_EUKREA_CPUIMX25 ...@@ -114,6 +113,7 @@ config MACH_EUKREA_CPUIMX25
select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_EHCI
select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_MXC_NAND
select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
select MXC_ULPI if USB_ULPI select MXC_ULPI if USB_ULPI
choice choice
......
...@@ -74,13 +74,14 @@ extern const struct imx_mxc_nand_data imx25_mxc_nand_data __initconst; ...@@ -74,13 +74,14 @@ extern const struct imx_mxc_nand_data imx25_mxc_nand_data __initconst;
#define imx25_add_mxc_nand(pdata) \ #define imx25_add_mxc_nand(pdata) \
imx_add_mxc_nand(&imx25_mxc_nand_data, pdata) imx_add_mxc_nand(&imx25_mxc_nand_data, pdata)
extern const struct imx_sdhci_esdhc_imx_data
imx25_sdhci_esdhc_imx_data[] __initconst;
#define imx25_add_sdhci_esdhc_imx(id, pdata) \
imx_add_sdhci_esdhc_imx(&imx25_sdhci_esdhc_imx_data[id], pdata)
extern const struct imx_spi_imx_data imx25_spi_imx_data[] __initconst; extern const struct imx_spi_imx_data imx25_spi_imx_data[] __initconst;
#define imx25_add_spi_imx(id, pdata) \ #define imx25_add_spi_imx(id, pdata) \
imx_add_spi_imx(&imx25_spi_imx_data[id], pdata) imx_add_spi_imx(&imx25_spi_imx_data[id], pdata)
#define imx25_add_spi_imx0(pdata) imx25_add_spi_imx(0, pdata) #define imx25_add_spi_imx0(pdata) imx25_add_spi_imx(0, pdata)
#define imx25_add_spi_imx1(pdata) imx25_add_spi_imx(1, pdata) #define imx25_add_spi_imx1(pdata) imx25_add_spi_imx(1, pdata)
#define imx25_add_spi_imx2(pdata) imx25_add_spi_imx(2, pdata) #define imx25_add_spi_imx2(pdata) imx25_add_spi_imx(2, pdata)
extern const struct imx_esdhc_imx_data imx25_esdhc_data[] __initconst;
#define imx25_add_esdhc(id, pdata) \
imx_add_esdhc(&imx25_esdhc_data[id], pdata)
...@@ -275,7 +275,7 @@ void __init eukrea_mbimxsd25_baseboard_init(void) ...@@ -275,7 +275,7 @@ void __init eukrea_mbimxsd25_baseboard_init(void)
imx25_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); imx25_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata);
imx25_add_flexcan1(NULL); imx25_add_flexcan1(NULL);
imx25_add_esdhc(0, NULL); imx25_add_sdhci_esdhc_imx(0, NULL);
gpio_request(GPIO_LED1, "LED1"); gpio_request(GPIO_LED1, "LED1");
gpio_direction_output(GPIO_LED1, 1); gpio_direction_output(GPIO_LED1, 1);
......
...@@ -200,7 +200,7 @@ static void __init mx25pdk_init(void) ...@@ -200,7 +200,7 @@ static void __init mx25pdk_init(void)
imx25_add_fec(&mx25_fec_pdata); imx25_add_fec(&mx25_fec_pdata);
imx25_add_imx_keypad(&mx25pdk_keymap_data); imx25_add_imx_keypad(&mx25pdk_keymap_data);
imx25_add_esdhc(0, NULL); imx25_add_sdhci_esdhc_imx(0, NULL);
} }
static void __init mx25pdk_timer_init(void) static void __init mx25pdk_timer_init(void)
......
...@@ -145,6 +145,7 @@ config MACH_QONG ...@@ -145,6 +145,7 @@ config MACH_QONG
config MACH_PCM043 config MACH_PCM043
bool "Support Phytec pcm043 (i.MX35) platforms" bool "Support Phytec pcm043 (i.MX35) platforms"
select SOC_IMX35 select SOC_IMX35
select IMX_HAVE_PLATFORM_FLEXCAN
select IMX_HAVE_PLATFORM_FSL_USB2_UDC select IMX_HAVE_PLATFORM_FSL_USB2_UDC
select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_I2C
...@@ -152,8 +153,7 @@ config MACH_PCM043 ...@@ -152,8 +153,7 @@ config MACH_PCM043
select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_EHCI
select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_MXC_NAND
select IMX_HAVE_PLATFORM_FLEXCAN select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
select IMX_HAVE_PLATFORM_ESDHC
select MXC_ULPI if USB_ULPI select MXC_ULPI if USB_ULPI
help help
Include support for Phytec pcm043 platform. This includes Include support for Phytec pcm043 platform. This includes
...@@ -176,12 +176,12 @@ config MACH_MX35_3DS ...@@ -176,12 +176,12 @@ config MACH_MX35_3DS
bool "Support MX35PDK platform" bool "Support MX35PDK platform"
select SOC_IMX35 select SOC_IMX35
select MXC_DEBUG_BOARD select MXC_DEBUG_BOARD
select IMX_HAVE_PLATFORM_ESDHC
select IMX_HAVE_PLATFORM_FSL_USB2_UDC select IMX_HAVE_PLATFORM_FSL_USB2_UDC
select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_EHCI
select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_MXC_NAND
select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
help help
Include support for MX35PDK platform. This includes specific Include support for MX35PDK platform. This includes specific
configurations for the board and its peripherals. configurations for the board and its peripherals.
...@@ -197,14 +197,14 @@ config MACH_KZM_ARM11_01 ...@@ -197,14 +197,14 @@ config MACH_KZM_ARM11_01
config MACH_EUKREA_CPUIMX35 config MACH_EUKREA_CPUIMX35
bool "Support Eukrea CPUIMX35 Platform" bool "Support Eukrea CPUIMX35 Platform"
select SOC_IMX35 select SOC_IMX35
select IMX_HAVE_PLATFORM_FLEXCAN
select IMX_HAVE_PLATFORM_FSL_USB2_UDC select IMX_HAVE_PLATFORM_FSL_USB2_UDC
select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_I2C
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_EHCI
select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_MXC_NAND
select IMX_HAVE_PLATFORM_FLEXCAN select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
select IMX_HAVE_PLATFORM_ESDHC
select MXC_ULPI if USB_ULPI select MXC_ULPI if USB_ULPI
help help
Include support for Eukrea CPUIMX35 platform. This includes Include support for Eukrea CPUIMX35 platform. This includes
......
...@@ -64,12 +64,13 @@ extern const struct imx_mxc_w1_data imx35_mxc_w1_data __initconst; ...@@ -64,12 +64,13 @@ extern const struct imx_mxc_w1_data imx35_mxc_w1_data __initconst;
#define imx35_add_mxc_w1(pdata) \ #define imx35_add_mxc_w1(pdata) \
imx_add_mxc_w1(&imx35_mxc_w1_data) imx_add_mxc_w1(&imx35_mxc_w1_data)
extern const struct imx_sdhci_esdhc_imx_data
imx35_sdhci_esdhc_imx_data[] __initconst;
#define imx35_add_sdhci_esdhc_imx(id, pdata) \
imx_add_sdhci_esdhc_imx(&imx35_sdhci_esdhc_imx_data[id], pdata)
extern const struct imx_spi_imx_data imx35_cspi_data[] __initconst; extern const struct imx_spi_imx_data imx35_cspi_data[] __initconst;
#define imx35_add_cspi(id, pdata) \ #define imx35_add_cspi(id, pdata) \
imx_add_spi_imx(&imx35_cspi_data[id], pdata) imx_add_spi_imx(&imx35_cspi_data[id], pdata)
#define imx35_add_spi_imx0(pdata) imx35_add_cspi(0, pdata) #define imx35_add_spi_imx0(pdata) imx35_add_cspi(0, pdata)
#define imx35_add_spi_imx1(pdata) imx35_add_cspi(1, pdata) #define imx35_add_spi_imx1(pdata) imx35_add_cspi(1, pdata)
extern const struct imx_esdhc_imx_data imx35_esdhc_data[] __initconst;
#define imx35_add_esdhc(id, pdata) \
imx_add_esdhc(&imx35_esdhc_data[id], pdata)
...@@ -289,7 +289,7 @@ void __init eukrea_mbimxsd35_baseboard_init(void) ...@@ -289,7 +289,7 @@ void __init eukrea_mbimxsd35_baseboard_init(void)
imx35_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); imx35_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata);
imx35_add_flexcan1(NULL); imx35_add_flexcan1(NULL);
imx35_add_esdhc(0, NULL); imx35_add_sdhci_esdhc_imx(0, NULL);
gpio_request(GPIO_LED1, "LED1"); gpio_request(GPIO_LED1, "LED1");
gpio_direction_output(GPIO_LED1, 1); gpio_direction_output(GPIO_LED1, 1);
......
...@@ -150,7 +150,7 @@ static void __init mxc_board_init(void) ...@@ -150,7 +150,7 @@ static void __init mxc_board_init(void)
imx35_add_mxc_ehci_hs(&usb_host_pdata); imx35_add_mxc_ehci_hs(&usb_host_pdata);
imx35_add_mxc_nand(&mx35pdk_nand_board_info); imx35_add_mxc_nand(&mx35pdk_nand_board_info);
imx35_add_esdhc(0, NULL); imx35_add_sdhci_esdhc_imx(0, NULL);
if (mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT)) if (mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))
pr_warn("Init of the debugboard failed, all " pr_warn("Init of the debugboard failed, all "
......
...@@ -393,7 +393,7 @@ static void __init mxc_board_init(void) ...@@ -393,7 +393,7 @@ static void __init mxc_board_init(void)
imx35_add_fsl_usb2_udc(&otg_device_pdata); imx35_add_fsl_usb2_udc(&otg_device_pdata);
imx35_add_flexcan1(NULL); imx35_add_flexcan1(NULL);
imx35_add_esdhc(0, NULL); imx35_add_sdhci_esdhc_imx(0, NULL);
} }
static void __init pcm043_timer_init(void) static void __init pcm043_timer_init(void)
......
...@@ -14,7 +14,7 @@ config MACH_MX51_BABBAGE ...@@ -14,7 +14,7 @@ config MACH_MX51_BABBAGE
bool "Support MX51 BABBAGE platforms" bool "Support MX51 BABBAGE platforms"
select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_I2C
select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_ESDHC select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
help help
Include support for MX51 Babbage platform, also known as MX51EVK in Include support for MX51 Babbage platform, also known as MX51EVK in
u-boot. This includes specific configurations for the board and its u-boot. This includes specific configurations for the board and its
...@@ -47,7 +47,7 @@ choice ...@@ -47,7 +47,7 @@ choice
config MACH_EUKREA_MBIMX51_BASEBOARD config MACH_EUKREA_MBIMX51_BASEBOARD
prompt "Eukrea MBIMX51 development board" prompt "Eukrea MBIMX51 development board"
bool bool
select IMX_HAVE_PLATFORM_ESDHC select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
help help
This adds board specific devices that can be found on Eukrea's This adds board specific devices that can be found on Eukrea's
MBIMX51 evaluation board. MBIMX51 evaluation board.
...@@ -72,7 +72,7 @@ choice ...@@ -72,7 +72,7 @@ choice
config MACH_EUKREA_MBIMXSD51_BASEBOARD config MACH_EUKREA_MBIMXSD51_BASEBOARD
prompt "Eukrea MBIMXSD development board" prompt "Eukrea MBIMXSD development board"
bool bool
select IMX_HAVE_PLATFORM_ESDHC select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
help help
This adds board specific devices that can be found on Eukrea's This adds board specific devices that can be found on Eukrea's
MBIMXSD evaluation board. MBIMXSD evaluation board.
......
...@@ -349,8 +349,8 @@ static void __init mxc_board_init(void) ...@@ -349,8 +349,8 @@ static void __init mxc_board_init(void)
mxc_iomux_v3_setup_pad(&usbh1stp); mxc_iomux_v3_setup_pad(&usbh1stp);
babbage_usbhub_reset(); babbage_usbhub_reset();
imx51_add_esdhc(0, NULL); imx51_add_sdhci_esdhc_imx(0, NULL);
imx51_add_esdhc(1, NULL); imx51_add_sdhci_esdhc_imx(1, NULL);
} }
static void __init mx51_babbage_timer_init(void) static void __init mx51_babbage_timer_init(void)
......
...@@ -31,6 +31,11 @@ extern const struct imx_mxc_nand_data imx51_mxc_nand_data __initconst; ...@@ -31,6 +31,11 @@ extern const struct imx_mxc_nand_data imx51_mxc_nand_data __initconst;
#define imx51_add_mxc_nand(pdata) \ #define imx51_add_mxc_nand(pdata) \
imx_add_mxc_nand(&imx51_mxc_nand_data, pdata) imx_add_mxc_nand(&imx51_mxc_nand_data, pdata)
extern const struct imx_sdhci_esdhc_imx_data
imx51_sdhci_esdhc_imx_data[] __initconst;
#define imx51_add_sdhci_esdhc_imx(id, pdata) \
imx_add_sdhci_esdhc_imx(&imx51_sdhci_esdhc_imx_data[id], pdata)
extern const struct imx_spi_imx_data imx51_cspi_data __initconst; extern const struct imx_spi_imx_data imx51_cspi_data __initconst;
#define imx51_add_cspi(pdata) \ #define imx51_add_cspi(pdata) \
imx_add_spi_imx(&imx51_cspi_data, pdata) imx_add_spi_imx(&imx51_cspi_data, pdata)
...@@ -38,7 +43,3 @@ extern const struct imx_spi_imx_data imx51_cspi_data __initconst; ...@@ -38,7 +43,3 @@ extern const struct imx_spi_imx_data imx51_cspi_data __initconst;
extern const struct imx_spi_imx_data imx51_ecspi_data[] __initconst; extern const struct imx_spi_imx_data imx51_ecspi_data[] __initconst;
#define imx51_add_ecspi(id, pdata) \ #define imx51_add_ecspi(id, pdata) \
imx_add_spi_imx(&imx51_ecspi_data[id], pdata) imx_add_spi_imx(&imx51_ecspi_data[id], pdata)
extern const struct imx_esdhc_imx_data imx51_esdhc_data[] __initconst;
#define imx51_add_esdhc(id, pdata) \
imx_add_esdhc(&imx51_esdhc_data[id], pdata)
...@@ -217,6 +217,6 @@ void __init eukrea_mbimx51_baseboard_init(void) ...@@ -217,6 +217,6 @@ void __init eukrea_mbimx51_baseboard_init(void)
i2c_register_board_info(1, mbimx51_i2c_devices, i2c_register_board_info(1, mbimx51_i2c_devices,
ARRAY_SIZE(mbimx51_i2c_devices)); ARRAY_SIZE(mbimx51_i2c_devices));
imx51_add_esdhc(0, NULL); imx51_add_sdhci_esdhc_imx(0, NULL);
imx51_add_esdhc(1, NULL); imx51_add_sdhci_esdhc_imx(1, NULL);
} }
...@@ -149,7 +149,7 @@ void __init eukrea_mbimxsd51_baseboard_init(void) ...@@ -149,7 +149,7 @@ void __init eukrea_mbimxsd51_baseboard_init(void)
imx51_add_imx_uart(1, NULL); imx51_add_imx_uart(1, NULL);
imx51_add_imx_uart(2, &uart_pdata); imx51_add_imx_uart(2, &uart_pdata);
imx51_add_esdhc(0, NULL); imx51_add_sdhci_esdhc_imx(0, NULL);
gpio_request(GPIO_LED1, "LED1"); gpio_request(GPIO_LED1, "LED1");
gpio_direction_output(GPIO_LED1, 1); gpio_direction_output(GPIO_LED1, 1);
......
config IMX_HAVE_PLATFORM_ESDHC
bool
config IMX_HAVE_PLATFORM_FEC config IMX_HAVE_PLATFORM_FEC
bool bool
default y if ARCH_MX25 || SOC_IMX27 || SOC_IMX35 || ARCH_MX51 default y if ARCH_MX25 || SOC_IMX27 || SOC_IMX35 || ARCH_MX51
...@@ -69,5 +66,8 @@ config IMX_HAVE_PLATFORM_MXC_RNGA ...@@ -69,5 +66,8 @@ config IMX_HAVE_PLATFORM_MXC_RNGA
config IMX_HAVE_PLATFORM_MXC_W1 config IMX_HAVE_PLATFORM_MXC_W1
bool bool
config IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
bool
config IMX_HAVE_PLATFORM_SPI_IMX config IMX_HAVE_PLATFORM_SPI_IMX
bool bool
obj-$(CONFIG_IMX_HAVE_PLATFORM_ESDHC) += platform-esdhc.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_FEC) += platform-fec.o obj-$(CONFIG_IMX_HAVE_PLATFORM_FEC) += platform-fec.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_FLEXCAN) += platform-flexcan.o obj-$(CONFIG_IMX_HAVE_PLATFORM_FLEXCAN) += platform-flexcan.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC) += platform-fsl-usb2-udc.o obj-$(CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC) += platform-fsl-usb2-udc.o
...@@ -21,4 +20,5 @@ obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_NAND) += platform-mxc_nand.o ...@@ -21,4 +20,5 @@ obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_NAND) += platform-mxc_nand.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_PWM) += platform-mxc_pwm.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_PWM) += platform-mxc_pwm.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_RNGA) += platform-mxc_rnga.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_RNGA) += platform-mxc_rnga.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_W1) += platform-mxc_w1.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_W1) += platform-mxc_w1.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX) += platform-sdhci-esdhc-imx.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_SPI_IMX) += platform-spi_imx.o obj-$(CONFIG_IMX_HAVE_PLATFORM_SPI_IMX) += platform-spi_imx.o
...@@ -10,48 +10,51 @@ ...@@ -10,48 +10,51 @@
#include <mach/devices-common.h> #include <mach/devices-common.h>
#include <mach/esdhc.h> #include <mach/esdhc.h>
#define imx_esdhc_imx_data_entry_single(soc, _id, hwid) \ #define imx_sdhci_esdhc_imx_data_entry_single(soc, _id, hwid) \
{ \ { \
.id = _id, \ .id = _id, \
.iobase = soc ## _ESDHC ## hwid ## _BASE_ADDR, \ .iobase = soc ## _ESDHC ## hwid ## _BASE_ADDR, \
.irq = soc ## _INT_ESDHC ## hwid, \ .irq = soc ## _INT_ESDHC ## hwid, \
} }
#define imx_esdhc_imx_data_entry(soc, id, hwid) \ #define imx_sdhci_esdhc_imx_data_entry(soc, id, hwid) \
[id] = imx_esdhc_imx_data_entry_single(soc, id, hwid) [id] = imx_sdhci_esdhc_imx_data_entry_single(soc, id, hwid)
#ifdef CONFIG_SOC_IMX25 #ifdef CONFIG_SOC_IMX25
const struct imx_esdhc_imx_data imx25_esdhc_data[] __initconst = { const struct imx_sdhci_esdhc_imx_data
#define imx25_esdhc_data_entry(_id, _hwid) \ imx25_sdhci_esdhc_imx_data[] __initconst = {
imx_esdhc_imx_data_entry(MX25, _id, _hwid) #define imx25_sdhci_esdhc_imx_data_entry(_id, _hwid) \
imx25_esdhc_data_entry(0, 1), imx_sdhci_esdhc_imx_data_entry(MX25, _id, _hwid)
imx25_esdhc_data_entry(1, 2), imx25_sdhci_esdhc_imx_data_entry(0, 1),
imx25_sdhci_esdhc_imx_data_entry(1, 2),
}; };
#endif /* ifdef CONFIG_SOC_IMX25 */ #endif /* ifdef CONFIG_SOC_IMX25 */
#ifdef CONFIG_SOC_IMX35 #ifdef CONFIG_SOC_IMX35
const struct imx_esdhc_imx_data imx35_esdhc_data[] __initconst = { const struct imx_sdhci_esdhc_imx_data
#define imx35_esdhc_data_entry(_id, _hwid) \ imx35_sdhci_esdhc_imx_data[] __initconst = {
imx_esdhc_imx_data_entry(MX35, _id, _hwid) #define imx35_sdhci_esdhc_imx_data_entry(_id, _hwid) \
imx35_esdhc_data_entry(0, 1), imx_sdhci_esdhc_imx_data_entry(MX35, _id, _hwid)
imx35_esdhc_data_entry(1, 2), imx35_sdhci_esdhc_imx_data_entry(0, 1),
imx35_esdhc_data_entry(2, 3), imx35_sdhci_esdhc_imx_data_entry(1, 2),
imx35_sdhci_esdhc_imx_data_entry(2, 3),
}; };
#endif /* ifdef CONFIG_SOC_IMX35 */ #endif /* ifdef CONFIG_SOC_IMX35 */
#ifdef CONFIG_ARCH_MX51 #ifdef CONFIG_ARCH_MX51
const struct imx_esdhc_imx_data imx51_esdhc_data[] __initconst = { const struct imx_sdhci_esdhc_imx_data
#define imx51_esdhc_data_entry(_id, _hwid) \ imx51_sdhci_esdhc_imx_data[] __initconst = {
imx_esdhc_imx_data_entry(MX51, _id, _hwid) #define imx51_sdhci_esdhc_imx_data_entry(_id, _hwid) \
imx51_esdhc_data_entry(0, 1), imx_sdhci_esdhc_imx_data_entry(MX51, _id, _hwid)
imx51_esdhc_data_entry(1, 2), imx51_sdhci_esdhc_imx_data_entry(0, 1),
imx51_esdhc_data_entry(2, 3), imx51_sdhci_esdhc_imx_data_entry(1, 2),
imx51_esdhc_data_entry(3, 4), imx51_sdhci_esdhc_imx_data_entry(2, 3),
imx51_sdhci_esdhc_imx_data_entry(3, 4),
}; };
#endif /* ifdef CONFIG_ARCH_MX51 */ #endif /* ifdef CONFIG_ARCH_MX51 */
struct platform_device *__init imx_add_esdhc( struct platform_device *__init imx_add_sdhci_esdhc_imx(
const struct imx_esdhc_imx_data *data, const struct imx_sdhci_esdhc_imx_data *data,
const struct esdhc_platform_data *pdata) const struct esdhc_platform_data *pdata)
{ {
struct resource res[] = { struct resource res[] = {
......
...@@ -242,6 +242,16 @@ struct imx_mxc_w1_data { ...@@ -242,6 +242,16 @@ struct imx_mxc_w1_data {
struct platform_device *__init imx_add_mxc_w1( struct platform_device *__init imx_add_mxc_w1(
const struct imx_mxc_w1_data *data); const struct imx_mxc_w1_data *data);
#include <mach/esdhc.h>
struct imx_sdhci_esdhc_imx_data {
int id;
resource_size_t iobase;
resource_size_t irq;
};
struct platform_device *__init imx_add_sdhci_esdhc_imx(
const struct imx_sdhci_esdhc_imx_data *data,
const struct esdhc_platform_data *pdata);
#include <mach/spi.h> #include <mach/spi.h>
struct imx_spi_imx_data { struct imx_spi_imx_data {
const char *devid; const char *devid;
...@@ -253,13 +263,3 @@ struct imx_spi_imx_data { ...@@ -253,13 +263,3 @@ struct imx_spi_imx_data {
struct platform_device *__init imx_add_spi_imx( struct platform_device *__init imx_add_spi_imx(
const struct imx_spi_imx_data *data, const struct imx_spi_imx_data *data,
const struct spi_imx_master *pdata); const struct spi_imx_master *pdata);
#include <mach/esdhc.h>
struct imx_esdhc_imx_data {
int id;
resource_size_t iobase;
resource_size_t irq;
};
struct platform_device *__init imx_add_esdhc(
const struct imx_esdhc_imx_data *data,
const struct esdhc_platform_data *pdata);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment