]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ti/dra7xx/evm.c
board: ti: invoke clock API to enable and disable clocks
[karo-tx-uboot.git] / board / ti / dra7xx / evm.c
index eaf123cf55aad3377a24e0618d406d04a67fb6ba..890b6039e35a4e572517a02ac77129e3b5093706 100644 (file)
@@ -163,6 +163,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) {
@@ -209,6 +210,7 @@ int board_usb_cleanup(int index, enum usb_init_type init)
        default:
                printf("Invalid Controller Index\n");
        }
+       disable_usb_clocks(index);
        return 0;
 }