static void __init board_zc702_init(void)
{

	/* initialize the xilinx common code before the board
	 * specific
	 */
	xilinx_init_machine();

	/* Reset USB by toggling MIO7 */
	if (gpio_request(USB_RST_GPIO, "USB Reset"))
		printk(KERN_ERR "ERROR requesting GPIO, USB not reset!");

	if (gpio_direction_output(USB_RST_GPIO, 1))
		printk(KERN_ERR "ERROR setting GPIO direction, USB not reset!");

	gpio_set_value(USB_RST_GPIO, 1);
	gpio_set_value(USB_RST_GPIO, 0);
	gpio_set_value(USB_RST_GPIO, 1);

#if 	defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_MTD_M25P80)
	spi_register_board_info(&xilinx_spipss_0_boardinfo[0], 
		ARRAY_SIZE(xilinx_spipss_0_boardinfo));
#endif

#if	defined(CONFIG_I2C_XILINX_PS) && defined(CONFIG_I2C_MUX_PCA954x)
	i2c_register_board_info(0, pca954x_i2c_devices,
				ARRAY_SIZE(pca954x_i2c_devices));

#if	defined(CONFIG_SI570)
	i2c_register_board_info(1, si570_board_info,
				ARRAY_SIZE(si570_board_info));
#endif

#if	defined(CONFIG_EEPROM_AT24)
	i2c_register_board_info(3, m24c08_board_info,
				ARRAY_SIZE(m24c08_board_info));
#endif

#if	defined(CONFIG_GPIO_PCA953X)
	i2c_register_board_info(4, tca6416_board_info,
				ARRAY_SIZE(tca6416_board_info));
#endif

#if	defined(CONFIG_RTC_DRV_PCF8563)
	i2c_register_board_info(5, rtc8564_board_info,
				ARRAY_SIZE(rtc8564_board_info));
#endif


#endif
}
Exemple #2
0
static void __init board_zc702_init(void)
{

	/* initialize the xilinx common code before the board
	 * specific
	 */
	xilinx_init_machine();

#if 	defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_MTD_M25P80)
	spi_register_board_info(&xilinx_spipss_0_boardinfo[0], 
		ARRAY_SIZE(xilinx_spipss_0_boardinfo));
#endif

#if	defined(CONFIG_I2C_XILINX_PS) && defined(CONFIG_I2C_MUX_PCA954x)
	i2c_register_board_info(0, pca954x_i2c_devices,
				ARRAY_SIZE(pca954x_i2c_devices));

#if	defined(CONFIG_SI570)
	i2c_register_board_info(1, si570_board_info,
				ARRAY_SIZE(si570_board_info));
#endif

#if	defined(CONFIG_EEPROM_AT24)
	i2c_register_board_info(3, m24c08_board_info,
				ARRAY_SIZE(m24c08_board_info));
#endif

#if	defined(CONFIG_GPIO_PCA953X)
	i2c_register_board_info(4, tca6416_board_info,
				ARRAY_SIZE(tca6416_board_info));
#endif

#if	defined(CONFIG_RTC_DRV_PCF8563)
	i2c_register_board_info(5, rtc8564_board_info,
				ARRAY_SIZE(rtc8564_board_info));
#endif


#endif
}