ipq807x: uboot: usb init: code clean up

This patch involves changes which makes
sure that usb init is done only when the
config CONFIG_USB_XHCI_IPQ is defined.

This change will allow us to disable or
enable usb init as per our need in uboot.

Change-Id: Icc0213470734856e763cddea747f17e3bc1ba51d
Signed-off-by: speriaka <speriaka@codeaurora.org>
This commit is contained in:
speriaka 2017-11-17 14:32:17 +05:30 committed by Gerrit - the friendly Code Review server
parent 9bebc1c4ea
commit 58ec68d67e

View file

@ -583,6 +583,7 @@ void board_pci_deinit()
}
#endif
#ifdef CONFIG_USB_XHCI_IPQ
void board_usb_deinit(int id)
{
void __iomem *boot_clk_ctl, *usb_bcr, *qusb2_phy_bcr;
@ -874,6 +875,7 @@ int ipq_board_usb_init(void)
}
return 0;
}
#endif
void ipq_fdt_fixup_socinfo(void *blob)
{