summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSwaminathan S <swami.iyer@ti.com>2009-06-24 18:59:39 +0530
committerJustin Waters <justin.waters@timesys.com>2009-09-09 14:03:27 -0400
commit8556479d9e049d702b592bba7e48f9f96dcc00e9 (patch)
tree3137e5f4b298670020783aee8a3d4eaba814499c /include
parentc715081981dc96df42795484f9a408f7139b0fd9 (diff)
Adding OMAPL138, OMAPL137 MUSB support as USB Host. Boot from USB disk supported.
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/arch-da8xx/hardware.h8
-rw-r--r--include/configs/da830_evm.h14
-rw-r--r--include/configs/da850_evm.h15
-rw-r--r--include/usb.h4
4 files changed, 40 insertions, 1 deletions
diff --git a/include/asm-arm/arch-da8xx/hardware.h b/include/asm-arm/arch-da8xx/hardware.h
index 3574971a50..d0709f15a6 100644
--- a/include/asm-arm/arch-da8xx/hardware.h
+++ b/include/asm-arm/arch-da8xx/hardware.h
@@ -196,6 +196,7 @@
#define PINMUX19 (DAVINCI_BOOTCFG_BASE + 0x16c)
#define SUSPSRC (DAVINCI_BOOTCFG_BASE + 0x170)
#define CFGCHIP0 (DAVINCI_BOOTCFG_BASE + 0x17c)
+#define CFGCHIP2 (DAVINCI_BOOTCFG_BASE + 0x184)
#define CFGCHIP3 (DAVINCI_BOOTCFG_BASE + 0x188)
/* Interrupt controller */
@@ -203,6 +204,13 @@
#define INTC_HINT_EN (DAVINCI_INTC_BASE + 0x1500)
#define INTC_EN_CLR0 (DAVINCI_INTC_BASE + 0x380)
+/* GPIO */
+#define GPIO_BANK4_ADDR 0x01E26000
+#define GPIO_BANK4_REG_DIR_ADDR ( GPIO_BANK4_ADDR + 0x60 )
+#define GPIO_BANK4_REG_OPDATA_ADDR ( GPIO_BANK4_ADDR + 0x64 )
+#define GPIO_BANK4_REG_SET_ADDR ( GPIO_BANK4_ADDR + 0x68 )
+#define GPIO_BANK4_REG_CLR_ADDR ( GPIO_BANK4_ADDR + 0x6C )
+
#ifndef __ASSEMBLY__
diff --git a/include/configs/da830_evm.h b/include/configs/da830_evm.h
index 3ca92cbe65..24a36ffa66 100644
--- a/include/configs/da830_evm.h
+++ b/include/configs/da830_evm.h
@@ -170,6 +170,13 @@
#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
#endif
+/*==============================*/
+/* USB configuration */
+/*==============================*/
+#define CONFIG_MUSB /* Generic MUSB controller */
+#define CONFIG_USB_DA8XX /* Platform hookup to MUSB controller */
+#define CONFIG_USB_STORAGE /* MSC class support */
+
/*==============================*/
/* U-Boot general configuration */
@@ -250,4 +257,11 @@
#undef CONFIG_CMD_ENV
#endif
+#ifdef CONFIG_USB_DA8XX
+#define CONFIG_CMD_USB /* inclue support for usb */
+#define CONFIG_CMD_STORAGE /* inclue support for usb */
+#define CONFIG_CMD_FAT /* inclue support for FAT/storage*/
+#define CONFIG_DOS_PARTITION /* inclue support for FAT/storage*/
+#endif
+
#endif /* __CONFIG_H */
diff --git a/include/configs/da850_evm.h b/include/configs/da850_evm.h
index ce7820a725..4de2e139f4 100644
--- a/include/configs/da850_evm.h
+++ b/include/configs/da850_evm.h
@@ -160,6 +160,13 @@
/*==============================*/
+/* USB configuration */
+/*==============================*/
+#define CONFIG_MUSB /* Generic MUSB controller */
+#define CONFIG_USB_DA8XX /* Platform hookup to MUSB controller */
+#define CONFIG_USB_STORAGE /* MSC class support */
+
+/*==============================*/
/* U-Boot general configuration */
/*==============================*/
/* No IRQ/FIQ in U-Boot */
@@ -238,4 +245,12 @@
#undef CONFIG_CMD_ENV
#endif
+#ifdef CONFIG_USB_DA8XX
+#define CONFIG_CMD_USB /* inclue support for usb */
+#define CONFIG_CMD_STORAGE /* inclue support for usb */
+#define CONFIG_CMD_FAT /* inclue support for FAT/storage*/
+#define CONFIG_DOS_PARTITION /* inclue support for FAT/storage*/
+#endif
+
+
#endif /* __CONFIG_H */
diff --git a/include/usb.h b/include/usb.h
index 510df95d62..bc1c14a09d 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -139,6 +139,7 @@ enum {
struct usb_device {
int devnum; /* Device number on USB bus */
int slow; /* Slow device? */
+ int high; /* High Speed */
char mf[32]; /* manufacturer */
char prod[32]; /* product */
char serial[32]; /* serial number */
@@ -181,7 +182,8 @@ struct usb_device {
#if defined(CONFIG_USB_UHCI) || defined(CONFIG_USB_OHCI) || \
defined(CONFIG_USB_OHCI_NEW) || defined(CONFIG_USB_SL811HS) || \
- defined(CONFIG_USB_ISP116X_HCD) || defined(CONFIG_USB_R8A66597_HCD)
+ defined(CONFIG_USB_ISP116X_HCD) || defined(CONFIG_USB_R8A66597_HCD) || \
+ defined(CONFIG_MUSB)
int usb_lowlevel_init(void);
int usb_lowlevel_stop(void);