9 #include <mach/hardware.h>
12 #define imx_mxc_pwm_data_entry_single(soc, _id, _hwid, _size) \
15 .iobase = soc ## _PWM ## _hwid ## _BASE_ADDR, \
17 .irq = soc ## _INT_PWM ## _hwid, \
19 #define imx_mxc_pwm_data_entry(soc, _id, _hwid, _size) \
20 [_id] = imx_mxc_pwm_data_entry_single(soc, _id, _hwid, _size)
22 #ifdef CONFIG_SOC_IMX21
27 #ifdef CONFIG_SOC_IMX25
29 #define imx25_mxc_pwm_data_entry(_id, _hwid) \
30 imx_mxc_pwm_data_entry(MX25, _id, _hwid, SZ_16K)
31 imx25_mxc_pwm_data_entry(0, 1),
32 imx25_mxc_pwm_data_entry(1, 2),
33 imx25_mxc_pwm_data_entry(2, 3),
34 imx25_mxc_pwm_data_entry(3, 4),
38 #ifdef CONFIG_SOC_IMX27
43 #ifdef CONFIG_SOC_IMX51
45 #define imx51_mxc_pwm_data_entry(_id, _hwid) \
46 imx_mxc_pwm_data_entry(MX51, _id, _hwid, SZ_16K)
47 imx51_mxc_pwm_data_entry(0, 1),
48 imx51_mxc_pwm_data_entry(1, 2),
67 return imx_add_platform_device(
"mxc_pwm", data->
id,