18 #include <linux/kernel.h>
29 #include <asm/setup.h>
31 #include <mach/board.h>
32 #include <mach/irqs.h>
41 static const unsigned qsd8x50_surf_smc91x_gpio
__initconst = 156;
47 static struct resource smc91x_resources[] = {
60 .resource = smc91x_resources,
63 static int __init msm_init_smc91x(
void)
65 if (machine_is_qsd8x50_surf()) {
66 smc91x_resources[0].
start = qsd8x50_surf_smc91x_base;
67 smc91x_resources[0].
end = qsd8x50_surf_smc91x_base + 0xff;
68 smc91x_resources[1].
start =
70 smc91x_resources[1].
end =
79 static int hsusb_phy_init_seq[] = {
86 .phy_init_seq = hsusb_phy_init_seq,
108 static struct vreg *vreg_mmc;
109 static unsigned long vreg_sts;
111 static uint32_t msm_sdcc_setup_power(
struct device *dv,
unsigned int vdd)
127 pr_err(
"vreg_mmc disable failed for slot "
128 "%d: %d\n", pdev->
id, rc);
136 pr_err(
"vreg_mmc set level failed for slot %d: %d\n",
140 pr_err(
"vreg_mmc enable failed for slot %d: %d\n",
148 .gpio = sdc1_gpio_cfg,
154 .translate_vdd = msm_sdcc_setup_power,
155 .gpio_data = &sdc1_gpio,
158 static void __init qsd8x50_init_mmc(
void)
162 if (IS_ERR(vreg_mmc)) {
163 pr_err(
"vreg get for vreg_mmc failed (%ld)\n",
171 static void __init qsd8x50_map_io(
void)
177 static void __init qsd8x50_init_irq(
void)
183 static void __init qsd8x50_init(
void)
192 static void __init qsd8x50_init_late(
void)
198 .atag_offset = 0x100,
199 .map_io = qsd8x50_map_io,
200 .init_irq = qsd8x50_init_irq,
201 .init_machine = qsd8x50_init,
202 .init_late = qsd8x50_init_late,
207 .atag_offset = 0x100,
208 .map_io = qsd8x50_map_io,
209 .init_irq = qsd8x50_init_irq,
210 .init_machine = qsd8x50_init,
211 .init_late = qsd8x50_init_late,