8 #include <mach/hardware.h>
11 #define imx_flexcan_data_entry_single(soc, _id, _hwid, _size) \
14 .iobase = soc ## _CAN ## _hwid ## _BASE_ADDR, \
16 .irq = soc ## _INT_CAN ## _hwid, \
19 #define imx_flexcan_data_entry(soc, _id, _hwid, _size) \
20 [_id] = imx_flexcan_data_entry_single(soc, _id, _hwid, _size)
22 #ifdef CONFIG_SOC_IMX25
24 #define imx25_flexcan_data_entry(_id, _hwid) \
25 imx_flexcan_data_entry(MX25, _id, _hwid, SZ_16K)
26 imx25_flexcan_data_entry(0, 1),
27 imx25_flexcan_data_entry(1, 2),
31 #ifdef CONFIG_SOC_IMX35
33 #define imx35_flexcan_data_entry(_id, _hwid) \
34 imx_flexcan_data_entry(MX35, _id, _hwid, SZ_16K)
35 imx35_flexcan_data_entry(0, 1),
36 imx35_flexcan_data_entry(1, 2),
56 return imx_add_platform_device(
"flexcan", data->
id,