--- zzzz-none-000/linux-2.6.28.10/drivers/usb/musb/omap2430.h 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/drivers/usb/musb/omap2430.h 2010-03-30 18:41:51.000000000 +0000 @@ -11,8 +11,8 @@ #define __MUSB_OMAP243X_H__ #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) -#include -#include +#include +#include /* * OMAP2430-specific definitions @@ -24,9 +24,9 @@ #elif defined(CONFIG_ARCH_OMAP3430) #define OMAP_HSOTG_BASE (OMAP34XX_HSUSB_OTG_BASE) #endif -#define OMAP_HSOTG(offset) (OMAP_HSOTG_BASE + 0x400 + (offset)) -#define OTG_REVISION OMAP_HSOTG(0x0) -#define OTG_SYSCONFIG OMAP_HSOTG(0x4) +#define OMAP_HSOTG(offset) __REG32(OMAP_HSOTG_BASE + 0x400 + (offset)) +#define OTG_REVISION_REG OMAP_HSOTG(0x0) +#define OTG_SYSCONFIG_REG OMAP_HSOTG(0x4) # define MIDLEMODE 12 /* bit position */ # define FORCESTDBY (0 << MIDLEMODE) # define NOSTDBY (1 << MIDLEMODE) @@ -38,17 +38,17 @@ # define ENABLEWAKEUP (1 << 2) # define SOFTRST (1 << 1) # define AUTOIDLE (1 << 0) -#define OTG_SYSSTATUS OMAP_HSOTG(0x8) +#define OTG_SYSSTATUS_REG OMAP_HSOTG(0x8) # define RESETDONE (1 << 0) -#define OTG_INTERFSEL OMAP_HSOTG(0xc) +#define OTG_INTERFSEL_REG OMAP_HSOTG(0xc) # define EXTCP (1 << 2) # define PHYSEL 0 /* bit position */ # define UTMI_8BIT (0 << PHYSEL) # define ULPI_12PIN (1 << PHYSEL) # define ULPI_8PIN (2 << PHYSEL) -#define OTG_SIMENABLE OMAP_HSOTG(0x10) +#define OTG_SIMENABLE_REG OMAP_HSOTG(0x10) # define TM1 (1 << 0) -#define OTG_FORCESTDBY OMAP_HSOTG(0x14) +#define OTG_FORCESTDBY_REG OMAP_HSOTG(0x14) # define ENABLEFORCE (1 << 0) #endif /* CONFIG_ARCH_OMAP2430 */