musb: Program extvbus for OMAP3EVM Rev >= E

OMAP3EVM Rev >=E uses external Vbus supply so setting 'extvbus'
to '1' for OMAP3EVM Rev >=E runtime based on EVM revision.

CC: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
This commit is contained in:
Ajay Kumar Gupta 2010-06-10 11:20:50 +05:30 committed by Remy Bohmer
parent b5abf644aa
commit 944a4894c0
3 changed files with 20 additions and 0 deletions

View File

@ -64,6 +64,19 @@ static void omap3_evm_get_revision(void)
}
}
/*
* MUSB port on OMAP3EVM Rev >= E requires extvbus programming.
*/
u8 omap3_evm_need_extvbus(void)
{
u8 retval = 0;
if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
retval = 1;
return retval;
}
/*
* Routine: board_init
* Description: Early hardware init.

View File

@ -119,6 +119,9 @@ int musb_platform_init(void)
stdby &= ~OMAP3_OTG_FORCESTDBY_STANDBY;
writel(stdby, &otg->forcestdby);
#ifdef CONFIG_OMAP3_EVM
musb_cfg.extvbus = omap3_evm_need_extvbus();
#endif
platform_needs_initialization = 0;
}

View File

@ -44,4 +44,8 @@
int musb_platform_init(void);
#ifdef CONFIG_OMAP3_EVM
extern u8 omap3_evm_use_extvbus(void);
#endif
#endif /* _MUSB_OMAP3_H */