arm, usb, davinci: make USBPHY_CTL register configurable
Define CONFIG_DV_USBPHY_CTL for setting the USB PHY control register. Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Remy Bohmer <linux@bohmer.net> cc: Sandeep Paulraj <s-paulraj@ti.com> cc: Remy Bohmer <linux@bohmer.net> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
4ebe208097
commit
1fa892c67b
@ -26,6 +26,10 @@
|
|||||||
#include "davinci.h"
|
#include "davinci.h"
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/arch/hardware.h>
|
||||||
|
|
||||||
|
#if !defined(CONFIG_DV_USBPHY_CTL)
|
||||||
|
#define CONFIG_DV_USBPHY_CTL (USBPHY_SESNDEN | USBPHY_VBDTCTEN)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* MUSB platform configuration */
|
/* MUSB platform configuration */
|
||||||
struct musb_config musb_cfg = {
|
struct musb_config musb_cfg = {
|
||||||
.regs = (struct musb_regs *)MENTOR_USB0_BASE,
|
.regs = (struct musb_regs *)MENTOR_USB0_BASE,
|
||||||
@ -50,7 +54,7 @@ static u8 phy_on(void)
|
|||||||
writel(USBPHY_PHY24MHZ | USBPHY_SESNDEN |
|
writel(USBPHY_PHY24MHZ | USBPHY_SESNDEN |
|
||||||
USBPHY_VBDTCTEN, USBPHY_CTL_PADDR);
|
USBPHY_VBDTCTEN, USBPHY_CTL_PADDR);
|
||||||
#else
|
#else
|
||||||
writel(USBPHY_SESNDEN | USBPHY_VBDTCTEN, USBPHY_CTL_PADDR);
|
writel(CONFIG_DV_USBPHY_CTL, USBPHY_CTL_PADDR);
|
||||||
#endif
|
#endif
|
||||||
timeout = musb_cfg.timeout;
|
timeout = musb_cfg.timeout;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user