15 #include <linux/types.h>
26 #include <linux/i2c.h>
36 #include <mach/hardware.h>
37 #include <mach/common.h>
46 .name =
"Sharp-LQ035Q7",
80 .name =
"Sharp-LQ035Q7",
89 static struct resource pcm043_flash_resource = {
96 .name =
"physmap-flash",
99 .platform_data = &pcm043_flash_data,
101 .resource = &pcm043_flash_resource,
122 .platform_data = &board_eeprom,
215 #define AC97_GPIO_TXFS IMX_GPIO_NR(2, 31)
216 #define AC97_GPIO_TXD IMX_GPIO_NR(2, 28)
217 #define AC97_GPIO_RESET IMX_GPIO_NR(2, 0)
218 #define SD1_GPIO_WP IMX_GPIO_NR(2, 23)
219 #define SD1_GPIO_CD IMX_GPIO_NR(2, 24)
221 static void pcm043_ac97_warm_reset(
struct snd_ac97 *ac97)
229 printk(
"failed to get GPIO_TXFS: %d\n", ret);
244 static void pcm043_ac97_cold_reset(
struct snd_ac97 *ac97)
287 printk(
"%s failed with %d\n", __func__, ret);
292 .ac97_reset = pcm043_ac97_cold_reset,
293 .ac97_warm_reset = pcm043_ac97_warm_reset,
298 pcm037_nand_board_info __initconst = {
309 .init = pcm043_otg_init,
320 .init = pcm043_usbh1_init,
333 if (!
strcmp(options,
"host"))
334 otg_mode_host =
true;
335 else if (!
strcmp(options,
"device"))
336 otg_mode_host =
false;
338 pr_info(
"otg_mode neither \"host\" nor \"device\". "
339 "Defaulting to device\n");
342 __setup(
"otg_mode=", pcm043_otg_mode);
354 static void __init pcm043_init(
void)
393 static void __init pcm043_timer_init(
void)
399 .init = pcm043_timer_init,
404 .atag_offset = 0x100,
409 .timer = &pcm043_timer,
410 .init_machine = pcm043_init,