mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-26 20:53:23 +08:00
usb: use __weak
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
e7e60c13c5
commit
3dd80aae3a
@ -119,15 +119,12 @@ static struct descriptor {
|
||||
#define ehci_is_TDI() (0)
|
||||
#endif
|
||||
|
||||
int __ehci_get_port_speed(struct ehci_hcor *hcor, uint32_t reg)
|
||||
__weak int ehci_get_port_speed(struct ehci_hcor *hcor, uint32_t reg)
|
||||
{
|
||||
return PORTSC_PSPD(reg);
|
||||
}
|
||||
|
||||
int ehci_get_port_speed(struct ehci_hcor *hcor, uint32_t reg)
|
||||
__attribute__((weak, alias("__ehci_get_port_speed")));
|
||||
|
||||
void __ehci_set_usbmode(int index)
|
||||
__weak void ehci_set_usbmode(int index)
|
||||
{
|
||||
uint32_t tmp;
|
||||
uint32_t *reg_ptr;
|
||||
@ -141,17 +138,11 @@ void __ehci_set_usbmode(int index)
|
||||
ehci_writel(reg_ptr, tmp);
|
||||
}
|
||||
|
||||
void ehci_set_usbmode(int index)
|
||||
__attribute__((weak, alias("__ehci_set_usbmode")));
|
||||
|
||||
void __ehci_powerup_fixup(uint32_t *status_reg, uint32_t *reg)
|
||||
__weak void ehci_powerup_fixup(uint32_t *status_reg, uint32_t *reg)
|
||||
{
|
||||
mdelay(50);
|
||||
}
|
||||
|
||||
void ehci_powerup_fixup(uint32_t *status_reg, uint32_t *reg)
|
||||
__attribute__((weak, alias("__ehci_powerup_fixup")));
|
||||
|
||||
static int handshake(uint32_t *ptr, uint32_t mask, uint32_t done, int usec)
|
||||
{
|
||||
uint32_t result;
|
||||
|
Loading…
Reference in New Issue
Block a user