diff mbox

[U-Boot,3/3] powerpc/85xx: Add support for ULI1575 PCI EHCI module on MPC8572DS

Message ID 1299471481-26806-3-git-send-email-galak@kernel.crashing.org
State Superseded
Delegated to: Kumar Gala
Headers show

Commit Message

Kumar Gala March 7, 2011, 4:18 a.m. UTC
From: Zhao Chenhui <b35336@freescale.com>

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

Signed-off-by: Zhao Chenhui <b35336@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 drivers/usb/host/ehci-pci.c |    3 +++
 include/configs/MPC8572DS.h |   14 ++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

Comments

Remy Bohmer March 11, 2011, 7:03 p.m. UTC | #1
Hi,

2011/3/7 Kumar Gala <galak@kernel.crashing.org>:
> From: Zhao Chenhui <b35336@freescale.com>
>
> MPC8572DS provides 2 USB ports with ULI1575. We enable USB storage
> device support using PCI EHCI module.
>
> Signed-off-by: Zhao Chenhui <b35336@freescale.com>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
>  drivers/usb/host/ehci-pci.c |    3 +++
>  include/configs/MPC8572DS.h |   14 ++++++++++++++
>  2 files changed, 17 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
> index cff3438..a038b6c 100644
> --- a/drivers/usb/host/ehci-pci.c
> +++ b/drivers/usb/host/ehci-pci.c
> @@ -1,4 +1,6 @@
>  /*-
> + * Copyright 2011 Freescale Semiconductor, Inc.
> + *

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

>  * 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
> diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h
> index 0f419c5..62ce3c4 100644
> --- a/include/configs/MPC8572DS.h
> +++ b/include/configs/MPC8572DS.h

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

Kind regards,

Remy
diff mbox

Patch

diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index cff3438..a038b6c 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -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
diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h
index 0f419c5..62ce3c4 100644
--- a/include/configs/MPC8572DS.h
+++ b/include/configs/MPC8572DS.h
@@ -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 */
 
 /*