diff options
Diffstat (limited to 'arch/arm/mach-mx3/mach-cpuimx35.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-cpuimx35.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/arch/arm/mach-mx3/mach-cpuimx35.c b/arch/arm/mach-mx3/mach-cpuimx35.c index 26ae90f02582..ec63d998f647 100644 --- a/arch/arm/mach-mx3/mach-cpuimx35.c +++ b/arch/arm/mach-mx3/mach-cpuimx35.c | |||
@@ -60,7 +60,7 @@ static struct tsc2007_platform_data tsc2007_info = { | |||
60 | .x_plate_ohms = 180, | 60 | .x_plate_ohms = 180, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | #define TSC2007_IRQGPIO (2 * 32 + 2) | 63 | #define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2) |
64 | static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = { | 64 | static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = { |
65 | { | 65 | { |
66 | I2C_BOARD_INFO("pcf8563", 0x51), | 66 | I2C_BOARD_INFO("pcf8563", 0x51), |
@@ -111,15 +111,25 @@ static const struct mxc_nand_platform_data | |||
111 | .flash_bbt = 1, | 111 | .flash_bbt = 1, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static int eukrea_cpuimx35_otg_init(struct platform_device *pdev) | ||
115 | { | ||
116 | return mx35_initialize_usb_hw(pdev->id, MXC_EHCI_INTERFACE_DIFF_UNI); | ||
117 | } | ||
118 | |||
114 | static const struct mxc_usbh_platform_data otg_pdata __initconst = { | 119 | static const struct mxc_usbh_platform_data otg_pdata __initconst = { |
120 | .init = eukrea_cpuimx35_otg_init, | ||
115 | .portsc = MXC_EHCI_MODE_UTMI, | 121 | .portsc = MXC_EHCI_MODE_UTMI, |
116 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | ||
117 | }; | 122 | }; |
118 | 123 | ||
124 | static int eukrea_cpuimx35_usbh1_init(struct platform_device *pdev) | ||
125 | { | ||
126 | return mx35_initialize_usb_hw(pdev->id, MXC_EHCI_INTERFACE_SINGLE_UNI | | ||
127 | MXC_EHCI_INTERNAL_PHY | MXC_EHCI_IPPUE_DOWN); | ||
128 | } | ||
129 | |||
119 | static const struct mxc_usbh_platform_data usbh1_pdata __initconst = { | 130 | static const struct mxc_usbh_platform_data usbh1_pdata __initconst = { |
131 | .init = eukrea_cpuimx35_usbh1_init, | ||
120 | .portsc = MXC_EHCI_MODE_SERIAL, | 132 | .portsc = MXC_EHCI_MODE_SERIAL, |
121 | .flags = MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY | | ||
122 | MXC_EHCI_IPPUE_DOWN, | ||
123 | }; | 133 | }; |
124 | 134 | ||
125 | static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | 135 | static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { |
@@ -146,7 +156,7 @@ __setup("otg_mode=", eukrea_cpuimx35_otg_mode); | |||
146 | /* | 156 | /* |
147 | * Board specific initialization. | 157 | * Board specific initialization. |
148 | */ | 158 | */ |
149 | static void __init mxc_board_init(void) | 159 | static void __init eukrea_cpuimx35_init(void) |
150 | { | 160 | { |
151 | mxc_iomux_v3_setup_multiple_pads(eukrea_cpuimx35_pads, | 161 | mxc_iomux_v3_setup_multiple_pads(eukrea_cpuimx35_pads, |
152 | ARRAY_SIZE(eukrea_cpuimx35_pads)); | 162 | ARRAY_SIZE(eukrea_cpuimx35_pads)); |
@@ -184,9 +194,10 @@ struct sys_timer eukrea_cpuimx35_timer = { | |||
184 | 194 | ||
185 | MACHINE_START(EUKREA_CPUIMX35, "Eukrea CPUIMX35") | 195 | MACHINE_START(EUKREA_CPUIMX35, "Eukrea CPUIMX35") |
186 | /* Maintainer: Eukrea Electromatique */ | 196 | /* Maintainer: Eukrea Electromatique */ |
187 | .boot_params = MX3x_PHYS_OFFSET + 0x100, | 197 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
188 | .map_io = mx35_map_io, | 198 | .map_io = mx35_map_io, |
189 | .init_irq = mx35_init_irq, | 199 | .init_early = imx35_init_early, |
190 | .init_machine = mxc_board_init, | 200 | .init_irq = mx35_init_irq, |
191 | .timer = &eukrea_cpuimx35_timer, | 201 | .timer = &eukrea_cpuimx35_timer, |
202 | .init_machine = eukrea_cpuimx35_init, | ||
192 | MACHINE_END | 203 | MACHINE_END |