Exemplo n.º 1
0
static __init void davinci_evm_init(void)
{
	davinci_gpio_init();
	davinci_psc_init();

	/* There are actually 3 expanders on the board, one is LEDs only... */
	davinci_i2c_expander.address = 0x3A;
	davinci_i2c_expander.init_data = 0xF6;
	davinci_i2c_expander.name = "davinci_evm_expander1";
	davinci_i2c_expander.setup = dm644x_evm_expander_setup;
	davinci_i2c_expander.validate = dm644x_evm_expander_validate;
	davinci_i2c_expander.special = dm644x_evm_expander_special;

#if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \
    defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE)
	printk(KERN_WARNING "WARNING: both IDE and NOR flash are enabled, "
	       "but share pins.\n\tDisable IDE for NOR support.\n");
#endif
#if defined(CONFIG_MTD_NAND_DAVINCI) || defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
	printk(KERN_WARNING "WARNING: both NAND and NOR flash are enabled, "
	       "but share pins.\n\tDisable NAND for NOR support.\n");
#endif

	setup_mmc();
	platform_notify = davinci_serial_init;
	platform_add_devices(davinci_evm_devices,
			     ARRAY_SIZE(davinci_evm_devices));
}
Exemplo n.º 2
0
static __init void davinci_evm_init(void)
{
	davinci_gpio_init();
	davinci_psc_init();

#ifdef CONFIG_DM357_STORAGE_NAND
	davinci_cfg_reg(DM357_AECS4, PINMUX_RESV);
#endif

	davinci_i2c_expander.address = 0x3A;
	davinci_i2c_expander.init_data = 0xF6;
	davinci_i2c_expander.name = "dm357_evm_expander1";
	davinci_i2c_expander.setup = dm357_evm_expander_setup;
	davinci_i2c_expander.validate = dm357_evm_expander_validate;

	platform_notify = davinci_serial_init;
	platform_add_devices(davinci_evm_devices,
			     ARRAY_SIZE(davinci_evm_devices));
}
static __init void ntosd_644xa_init(void)
{
	davinci_psc_init();

#if defined(CONFIG_BLK_DEV_DAVINCI) || defined(CONFIG_BLK_DEV_DAVINCI_MODULE)
	printk(KERN_WARNING "WARNING: both IDE and NOR flash are enabled, "
	       "but share pins.\n\t Disable IDE for NOR support.\n");
#endif

	platform_add_devices(ntosd_644xa_devices,
			     ARRAY_SIZE(ntosd_644xa_devices));

	setup_usb();
#if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
	davinci_mux_peripheral(DAVINCI_MUX_AEAW0, 0);
	davinci_mux_peripheral(DAVINCI_MUX_AEAW1, 0);
	davinci_mux_peripheral(DAVINCI_MUX_AEAW2, 0);
	davinci_mux_peripheral(DAVINCI_MUX_AEAW3, 0);
	davinci_mux_peripheral(DAVINCI_MUX_AEAW4, 0);
	davinci_mux_peripheral(DAVINCI_MUX_VLYNQEN, 0);
#endif
}
Exemplo n.º 4
0
static __init void davinci_evm_init(void)
{
	davinci_gpio_init();
	davinci_psc_init();

	board_i2c_expander_setup = davinci_evm_i2c_expander_setup;

#if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \
    defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE)
	printk(KERN_WARNING "WARNING: both IDE and NOR flash are enabled, "
	       "but share pins.\n\tDisable IDE for NOR support.\n");
#endif
#if defined(CONFIG_MTD_NAND_DAVINCI) || defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
	printk(KERN_WARNING "WARNING: both NAND and NOR flash are enabled, "
	       "but share pins.\n\tDisable NAND for NOR support.\n");
#endif

	davinci_serial_init(&serial_device);
	setup_mmc();
	platform_add_devices(davinci_evm_devices,
			     ARRAY_SIZE(davinci_evm_devices));
}