28 #include <linux/module.h>
38 #include <asm/reboot.h>
42 #define F_SWAPPED (bcsr_read(BCSR_STATUS) & BCSR_STATUS_DB1000_SWAPBOOT)
46 static const char *board_type_str(
void)
67 return board_type_str();
82 if ((slot < 12) || (slot > 13) || pin == 0)
97 static struct resource alchemy_pci_host_res[] = {
106 .board_map_irq = db1500_map_pci_irq,
110 .dev.platform_data = &db1500_pci_pd,
111 .name =
"alchemy-pci",
113 .num_resources =
ARRAY_SIZE(alchemy_pci_host_res),
114 .resource = alchemy_pci_host_res,
117 static int __init db1500_pci_init(
void)
129 static struct resource au1100_lcd_resources[] = {
145 .name =
"au1100-lcd",
148 .dma_mask = &au1100_lcd_dmamask,
151 .num_resources =
ARRAY_SIZE(au1100_lcd_resources),
152 .resource = au1100_lcd_resources,
155 static struct resource alchemy_ac97c_res[] = {
174 .name =
"alchemy-ac97c",
176 .resource = alchemy_ac97c_res,
177 .num_resources =
ARRAY_SIZE(alchemy_ac97c_res),
181 .name =
"alchemy-pcm-dma",
186 .name =
"ac97-codec",
191 .name =
"db1000-audio",
207 static int db1100_mmc_cd_setup(
void *
mmc_host,
int en)
225 static int db1100_mmc1_cd_setup(
void *mmc_host,
int en)
243 static int db1100_mmc_card_readonly(
void *mmc_host)
249 static int db1100_mmc_card_inserted(
void *mmc_host)
251 return !alchemy_gpio_get_value(19);
254 static void db1100_mmc_set_power(
void *mmc_host,
int state)
279 .brightness_set = db1100_mmcled_set,
282 static int db1100_mmc1_card_readonly(
void *mmc_host)
287 static int db1100_mmc1_card_inserted(
void *mmc_host)
289 return !alchemy_gpio_get_value(20);
292 static void db1100_mmc1_set_power(
void *mmc_host,
int state)
317 .brightness_set = db1100_mmc1led_set,
322 .cd_setup = db1100_mmc_cd_setup,
323 .set_power = db1100_mmc_set_power,
324 .card_inserted = db1100_mmc_card_inserted,
325 .card_readonly = db1100_mmc_card_readonly,
326 .led = &db1100_mmc_led,
329 .cd_setup = db1100_mmc1_cd_setup,
330 .set_power = db1100_mmc1_set_power,
331 .card_inserted = db1100_mmc1_card_inserted,
332 .card_readonly = db1100_mmc1_card_readonly,
333 .led = &db1100_mmc1_led,
337 static struct resource au1100_mmc0_resources[] = {
363 .name =
"au1xxx-mmc",
366 .dma_mask = &au1xxx_mmc_dmamask,
368 .platform_data = &db1100_mmc_platdata[0],
370 .num_resources =
ARRAY_SIZE(au1100_mmc0_resources),
371 .resource = au1100_mmc0_resources,
374 static struct resource au1100_mmc1_res[] = {
398 .name =
"au1xxx-mmc",
401 .dma_mask = &au1xxx_mmc_dmamask,
403 .platform_data = &db1100_mmc_platdata[1],
406 .resource = au1100_mmc1_res,
411 static void db1000_irda_set_phy_mode(
int mode)
430 .set_phy_mode = db1000_irda_set_phy_mode,
433 static struct resource au1000_irda_res[] = {
452 .name =
"au1000-irda",
455 .platform_data = &db1000_irda_platdata,
457 .resource = au1000_irda_res,
478 .modalias =
"ads7846",
479 .max_speed_hz = 3250000,
484 .platform_data = &db1100_touch_pd,
485 .controller_data = (
void *)210,
493 .platform_data = &db1100_spictl_pd,
500 &alchemy_ac97c_dma_dev,
516 static int __init db1000_dev_init(
void)
519 int c0, c1,
d0,
d1,
s0,
s1, flashsize = 32, twosocks = 1;