Skip to contentSkip to conversation

powerpc/85xx: Replace memctl_intlv_ctl with hwconfig on MPC8572DS

PATCH New Kumar Gala 2 participants 9 messages Mar 7, 2011 – Mar 17, 2011

Subsystems (2)
lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/3 powerpc/85xx: Replace memctl_intlv_ctl with hwconfig on MPC8572DS

From: Zhao Chenhui <[email protected]>

---
 include/configs/MPC8572DS.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/configs/MPC8572DS.h +1 -1
index 4224229..2b0e58b 100644
@@ -741,7 +741,7 @@
 #define CONFIG_BAUDRATE	115200
 
 #define	CONFIG_EXTRA_ENV_SETTINGS				\
- "memctl_intlv_ctl=2\0"						\
+ "hwconfig=fsl_ddr:ctlr_intlv=bank\0"				\
  "netdev=eth0\0"						\
  "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0"				\
  "tftpflash=tftpboot $loadaddr $uboot; "			\
Signature · 1 line
1.7.2.3
author
#1 lore raw

PATCH 2/3 powerpc/85xx: Disable ECC in considering performance on MPC8572DS

From: Zhao Chenhui <[email protected]>

---
 include/configs/MPC8572DS.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/configs/MPC8572DS.h +1 -1
index 2b0e58b..0f419c5 100644
@@ -741,7 +741,7 @@
 #define CONFIG_BAUDRATE	115200
 
 #define	CONFIG_EXTRA_ENV_SETTINGS				\
- "hwconfig=fsl_ddr:ctlr_intlv=bank\0"				\
+ "hwconfig=fsl_ddr:ctlr_intlv=bank,ecc=off\0"			\
  "netdev=eth0\0"						\
  "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0"				\
  "tftpflash=tftpboot $loadaddr $uboot; "			\
Signature · 1 line
1.7.2.3
author
#2 lore raw

PATCH 3/3 powerpc/85xx: Add support for ULI1575 PCI EHCI module on MPC8572DS

From: Zhao Chenhui <[email protected]>

MPC8572DS provides 2 USB ports with ULI1575. We enable USB storage device support using PCI EHCI module.

---
 drivers/usb/host/ehci-pci.c |    3 +++
 include/configs/MPC8572DS.h |   14 ++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-pci.c +3 -0
index cff3438..a038b6c 100644
@@ -1,4 +1,6 @@
 /*-
+ * Copyright 2011 Freescale Semiconductor, Inc.
+ *
  * Copyright (c) 2007-2008, Juniper Networks, Inc.
  * All rights reserved.
  *
@@ -29,6 +31,7 @@
 static struct pci_device_id ehci_pci_ids[] = {
 	/* Please add supported PCI EHCI controller ids here */
 	{0x1033, 0x00E0},
+	{0x10b9, 0x5239},	/* ULI1575 PCI EHCI module ids */
 	{0, 0}
 };
 #endif
include/configs/MPC8572DS.h +14 -0
index 0f419c5..62ce3c4 100644
@@ -672,6 +672,20 @@
 #define CONFIG_CMD_EXT2
 #endif
 
+/*
+ * USB
+ */
+#define CONFIG_USB_EHCI
+
+#ifdef CONFIG_USB_EHCI
+#define CONFIG_CMD_USB
+#define CONFIG_USB_EHCI_PCI
+#define ONFIG_EHCI_HCD_INIT_AFTER_RESET
+#define CONFIG_USB_STORAGE
+#define CONFIG_PCI_EHCI_DEVICE			0
+#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	2
+#endif
+
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
Signature · 1 line
1.7.2.3
#3 lore raw

PATCH 3/3 powerpc/85xx: Add support for ULI1575 PCI EHCI module on MPC8572DS

Hi,

2011/3/7 Kumar Gala <[email protected]>:

Quoted 17 lines

From: Zhao Chenhui <[email protected]>

MPC8572DS provides 2 USB ports with ULI1575. We enable USB storage device support using PCI EHCI module.

---
?drivers/usb/host/ehci-pci.c | ? ?3 +++ ?include/configs/MPC8572DS.h | ? 14 ++++++++++++++ ?2 files changed, 17 insertions(+), 0 deletions(-)

drivers/usb/host/ehci-pci.c +0 -0
index cff3438..a038b6c 100644
@@ -1,4 +1,6 @@
Quoted 3 lines

?/*-
+ * Copyright 2011 Freescale Semiconductor, Inc.
+ *

Please only add your own copyright line if you make a significant change to a file.

include/configs/MPC8572DS.h

Quoted 15 lines

?* Copyright (c) 2007-2008, Juniper Networks, Inc. ?* All rights reserved.
?*

drivers/usb/host/ehci-pci.c +0 -0
@@ -29,6 +31,7 @@
 ?static struct pci_device_id ehci_pci_ids[] = {

? ? ? ?/* Please add supported PCI EHCI controller ids here */ ? ? ? ?{0x1033, 0x00E0},
+ ? ? ? {0x10b9, 0x5239}, ? ? ? /* ULI1575 PCI EHCI module ids */ ? ? ? ?{0, 0}
?};
?#endif

