diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2013-09-17 00:12:05 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2013-09-25 07:50:37 +0200 |
commit | a1179cafdb87e3dfd6df142b128331b02feaa5b2 (patch) | |
tree | f8bda9a260b900ad5f3cfc5832680c9d46d5d3ca /src/southbridge/amd/sb800 | |
parent | dd6c4ec1ed64f3d9803cca6eb53fa5049cacdd09 (diff) | |
download | coreboot-a1179cafdb87e3dfd6df142b128331b02feaa5b2.tar.xz |
usbdebug AMD: Add choice of EHCI controller
Chipsets sb700 and sb800/hudson have more than one USB EHCI controller,
implement the selection logic using already existing Kconfig option.
Change-Id: I9e0df1669d73863c95c36a3a7fee40d58f6f097e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/3928
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/southbridge/amd/sb800')
-rw-r--r-- | src/southbridge/amd/sb800/enable_usbdebug.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/southbridge/amd/sb800/enable_usbdebug.c b/src/southbridge/amd/sb800/enable_usbdebug.c index 92778698f2..34d760874f 100644 --- a/src/southbridge/amd/sb800/enable_usbdebug.c +++ b/src/southbridge/amd/sb800/enable_usbdebug.c @@ -26,15 +26,16 @@ #include <device/pci_def.h> #include "sb800.h" -#ifndef SB800_DEVN_BASE -#define SB800_DEVN_BASE 0 -#endif - #define DEBUGPORT_MISC_CONTROL 0x80 pci_devfn_t pci_ehci_dbg_dev(unsigned int hcd_idx) { - return PCI_DEV(0, SB800_DEVN_BASE + 0x12, 2); + if (hcd_idx==3) + return PCI_DEV(0, 0x16, 2); + else if (hcd_idx==2) + return PCI_DEV(0, 0x13, 2); + else + return PCI_DEV(0, 0x12, 2); } void pci_ehci_dbg_set_port(pci_devfn_t dev, unsigned int port) |