diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2022-08-16 15:50:14 +0200 |
---|---|---|
committer | Andrejs Cainikovs <andrejs.cainikovs@toradex.com> | 2022-09-05 15:16:37 +0200 |
commit | 0b3c9cd1ee406439afb14390681c653db6c09651 (patch) | |
tree | 37710c397b62128bfbaade35064581fbf32e9967 /board | |
parent | 150c2f289cf3b48e63db872f82d998813979192b (diff) |
board: verdin-imx8mm: add USB power hooks
This is required to power the USB.
Upstream-Status: Inappropriate [other]
- NXP downstream specific
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/toradex/verdin-imx8mm/verdin-imx8mm.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/board/toradex/verdin-imx8mm/verdin-imx8mm.c b/board/toradex/verdin-imx8mm/verdin-imx8mm.c index 55c02653da6..2b4dadd469d 100644 --- a/board/toradex/verdin-imx8mm/verdin-imx8mm.c +++ b/board/toradex/verdin-imx8mm/verdin-imx8mm.c @@ -14,6 +14,7 @@ #include <micrel.h> #include <miiphy.h> #include <netdev.h> +#include <usb.h> #include "../common/tdx-cfg-block.h" @@ -52,6 +53,24 @@ int board_mmc_get_env_dev(int devno) return devno; } +int board_usb_init(int index, enum usb_init_type init) +{ + debug("%s: %d, type %d\n", __func__, index, init); + + imx8m_usb_power(index, true); + + return 0; +} + +int board_usb_cleanup(int index, enum usb_init_type init) +{ + debug("%s: %d, type %d\n", __func__, index, init); + + imx8m_usb_power(index, false); + + return 0; +} + static enum pcb_rev_t get_pcb_revision(void) { struct udevice *bus; |