include/configs/MPC8572DS.h +0 -0
index 0f419c5..62ce3c4 100644

This patch needs to be split up. The board change is unrelated to the USB vendor/device addition.

Kind regards,

Remy

author
#4 lore raw

PATCH 1/1 echi: add ULI1575 PCI ID

In reply to Kumar Gala

From: Zhao Chenhui <[email protected]>

Add ULI1575 EHCI controller to the list of the supported devices.

---
* replaces previous patch for 8572ds
* adds feedback from Remy

 drivers/usb/host/ehci-pci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-pci.c +1 -0
index cff3438..bf490b0 100644
@@ -29,6 +29,7 @@
 static struct pci_device_id ehci_pci_ids[] = {
 	/* Please add supported PCI EHCI controller ids here */
 	{0x1033, 0x00E0},
+	{0x10b9, 0x5239},	/* ULI1575 PCI EHCI module ids */
 	{0, 0}
 };
 #endif
Signature · 1 line
1.7.2.3
author
#5 lore raw

PATCH 1/1 echi: add ULI1575 PCI ID

Quoted 27 lines · Kumar Gala

From: Zhao Chenhui <[email protected]>

Add ULI1575 EHCI controller to the list of the supported devices.

---
* replaces previous patch for 8572ds
* adds feedback from Remy

drivers/usb/host/ehci-pci.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-pci.c +1 -0
index cff3438..bf490b0 100644
@@ -29,6 +29,7 @@
 static struct pci_device_id ehci_pci_ids[] = {
 	/* Please add supported PCI EHCI controller ids here */
 	{0x1033, 0x00E0},
+	{0x10b9, 0x5239},	/* ULI1575 PCI EHCI module ids */
 	{0, 0}
 };
 #endif
Signature · 1 line
1.7.2.3

Remy, do you mind Ack and if are you ok if this goes via u-boot-85xx tree to keep it in sync with the board patch?

- k

#6 lore raw

PATCH 1/1 echi: add ULI1575 PCI ID

Hi,

2011/3/15 Kumar Gala <[email protected]>:

Quoted 16 lines · Kumar Gala
Quoted 14 lines

From: Zhao Chenhui <[email protected]>

Add ULI1575 EHCI controller to the list of the supported devices.

---
* replaces previous patch for 8572ds
* adds feedback from Remy

drivers/usb/host/ehci-pci.c | ? ?1 +

1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 16 lines
Quoted 6 lines
drivers/usb/host/ehci-pci.c +0 -0
index cff3438..bf490b0 100644
@@ -29,6 +29,7 @@
 static struct pci_device_id ehci_pci_ids[] = {
Quoted 8 lines

? ? ? /* Please add supported PCI EHCI controller ids here */ ? ? ? {0x1033, 0x00E0},
+ ? ? {0x10b9, 0x5239}, ? ? ? /* ULI1575 PCI EHCI module ids */ ? ? ? {0, 0}
};
#endif
--
1.7.2.3

Remy, do you mind Ack and if are you ok if this goes via u-boot-85xx tree to keep it in sync with the board patch?

You can push it forward via the u-boot-85xx tree.

Remy

author Applied
#7 lore raw

PATCH 1/1 echi: add ULI1575 PCI ID

In reply to Kumar Gala
Quoted 4 lines · Kumar Gala

From: Zhao Chenhui <[email protected]>

Add ULI1575 EHCI controller to the list of the supported devices.

Quoted 8 lines

---
* replaces previous patch for 8572ds
* adds feedback from Remy

drivers/usb/host/ehci-pci.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)

applied to 85xx-next

- k

author
#8 lore raw

PATCH v2 3/3 powerpc/85xx: Add support for ULI1575 PCI EHCI module on MPC8572DS

In reply to Kumar Gala

From: Zhao Chenhui <[email protected]>

MPC8572DS provides 2 USB ports with ULI1575. We enable USB storage device support using PCI EHCI module.

---
 include/configs/MPC8572DS.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
include/configs/MPC8572DS.h +14 -0
index 0f419c5..62ce3c4 100644
@@ -672,6 +672,20 @@
 #define CONFIG_CMD_EXT2
 #endif
 
+/*
+ * USB
+ */
+#define CONFIG_USB_EHCI
+
+#ifdef CONFIG_USB_EHCI
+#define CONFIG_CMD_USB
+#define CONFIG_USB_EHCI_PCI
+#define ONFIG_EHCI_HCD_INIT_AFTER_RESET
+#define CONFIG_USB_STORAGE
+#define CONFIG_PCI_EHCI_DEVICE			0
+#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	2
+#endif
+
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
Signature · 1 line
1.7.2.3