aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Moch2019-03-01 13:10:56 +0100
committerStefano Babic2019-04-13 20:30:09 +0200
commitab3f5efe02cddc74ffd768fdfe8c2d6b31303cc5 (patch)
tree35aee75f2ed3ec016f782f80c29248230b7f61ce
parentf0b427aca6ac502b92f0dc32ac2b99bd6bfea5ae (diff)
board: tbs2910: Convert usb to driver model
So we don't need to duplicate settings from the device tree in the board file. Signed-off-by: Soeren Moch <smoch@web.de>
-rw-r--r--board/tbs/tbs2910/tbs2910.c10
-rw-r--r--configs/tbs2910_defconfig2
-rw-r--r--include/configs/tbs2910.h1
3 files changed, 2 insertions, 11 deletions
diff --git a/board/tbs/tbs2910/tbs2910.c b/board/tbs/tbs2910/tbs2910.c
index 175dd88a691..20c93778e13 100644
--- a/board/tbs/tbs2910/tbs2910.c
+++ b/board/tbs/tbs2910/tbs2910.c
@@ -418,12 +418,6 @@ static const struct boot_mode board_boot_modes[] = {
};
#endif
-#ifdef CONFIG_USB_EHCI_MX6
-static iomux_v3_cfg_t const usb_otg_pads[] = {
- MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(NO_PAD_CTRL),
-};
-#endif
-
int board_init(void)
{
/* address of boot parameters */
@@ -443,9 +437,5 @@ int board_init(void)
#ifdef CONFIG_CMD_BMODE
add_board_boot_modes(board_boot_modes);
#endif
-#ifdef CONFIG_USB_EHCI_MX6
- imx_iomux_v3_setup_multiple_pads(
- usb_otg_pads, ARRAY_SIZE(usb_otg_pads));
-#endif
return 0;
}
diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
index 717cabfa3b7..395275c6dd3 100644
--- a/configs/tbs2910_defconfig
+++ b/configs/tbs2910_defconfig
@@ -43,6 +43,7 @@ CONFIG_ENV_IS_IN_MMC=y
CONFIG_DM=y
CONFIG_DWC_AHSATA=y
CONFIG_DM_GPIO=y
+CONFIG_DM_KEYBOARD=y
CONFIG_FSL_ESDHC=y
CONFIG_PHYLIB=y
CONFIG_MII=y
@@ -51,6 +52,7 @@ CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX6=y
CONFIG_DM_THERMAL=y
CONFIG_USB=y
+CONFIG_DM_USB=y
CONFIG_USB_STORAGE=y
CONFIG_USB_KEYBOARD=y
CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
index b06c90939cc..93f75d72f3c 100644
--- a/include/configs/tbs2910.h
+++ b/include/configs/tbs2910.h
@@ -81,7 +81,6 @@
/* USB */
#ifdef CONFIG_CMD_USB
-#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
#ifdef CONFIG_CMD_USB_MASS_STORAGE