19 #include <linux/i2c.h>
30 #include <mach/common.h>
31 #include <mach/hardware.h>
34 #include <asm/setup.h>
42 #define USBH1_RST IMX_GPIO_NR(2, 28)
43 #define ETH_RST IMX_GPIO_NR(2, 31)
44 #define TSC2007_IRQGPIO_REV2 IMX_GPIO_NR(3, 12)
45 #define TSC2007_IRQGPIO_REV3 IMX_GPIO_NR(4, 0)
46 #define CAN_IRQGPIO IMX_GPIO_NR(1, 1)
47 #define CAN_RST IMX_GPIO_NR(4, 15)
48 #define CAN_NCS IMX_GPIO_NR(4, 24)
49 #define CAN_RXOBF_REV2 IMX_GPIO_NR(1, 4)
50 #define CAN_RXOBF_REV3 IMX_GPIO_NR(3, 12)
51 #define CAN_RX1BF IMX_GPIO_NR(1, 6)
52 #define CAN_TXORTS IMX_GPIO_NR(1, 7)
53 #define CAN_TX1RTS IMX_GPIO_NR(1, 8)
54 #define CAN_TX2RTS IMX_GPIO_NR(1, 9)
55 #define I2C_SCL IMX_GPIO_NR(4, 16)
56 #define I2C_SDA IMX_GPIO_NR(4, 17)
59 #define MX51_USB_CTRL_1_OFFSET 0x10
60 #define MX51_USB_CTRL_UH1_EXT_CLK_EN (1 << 25)
62 #define MX51_USB_PLLDIV_12_MHZ 0x00
63 #define MX51_USB_PLL_DIV_19_2_MHZ 0x01
64 #define MX51_USB_PLL_DIV_24_MHZ 0x02
126 static int tsc2007_get_pendown_state(
void)
137 .get_pendown_state = tsc2007_get_pendown_state,
145 .platform_data = &tsc2007_info,
150 eukrea_cpuimx51sd_nand_board_info __initconst = {
206 .init = initialize_otg_port,
216 .
init = initialize_usbh1_port,
224 if (!
strcmp(options,
"host"))
225 otg_mode_host =
true;
226 else if (!
strcmp(options,
"device"))
227 otg_mode_host =
false;
229 pr_info(
"otg_mode neither \"host\" nor \"device\". "
230 "Defaulting to device\n");
233 __setup(
"otg_mode=", eukrea_cpuimx51sd_otg_mode);
237 .sda_is_open_drain = 0,
239 .scl_is_open_drain = 0,
246 .dev.platform_data = &
pdata,
250 .oscillator_frequency = 24E6,
255 .modalias =
"mcp2515",
256 .max_speed_hz = 10000000,
260 .platform_data = &mcp251x_info,
265 static int cpuimx51sd_spi1_cs[] = {
269 static const struct spi_imx_master cpuimx51sd_ecspi1_pdata __initconst = {
270 .chipselect = cpuimx51sd_spi1_cs,
271 .num_chipselect =
ARRAY_SIZE(cpuimx51sd_spi1_cs),
282 static void __init eukrea_cpuimx51sd_init(
void)
289 #if defined(CONFIG_CPU_FREQ_IMX)
317 eukrea_cpuimx51sd_i2c_devices[1].
irq =
325 eukrea_cpuimx51sd_i2c_devices[1].
irq =
339 initialize_otg_port(
NULL);
349 #ifdef CONFIG_MACH_EUKREA_MBIMXSD51_BASEBOARD
354 static void __init eukrea_cpuimx51sd_timer_init(
void)
360 .init = eukrea_cpuimx51sd_timer_init,
365 .atag_offset = 0x100,
371 .init_machine = eukrea_cpuimx51sd_init,