summaryrefslogtreecommitdiff
path: root/include/configs/omap3_h1.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/omap3_h1.h')
-rw-r--r--include/configs/omap3_h1.h100
1 files changed, 99 insertions, 1 deletions
diff --git a/include/configs/omap3_h1.h b/include/configs/omap3_h1.h
index b406bde99..ebb71ffad 100644
--- a/include/configs/omap3_h1.h
+++ b/include/configs/omap3_h1.h
@@ -20,6 +20,31 @@
#define CONFIG_OMAP_GPIO
#define CONFIG_OMAP_COMMON
+
+/* USB UHH support options */
+#define CONFIG_CMD_USB
+#define CONFIG_USB_HOST
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_OMAP
+#define CONFIG_USB_STORAGE
+#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
+#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
+
+/* #define CONFIG_USB_MUSB_AM35X */
+#define CONFIG_USB_MUSB_OMAP2PLUS
+
+/* USB Composite download gadget - g_dnl */
+#define CONFIG_USB_GADGET
+#define CONFIG_USBDOWNLOAD_GADGET
+
+
+/* USB TI's IDs */
+#define CONFIG_USBD_HS
+#define CONFIG_G_DNL_VENDOR_NUM 0x0403
+#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
+#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
+
+
#define CONFIG_SDRC /* The chip has SDRC controller */
#include <asm/arch/cpu.h> /* get chip and board defs */
@@ -261,6 +286,79 @@
* FLASH and environment organization
*/
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_OMAP_HSMMC
+#define CONFIG_CMD_MMC
+#define CONFIG_DOS_PARTITION
+#define CONFIG_CMD_FAT
+#define CONFIG_FAT_WRITE
+#define CONFIG_CMD_EXT2
+
+#define CONFIG_SPI
+#define CONFIG_OMAP3_SPI
+#define CONFIG_MTD_DEVICE
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_WINBOND
+#define CONFIG_CMD_SF
+#define CONFIG_SF_DEFAULT_SPEED (24000000)
+
+
+/*
+ * USB configuration
+ */
+#define CONFIG_USB_MUSB_DSPS
+/* #define CONFIG_ARCH_MISC_INIT */
+
+#define CONFIG_CMD_SAVEENV
+#define CONFIG_MUSB_GADGET
+#define CONFIG_MUSB_PIO_ONLY
+#define CONFIG_USB_GADGET_DUALSPEED
+#define CONFIG_USB_GADGET_VBUS_DRAW 2
+
+
+#ifdef CONFIG_MUSB_GADGET
+/* Android fastboot support over USB */
+#define CONFIG_CMD_FASTBOOT
+#define FASTBOOT_DEVICE_VENDOR_ID 0x0451
+#define FASTBOOT_DEVICE_PRODUCT_ID 0xd00e /* TI fastboot PID */
+#define FASTBOOT_DEVICE_BCD 0x0100
+
+#define FASTBOOT_BLKDEV "nand0"
+/*
+ * BeagleBone white, AM335x-SK and old AM335xEVMs have only 256MB RAM
+ * To be compatible with all devices, assume 256MB max RAM.
+ *
+ * The current fastboot implementation assumes maximum 16MB of RAM
+ * will be used by u-boot itself. So the fastboot transfer buffer
+ * becomes (256-16)=240MB
+ */
+
+/* #define CONFIG_FASTBOOT_MAX_TRANSFER_SIZE (SZ_256M - SZ_16M) */
+/* If using BeagleBone Black you can use the full RAM and so
+ flash larger images */
+#define CONFIG_FASTBOOT_MAX_TRANSFER_SIZE (SZ_512M - SZ_16M)
+
+#define FASTBOOT_NAND_BLOCK_SIZE 2048
+#define FASTBOOT_NAND_OOB_SIZE 64
+
+#define CONFIG_MMC_FASTBOOT_DEV 1
+
+/*Uncomment this to enable NAND fastboot*/
+#define CONFIG_FASTBOOT_NAND
+
+/*Uncomment this to support eMMC booting*/
+/* #define CONFIG_STORAGE_EMMC */
+
+#define NAND_ENV_OFFSET 0x260000 /* environment starts here */
+
+/* ethernet gadget conflicts with fastboot, so disabled */
+/*
+#define CONFIG_USB_ETHER
+#define CONFIG_USB_ETH_RNDIS
+#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"*/
+#endif /* CONFIG_MUSB_GADGET */
+
/* **** PISMO SUPPORT *** */
/* Configure the PISMO */
@@ -350,7 +448,7 @@
#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}
#define CONFIG_SYS_NAND_ECCBYTES 3
-#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
+#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_SW
#endif /* BCH8_ECC */