sunxi: ehci: Add proper Kconfig options to select the usb Vbus gpio-s
Add proper Kconfig options to select the usb Vbus gpio-s, besides moving to Kconfig being the right thing to do, an added advantage of this is that it allows for boards without Vbus gpio-s. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
@@ -18,14 +18,7 @@
|
||||
|
||||
#ifdef CONFIG_USB_EHCI
|
||||
#define CONFIG_USB_EHCI_SUNXI
|
||||
|
||||
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
||||
#ifndef CONFIG_SUNXI_USB_VBUS0_GPIO
|
||||
#define CONFIG_SUNXI_USB_VBUS0_GPIO SUNXI_GPH(6)
|
||||
#endif
|
||||
#ifndef CONFIG_SUNXI_USB_VBUS1_GPIO
|
||||
#define CONFIG_SUNXI_USB_VBUS1_GPIO SUNXI_GPH(3)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
@@ -19,14 +19,7 @@
|
||||
|
||||
#ifdef CONFIG_USB_EHCI
|
||||
#define CONFIG_USB_EHCI_SUNXI
|
||||
|
||||
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
||||
#ifndef CONFIG_SUNXI_USB_VBUS0_GPIO
|
||||
#define CONFIG_SUNXI_USB_VBUS0_GPIO SUNXI_GPH(6)
|
||||
#endif
|
||||
#ifndef CONFIG_SUNXI_USB_VBUS1_GPIO
|
||||
#define CONFIG_SUNXI_USB_VBUS1_GPIO SUNXI_GPH(3)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define CONFIG_ARMV7_VIRT 1
|
||||
|
||||
Reference in New Issue
Block a user