#ifndef __UBOOT_MB9BFXXX_UDC_H
#define __UBOOT_MB9BFXXX_UDC_H

#define UECLK_USBEN	0x40036030

#define BASE	(0x40040000 + (CONFIG_FM3_UDC_CH * 0x1000))
#define USB_UDCC	(BASE + 0x2120)
#define USB_EP0C	(BASE + 0x2124)
#define USB_EP1C	(BASE + 0x2128)
#define USB_EP2C	(BASE + 0x212c)
#define USB_EP3C	(BASE + 0x2130)
#define USB_EP4C	(BASE + 0x2134)
#define USB_EP5C	(BASE + 0x2138)
#define USB_TMSP	(BASE + 0x213c)
#define USB_UDCS	(BASE + 0x2140)
#define USB_UDCIE	(BASE + 0x2141)
#define USB_EP0IS	(BASE + 0x2144)
#define USB_EP0OS	(BASE + 0x2148)
#define USB_EP1S	(BASE + 0x214c)
#define USB_EP2S	(BASE + 0x2150)
#define USB_EP3S	(BASE + 0x2154)
#define USB_EP4S	(BASE + 0x2158)
#define USB_EP5S	(BASE + 0x215c)
#define USB_EP0DTL	(BASE + 0x2160)
#define USB_EP0DTH	(BASE + 0x2161)
#define USB_EP1DTL	(BASE + 0x2164)
#define USB_EP1DTH	(BASE + 0x2165)
#define USB_EP2DTL	(BASE + 0x2168)
#define USB_EP2DTH	(BASE + 0x2169)
#define USB_EP3DTL	(BASE + 0x216c)
#define USB_EP3DTH	(BASE + 0x216d)
#define USB_EP4DTL	(BASE + 0x2170)
#define USB_EP4DTH	(BASE + 0x2171)
#define USB_EP5DTL	(BASE + 0x2174)
#define USB_EP5DTH	(BASE + 0x2175)

#define USB_UDCS_ATT	(1 << 6)
#define USB_UDCS_SUSP	(1 << 5)
#define USB_UDCS_SOF	(1 << 4)
#define USB_UDCS_BRST	(1 << 3)
#define USB_UDCS_WKUP	(1 << 2)
#define USB_UDCS_SETP	(1 << 1)
#define USB_UDCS_CONF	(1 << 0)

#endif	/* __UBOOT_MB9BFXXX_UDC_H */
