diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-12-04 11:12:57 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-12-14 17:59:09 +0100 |
commit | c9d52206939f7489e719c3c1c429c912d622fc42 (patch) | |
tree | 324d18c96b60535f2db1507b775e122e2c563812 /board | |
parent | 1c03ade328dd08603fa717076c5888557f1a9fa7 (diff) | |
download | u-boot-c9d52206939f7489e719c3c1c429c912d622fc42.zip u-boot-c9d52206939f7489e719c3c1c429c912d622fc42.tar.gz u-boot-c9d52206939f7489e719c3c1c429c912d622fc42.tar.bz2 |
board: ks2_evm: Enable the USB clocks if DM_USB is used
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/ti/ks2_evm/board.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 3e06800..eed62e9 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c @@ -66,6 +66,18 @@ struct image_header *spl_get_load_buffer(ssize_t offset, size_t size) int board_init(void) { +#if CONFIG_IS_ENABLED(DM_USB) + int rc = psc_enable_module(KS2_LPSC_USB); + + if (rc) + puts("Cannot enable USB0 module"); +#ifdef KS2_LPSC_USB_1 + rc = psc_enable_module(KS2_LPSC_USB_1); + if (rc) + puts("Cannot enable USB1 module"); +#endif +#endif + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; return 0; |