mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-09 10:47:41 +01:00
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 <maitysanchayan@gmail.com>
This commit is contained in:
parent
dde8c15b13
commit
60ed286453
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue