Animeo IP: add usb host support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
fe4117357f
commit
c7a7c00f8e
|
@ -146,6 +146,21 @@ static void animeo_ip_add_device_mci(void)
|
||||||
static void animeo_ip_add_device_mci(void) {}
|
static void animeo_ip_add_device_mci(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* USB Host port
|
||||||
|
*/
|
||||||
|
static struct at91_usbh_data __initdata animeo_ip_usbh_data = {
|
||||||
|
.ports = 2,
|
||||||
|
.vbus_pin = {AT91_PIN_PB15, -EINVAL},
|
||||||
|
.vbus_pin_active_low = {0, 0},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
static void animeo_ip_add_device_usb(void)
|
||||||
|
{
|
||||||
|
at91_add_device_usbh_ohci(&animeo_ip_usbh_data);
|
||||||
|
}
|
||||||
|
|
||||||
struct gpio_bicolor_led leds[] = {
|
struct gpio_bicolor_led leds[] = {
|
||||||
{
|
{
|
||||||
.gpio_c0 = AT91_PIN_PC17,
|
.gpio_c0 = AT91_PIN_PC17,
|
||||||
|
@ -216,6 +231,7 @@ static int animeo_ip_devices_init(void)
|
||||||
animeo_ip_power_control();
|
animeo_ip_power_control();
|
||||||
animeo_ip_add_device_nand();
|
animeo_ip_add_device_nand();
|
||||||
at91_add_device_eth(0, &macb_pdata);
|
at91_add_device_eth(0, &macb_pdata);
|
||||||
|
animeo_ip_add_device_usb();
|
||||||
animeo_ip_add_device_mci();
|
animeo_ip_add_device_mci();
|
||||||
animeo_ip_add_device_buttons();
|
animeo_ip_add_device_buttons();
|
||||||
animeo_ip_add_device_led();
|
animeo_ip_add_device_led();
|
||||||
|
|
|
@ -56,6 +56,8 @@ CONFIG_NET_NFS=y
|
||||||
CONFIG_NET_PING=y
|
CONFIG_NET_PING=y
|
||||||
CONFIG_MICREL_PHY=y
|
CONFIG_MICREL_PHY=y
|
||||||
CONFIG_DRIVER_NET_MACB=y
|
CONFIG_DRIVER_NET_MACB=y
|
||||||
|
CONFIG_NET_USB=y
|
||||||
|
CONFIG_NET_USB_ASIX=y
|
||||||
# CONFIG_SPI is not set
|
# CONFIG_SPI is not set
|
||||||
CONFIG_MTD=y
|
CONFIG_MTD=y
|
||||||
# CONFIG_MTD_OOB_DEVICE is not set
|
# CONFIG_MTD_OOB_DEVICE is not set
|
||||||
|
@ -65,6 +67,9 @@ CONFIG_NAND=y
|
||||||
# CONFIG_NAND_ECC_HW_NONE is not set
|
# CONFIG_NAND_ECC_HW_NONE is not set
|
||||||
CONFIG_NAND_ATMEL=y
|
CONFIG_NAND_ATMEL=y
|
||||||
CONFIG_UBI=y
|
CONFIG_UBI=y
|
||||||
|
CONFIG_USB=y
|
||||||
|
CONFIG_USB_OHCI=y
|
||||||
|
CONFIG_USB_OHCI_AT91=y
|
||||||
CONFIG_MCI=y
|
CONFIG_MCI=y
|
||||||
CONFIG_MCI_STARTUP=y
|
CONFIG_MCI_STARTUP=y
|
||||||
CONFIG_MCI_ATMEL=y
|
CONFIG_MCI_ATMEL=y
|
||||||
|
|
Loading…
Reference in New Issue