Skip to contentSkip to conversation

at91: Enabeling USB host on meesc board

PATCH New Daniel Gorsulowski 3 participants 3 messages Aug 9, 2010 – Aug 20, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v3 3/3 at91: Enabeling USB host on meesc board

There was an redesign, so USB is available now.

---

v2: Nothing changed but commit message
v3: nothing changed, just resend to cohere patch series

 board/esd/meesc/meesc.c |    6 +++++-
 include/configs/meesc.h |   13 ++++++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)
board/esd/meesc/meesc.c +5 -1
index eb87cfc..a169654 100644
@@ -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 */
@@ -275,5 +276,8 @@ int board_init(void)
 #ifdef CONFIG_AT91_CAN
 	at91_can_hw_init();
 #endif
+#ifdef CONFIG_USB_OHCI_NEW
+	at91_uhp_hw_init();
+#endif
 	return 0;
 }
include/configs/meesc.h +12 -1
index eaea1cd..dbb2531 100644
@@ -84,11 +84,11 @@
 #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
@@ -132,6 +132,17 @@
 #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
Signature · 1 line
1.5.3
#1 lore raw

PATCH v3 3/3 at91: Enabeling USB host on meesc board

Hi Daniel,

Quoted 11 lines

-----Original Message-----
From: Daniel Gorsulowski [mailto:Daniel.Gorsulowski at esd.eu]
Sent: Monday, August 09, 2010 5:17 PM
To: u-boot at lists.denx.de
Cc: Xu, Hong; Daniel Gorsulowski
Subject: [PATCH v3 3/3] at91: Enabeling USB host on meesc board

There was an redesign, so USB is available now.

---

BR,
Eric

Quoted 8 lines

v2: Nothing changed but commit message
v3: nothing changed, just resend to cohere patch series

 board/esd/meesc/meesc.c |    6 +++++-
 include/configs/meesc.h |   13 ++++++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

[...]

Quoted 1 line
#2 lore raw

PATCH v3 3/3 at91: Enabeling USB host on meesc board

In reply to Daniel Gorsulowski

Dear Daniel Gorsulowski,

Quoted 11 lines

There was an redesign, so USB is available now.

---

v2: Nothing changed but commit message
v3: nothing changed, just resend to cohere patch series

 board/esd/meesc/meesc.c |    6 +++++-
 include/configs/meesc.h |   13 ++++++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

Applied to u-boot-atmel/next
Thanks,
Reinhard