From: Sanchayan Maity Date: Mon, 4 May 2015 05:58:54 +0000 (+0530) Subject: usb: ehci-vf: Add weak function for board specific initialisation X-Git-Url: http://git.agner.ch/gitweb/?p=u-boot.git;a=commitdiff_plain;h=56adc6e9a6ab7e7ccb75a38d34ff9fda96b9cf3a usb: ehci-vf: Add weak function for board specific initialisation Add a weak function board_ehci_hcd_init which can be used by the board file for board specific initialisation. Signed-off-by: Sanchayan Maity --- diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 4aa3b9ccae..ade81858a6 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -161,6 +161,11 @@ static void usb_oc_config(int index) __raw_writel(val, ctrl); } +int __weak board_ehci_hcd_init(int port) +{ + return 0; +} + int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr, struct ehci_hcor **hcor) { @@ -176,6 +181,9 @@ int ehci_hcd_init(int index, enum usb_init_type init, ehci = (struct usb_ehci *)nc_reg_bases[index]; + /* Do board specific initialisation */ + board_ehci_hcd_init(index); + usb_power_config(index); usb_oc_config(index); usb_internal_phy_clock_gate(index);