diff options
author | Faiz Abbas <faiz_abbas@ti.com> | 2018-02-15 17:12:11 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-02-15 13:44:30 +0100 |
commit | b16c129c2290d26e7b16b4309713c78f6146bc8a (patch) | |
tree | b8185dabe62b6b6a89e2b974d7910f31826a1fc1 /board/compulab/cm_t43/cm_t43.c | |
parent | 163f8858ae8bfcd94ef8d6c4ed75ff3abb642450 (diff) |
usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions
board_usb_init()/_cleanup() should be in board files and don't have
a place in the xhci-omap driver. Weak versions for
board_usb_init()/_cleanup() already exist in common/usb.c
(for host mode) and drivers/usb/gadget/g_dnl.c (for gadget mode).
Therefore, remove init and cleanup functions from xhci-omap and
implement them in the board files.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'board/compulab/cm_t43/cm_t43.c')
-rw-r--r-- | board/compulab/cm_t43/cm_t43.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/compulab/cm_t43/cm_t43.c b/board/compulab/cm_t43/cm_t43.c index 0d5da6f5e9..bdbea4f5e5 100644 --- a/board/compulab/cm_t43/cm_t43.c +++ b/board/compulab/cm_t43/cm_t43.c @@ -14,6 +14,8 @@ #include <power/pmic.h> #include <power/tps65218.h> #include "board.h" +#include <usb.h> +#include <asm/omap_common.h> DECLARE_GLOBAL_DATA_PTR; @@ -50,6 +52,18 @@ int board_init(void) return 0; } +int board_usb_init(int index, enum usb_init_type init) +{ + enable_usb_clocks(index); + return 0; +} + +int board_usb_cleanup(int index, enum usb_init_type init) +{ + disable_usb_clocks(index); + return 0; +} + #ifdef CONFIG_DRIVER_TI_CPSW static void cpsw_control(int enabled) |