[U-Boot] [PATCH 2/2] opos6uldev: remove board_ehci_hcd_init function

Sébastien Szymanski sebastien.szymanski at armadeus.com
Tue May 14 11:46:21 UTC 2019


It's useless on the opos6uldev. Remove it.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski at armadeus.com>
---
 board/armadeus/opos6uldev/board.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/board/armadeus/opos6uldev/board.c b/board/armadeus/opos6uldev/board.c
index aed334f8fb..cbf40d5c4a 100644
--- a/board/armadeus/opos6uldev/board.c
+++ b/board/armadeus/opos6uldev/board.c
@@ -70,27 +70,6 @@ int setup_lcd(void)
 }
 #endif
 
-#ifdef CONFIG_USB_EHCI_MX6
-#define USB_OTHERREGS_OFFSET	0x800
-#define UCTRL_PWR_POL		(1 << 9)
-
-int board_ehci_hcd_init(int port)
-{
-	u32 *usbnc_usb_ctrl;
-
-	if (port > 1)
-		return -EINVAL;
-
-	usbnc_usb_ctrl = (u32 *)(USB_BASE_ADDR + USB_OTHERREGS_OFFSET +
-				 port * 4);
-
-	/* Set Power polarity */
-	setbits_le32(usbnc_usb_ctrl, UCTRL_PWR_POL);
-
-	return 0;
-}
-#endif
-
 int opos6ul_board_late_init(void)
 {
 #ifdef CONFIG_VIDEO_MXS
-- 
2.19.2



More information about the U-Boot mailing list