]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ti/am43xx/board.c
board: ti: invoke clock API to enable and disable clocks
[karo-tx-uboot.git] / board / ti / am43xx / board.c
index 14549765d7f9aa2783bcfed4102efc363456aa70..770726c3f7964f801c8ab483926fb7501c5bdb16 100644 (file)
@@ -713,6 +713,7 @@ static struct ti_usb_phy_device usb_phy2_device = {
 
 int board_usb_init(int index, enum usb_init_type init)
 {
+       enable_usb_clocks(index);
        switch (index) {
        case 0:
                if (init == USB_INIT_DEVICE) {
@@ -759,6 +760,7 @@ int board_usb_cleanup(int index, enum usb_init_type init)
        default:
                printf("Invalid Controller Index\n");
        }
+       disable_usb_clocks(index);
 
        return 0;
 }