]> git.sur5r.net Git - u-boot/commitdiff
at91: Enabeling USB host on meesc board
authorDaniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
Mon, 9 Aug 2010 09:17:15 +0000 (11:17 +0200)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Fri, 20 Aug 2010 14:17:52 +0000 (16:17 +0200)
There was an redesign, so USB is available now.

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
board/esd/meesc/meesc.c
include/configs/meesc.h

index 58ef7be5d08d77f421ea36b51ca9aaefedcb4551..41fa3e1567a07f741a54f9c65daafcdd64b23059 100644 (file)
@@ -253,7 +253,8 @@ int board_init(void)
        /* Peripheral Clock Enable Register */
        writel(1 << AT91SAM9263_ID_PIOA |
                1 << AT91SAM9263_ID_PIOB |
-               1 << AT91SAM9263_ID_PIOCDE,
+               1 << AT91SAM9263_ID_PIOCDE |
+               1 << AT91SAM9263_ID_UHP,
                &pmc->pcer);
 
        /* initialize ET1100 Controller */
@@ -274,6 +275,9 @@ int board_init(void)
 #endif
 #ifdef CONFIG_AT91_CAN
        at91_can_hw_init();
+#endif
+#ifdef CONFIG_USB_OHCI_NEW
+       at91_uhp_hw_init();
 #endif
        return 0;
 }
index eaea1cd9c3a67aa5351bdbdbb20e56dcb9546c61..dbb253143998c2774d58beae0fca239ff83ee261 100644 (file)
 #undef CONFIG_CMD_FPGA
 #undef CONFIG_CMD_LOADS
 #undef CONFIG_CMD_IMLS
-#undef CONFIG_CMD_USB
 
 #define CONFIG_CMD_PING                                1
 #define CONFIG_CMD_DHCP                                1
 #define CONFIG_CMD_NAND                                1
+#define CONFIG_CMD_USB                         1
 
 /* LED */
 #define CONFIG_AT91_LED                                1
 #define CONFIG_NET_RETRY_COUNT                 20
 #undef CONFIG_RESET_PHY_R
 
+/* USB */
+#define CONFIG_USB_ATMEL
+#define CONFIG_USB_OHCI_NEW                    1
+#define CONFIG_DOS_PARTITION                   1
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          0x00a00000
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "at91sam9263"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
+#define CONFIG_USB_STORAGE                     1
+#define CONFIG_CMD_FAT                         1
+
 #define CONFIG_SYS_LOAD_ADDR                   0x22000000 /* load address */
 
 #define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM