@ -259,7 +259,7 @@ static int fdt_fixup_usb_erratum(void *blob, const char *prop_erratum,
void fdt_fixup_dr_usb ( void * blob , bd_t * bd )
void fdt_fixup_dr_usb ( void * blob , bd_t * bd )
{
{
static const char * const modes [ ] = { " host " , " peripheral " , " otg " } ;
static const char * const modes [ ] = { " host " , " peripheral " , " otg " } ;
static const char * const phys [ ] = { " ulpi " , " utmi " } ;
static const char * const phys [ ] = { " ulpi " , " utmi " , " utmi_dual " } ;
int usb_erratum_a006261_off = - 1 ;
int usb_erratum_a006261_off = - 1 ;
int usb_erratum_a007075_off = - 1 ;
int usb_erratum_a007075_off = - 1 ;
int usb_erratum_a007792_off = - 1 ;
int usb_erratum_a007792_off = - 1 ;
@ -303,6 +303,9 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd)
dr_phy_type = phys [ phy_idx ] ;
dr_phy_type = phys [ phy_idx ] ;
}
}
if ( has_dual_phy ( ) )
dr_phy_type = phys [ 2 ] ;
usb_mode_off = fdt_fixup_usb_mode_phy_type ( blob ,
usb_mode_off = fdt_fixup_usb_mode_phy_type ( blob ,
dr_mode_type , NULL ,
dr_mode_type , NULL ,
usb_mode_off ) ;
usb_mode_off ) ;
@ -325,6 +328,7 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd)
if ( usb_erratum_a006261_off < 0 )
if ( usb_erratum_a006261_off < 0 )
return ;
return ;
}
}
if ( has_erratum_a007075 ( ) ) {
if ( has_erratum_a007075 ( ) ) {
usb_erratum_a007075_off = fdt_fixup_usb_erratum
usb_erratum_a007075_off = fdt_fixup_usb_erratum
( blob ,
( blob ,
@ -333,6 +337,7 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd)
if ( usb_erratum_a007075_off < 0 )
if ( usb_erratum_a007075_off < 0 )
return ;
return ;
}
}
if ( has_erratum_a007792 ( ) ) {
if ( has_erratum_a007792 ( ) ) {
usb_erratum_a007792_off = fdt_fixup_usb_erratum
usb_erratum_a007792_off = fdt_fixup_usb_erratum
( blob ,
( blob ,