9 #include <mach/hardware.h>
12 #define imx_spi_imx_data_entry_single(soc, type, _devid, _id, hwid, _size) \
16 .iobase = soc ## _ ## type ## hwid ## _BASE_ADDR, \
18 .irq = soc ## _INT_ ## type ## hwid, \
21 #define imx_spi_imx_data_entry(soc, type, devid, id, hwid, size) \
22 [id] = imx_spi_imx_data_entry_single(soc, type, devid, id, hwid, size)
24 #ifdef CONFIG_SOC_IMX1
26 #define imx1_cspi_data_entry(_id, _hwid) \
27 imx_spi_imx_data_entry(MX1, CSPI, "imx1-cspi", _id, _hwid, SZ_4K)
28 imx1_cspi_data_entry(0, 1),
29 imx1_cspi_data_entry(1, 2),
33 #ifdef CONFIG_SOC_IMX21
35 #define imx21_cspi_data_entry(_id, _hwid) \
36 imx_spi_imx_data_entry(MX21, CSPI, "imx21-cspi", _id, _hwid, SZ_4K)
37 imx21_cspi_data_entry(0, 1),
38 imx21_cspi_data_entry(1, 2),
42 #ifdef CONFIG_SOC_IMX25
45 #define imx25_cspi_data_entry(_id, _hwid) \
46 imx_spi_imx_data_entry(MX25, CSPI, "imx35-cspi", _id, _hwid, SZ_16K)
47 imx25_cspi_data_entry(0, 1),
48 imx25_cspi_data_entry(1, 2),
49 imx25_cspi_data_entry(2, 3),
53 #ifdef CONFIG_SOC_IMX27
55 #define imx27_cspi_data_entry(_id, _hwid) \
56 imx_spi_imx_data_entry(MX27, CSPI, "imx27-cspi", _id, _hwid, SZ_4K)
57 imx27_cspi_data_entry(0, 1),
58 imx27_cspi_data_entry(1, 2),
59 imx27_cspi_data_entry(2, 3),
63 #ifdef CONFIG_SOC_IMX31
65 #define imx31_cspi_data_entry(_id, _hwid) \
66 imx_spi_imx_data_entry(MX31, CSPI, "imx31-cspi", _id, _hwid, SZ_4K)
67 imx31_cspi_data_entry(0, 1),
68 imx31_cspi_data_entry(1, 2),
69 imx31_cspi_data_entry(2, 3),
73 #ifdef CONFIG_SOC_IMX35
75 #define imx35_cspi_data_entry(_id, _hwid) \
76 imx_spi_imx_data_entry(MX35, CSPI, "imx35-cspi", _id, _hwid, SZ_4K)
77 imx35_cspi_data_entry(0, 1),
78 imx35_cspi_data_entry(1, 2),
82 #ifdef CONFIG_SOC_IMX51
88 #define imx51_ecspi_data_entry(_id, _hwid) \
89 imx_spi_imx_data_entry(MX51, ECSPI, "imx51-ecspi", _id, _hwid, SZ_4K)
90 imx51_ecspi_data_entry(0, 1),
91 imx51_ecspi_data_entry(1, 2),
95 #ifdef CONFIG_SOC_IMX53
102 #define imx53_ecspi_data_entry(_id, _hwid) \
103 imx_spi_imx_data_entry(MX53, ECSPI, "imx51-ecspi", _id, _hwid, SZ_4K)
104 imx53_ecspi_data_entry(0, 1),
105 imx53_ecspi_data_entry(1, 2),
125 return imx_add_platform_device(data->
devid, data->
id,