Commit c9d52206939f7489e719c3c1c429c912d622fc42

Authored by Jean-Jacques Hiblot
Committed by Marek Vasut
1 parent 1c03ade328

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>

Showing 1 changed file with 12 additions and 0 deletions Side-by-side Diff

board/ti/ks2_evm/board.c
... ... @@ -66,6 +66,18 @@
66 66  
67 67 int board_init(void)
68 68 {
  69 +#if CONFIG_IS_ENABLED(DM_USB)
  70 + int rc = psc_enable_module(KS2_LPSC_USB);
  71 +
  72 + if (rc)
  73 + puts("Cannot enable USB0 module");
  74 +#ifdef KS2_LPSC_USB_1
  75 + rc = psc_enable_module(KS2_LPSC_USB_1);
  76 + if (rc)
  77 + puts("Cannot enable USB1 module");
  78 +#endif
  79 +#endif
  80 +
69 81 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
70 82  
71 83 return 0;