From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bhuvanchandra DV Date: Mon, 1 Jun 2015 18:37:24 +0530 Subject: [U-Boot] [PATCH V3 10/11] usb: ehci-vf: Add weak function for board specific initialisation In-Reply-To: <1433164045-9987-1-git-send-email-bhuvanchandra.dv@toradex.com> References: <1433164045-9987-1-git-send-email-bhuvanchandra.dv@toradex.com> Message-ID: <1433164045-9987-11-git-send-email-bhuvanchandra.dv@toradex.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Sanchayan Maity 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 --- drivers/usb/host/ehci-vf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 5454855..98e0fc6 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -121,6 +121,11 @@ static void usb_oc_config(int index) setbits_le32(ctrl, UCTRL_OVER_CUR_DIS); } +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) { @@ -136,6 +141,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); -- 2.1.0