22 #include <linux/i2c.h>
35 #include <mach/common.h>
36 #include <mach/hardware.h>
43 #define OTG_PHY_CS_GPIO (GPIO_PORTB + 23)
44 #define USBH2_PHY_CS_GPIO (GPIO_PORTB + 24)
45 #define SPI1_SS0 (GPIO_PORTD + 28)
46 #define SPI1_SS1 (GPIO_PORTD + 27)
47 #define SD2_CD (GPIO_PORTC + 29)
161 pca100_nand_board_info __initconst = {
179 .platform_data = &board_eeprom,
197 .max_speed_hz = 30000,
200 .platform_data = &at25320,
206 static const struct spi_imx_master pca100_spi0_data __initconst = {
207 .chipselect = pca100_spi_cs,
211 static void pca100_ac97_warm_reset(
struct snd_ac97 *ac97)
221 static void pca100_ac97_cold_reset(
struct snd_ac97 *ac97)
237 .ac97_reset = pca100_ac97_cold_reset,
238 .ac97_warm_reset = pca100_ac97_warm_reset,
249 "imx-mmc-detect", data);
252 "pca100: Failed to reuest irq for sd/mmc detection\n");
257 static void pca100_sdhc2_exit(
struct device *dev,
void *data)
263 .init = pca100_sdhc2_init,
264 .exit = pca100_sdhc2_exit,
277 .init = otg_phy_init,
291 .
init = usbh2_phy_init,
304 if (!
strcmp(options,
"host"))
305 otg_mode_host =
true;
306 else if (!
strcmp(options,
"device"))
307 otg_mode_host =
false;
309 pr_info(
"otg_mode neither \"host\" nor \"device\". "
310 "Defaulting to device\n");
313 __setup(
"otg_mode=", pca100_otg_mode);
319 .name =
"EMERGING-ETV570G0DHU",
346 .mode = pca100_fb_modes,
354 static void __init pca100_init(
void)
414 static void __init pca100_timer_init(
void)
420 .init = pca100_timer_init,
424 .atag_offset = 0x100,
429 .init_machine = pca100_init,
430 .timer = &pca100_timer,