19 #include <linux/kernel.h>
52 #define GPIO_HUB_POWER 1
53 #define GPIO_HUB_NRESET 62
54 #define GPIO_WIFI_PMENA 43
55 #define GPIO_WIFI_IRQ 53
56 #define HDMI_GPIO_CT_CP_HPD 60
57 #define HDMI_GPIO_LS_OE 41
58 #define HDMI_GPIO_HPD 63
63 .dev_name =
"/dev/ttyO1",
75 .platform_data = &wilink_platform_data,
79 static struct gpio_led gpio_leds[] = {
81 .name =
"pandaboard::status1",
82 .default_trigger =
"heartbeat",
86 .name =
"pandaboard::status2",
87 .default_trigger =
"mmc0",
101 .platform_data = &gpio_led_info,
117 .mclk_freq = 38400000,
122 .name =
"omap-abe-twl6040",
125 .platform_data = &panda_abe_audio_data,
130 .name =
"hdmi-audio-codec",
143 &panda_hdmi_audio_codec,
152 .reset_gpio_port[0] = -
EINVAL,
153 .reset_gpio_port[1] = -
EINVAL,
154 .reset_gpio_port[2] = -
EINVAL
162 static void __init omap4_ehci_init(
void)
165 struct clk *phy_ref_clk;
169 if (IS_ERR(phy_ref_clk)) {
170 pr_err(
"Cannot request auxclk3\n");
174 clk_prepare_enable(phy_ref_clk);
180 pr_err(
"Unable to initialize EHCI power/reset\n");
194 static struct omap_musb_board_data musb_board_data = {
195 .interface_type = MUSB_INTERFACE_UTMI,
214 .nonremovable =
true,
227 .num_consumer_supplies =
ARRAY_SIZE(omap4_panda_vmmc5_supply),
228 .consumer_supplies = omap4_panda_vmmc5_supply,
232 .supply_name =
"vwl1271",
233 .microvolts = 1800000,
235 .startup_delay = 70000,
237 .enabled_at_boot = 0,
238 .init_data = &panda_vmmc5,
242 .name =
"reg-fixed-voltage",
245 .platform_data = &panda_vwlan,
255 .hs_left_step = 0x0f,
256 .hs_right_step = 0x0f,
257 .hf_left_step = 0x1d,
258 .hf_right_step = 0x1d,
262 .
codec = &twl6040_codec,
263 .audpwron_gpio = 127,
266 static struct i2c_board_info __initdata panda_i2c_1_boardinfo[] = {
270 .platform_data = &twl6040_data,
287 static int __init omap4_panda_i2c_init(
void)
301 omap4_pmic_init(
"twl6030", &omap4_panda_twldata, panda_i2c_1_boardinfo,
314 #ifdef CONFIG_OMAP_MUX
409 #define board_mux NULL
413 #define PANDA_DVI_TFP410_POWER_DOWN_GPIO 0
424 .driver_name =
"tfp410",
425 .data = &omap4_dvi_panel,
426 .phy.dpi.data_lines = 24,
439 .driver_name =
"hdmi_panel",
442 .data = &omap4_panda_hdmi_data,
446 &omap4_panda_dvi_device,
447 &omap4_panda_hdmi_device,
451 .num_devices =
ARRAY_SIZE(omap4_panda_dss_devices),
452 .devices = omap4_panda_dss_devices,
453 .default_device = &omap4_panda_dvi_device,
456 static void __init omap4_panda_display_init(
void)
475 static void omap4_panda_init_rev(
void)
480 panda_abe_audio_data.
card_name =
"PandaBoard";
485 panda_abe_audio_data.
card_name =
"PandaBoardES";
489 static void __init omap4_panda_init(
void)
491 int package = OMAP_PACKAGE_CBS;
495 package = OMAP_PACKAGE_CBL;
501 pr_err(
"error setting wl12xx data: %d\n", ret);
503 omap4_panda_init_rev();
504 omap4_panda_i2c_init();
512 omap4_panda_display_init();
517 .atag_offset = 0x100,
524 .init_machine = omap4_panda_init,