Commit 60ed286453c8c14facdbeb3807c6d03596fc3ce9
Committed by
Stefano Babic
1 parent
dde8c15b13
Exists in
v2017.01-smarct4x
and in
34 other branches
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>
Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff
drivers/usb/host/ehci-vf.c
... | ... | @@ -121,6 +121,11 @@ |
121 | 121 | setbits_le32(ctrl, UCTRL_OVER_CUR_DIS); |
122 | 122 | } |
123 | 123 | |
124 | +int __weak board_ehci_hcd_init(int port) | |
125 | +{ | |
126 | + return 0; | |
127 | +} | |
128 | + | |
124 | 129 | int ehci_hcd_init(int index, enum usb_init_type init, |
125 | 130 | struct ehci_hccr **hccr, struct ehci_hcor **hcor) |
126 | 131 | { |
... | ... | @@ -135,6 +140,9 @@ |
135 | 140 | return -ENODEV; |
136 | 141 | |
137 | 142 | ehci = (struct usb_ehci *)nc_reg_bases[index]; |
143 | + | |
144 | + /* Do board specific initialisation */ | |
145 | + board_ehci_hcd_init(index); | |
138 | 146 | |
139 | 147 | usb_power_config(index); |
140 | 148 | usb_oc_config(index); |