aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2013-06-06 10:21:28 +0300
committerAaron Durbin <adurbin@google.com>2013-07-01 17:11:32 +0200
commitcaaf0bf483288ea092d721954df0407930c67fc8 (patch)
tree24142070402a0b430d3ca56ee5f32d142f38606c /src/southbridge/intel
parent54c586c7e76d9e9ec75ccebaf1555b3fde6114e8 (diff)
usbdebug: Support i82801dx/ex southbridge
Tested on i82801dx system with board aopen/dxplplusu. Change-Id: I522455ac79c87b9b6fc9cd8c4dc0da3563dfbfad Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3381 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/southbridge/intel')
-rw-r--r--src/southbridge/intel/i82801dx/Kconfig13
-rw-r--r--src/southbridge/intel/i82801dx/usb2.c3
-rw-r--r--src/southbridge/intel/i82801ex/Kconfig12
-rw-r--r--src/southbridge/intel/i82801ex/ehci.c3
4 files changed, 29 insertions, 2 deletions
diff --git a/src/southbridge/intel/i82801dx/Kconfig b/src/southbridge/intel/i82801dx/Kconfig
index bad9936a54..4a43458dea 100644
--- a/src/southbridge/intel/i82801dx/Kconfig
+++ b/src/southbridge/intel/i82801dx/Kconfig
@@ -24,3 +24,16 @@ config SOUTHBRIDGE_INTEL_I82801DX
select IOAPIC
select HAVE_HARD_RESET
select HAVE_SMI_HANDLER
+ select HAVE_USBDEBUG
+
+if SOUTHBRIDGE_INTEL_I82801DX
+
+config EHCI_BAR
+ hex
+ default 0xfef00000
+
+config EHCI_DEBUG_OFFSET
+ hex
+ default 0x80
+
+endif
diff --git a/src/southbridge/intel/i82801dx/usb2.c b/src/southbridge/intel/i82801dx/usb2.c
index a0ea5f64e1..5dd5866c4e 100644
--- a/src/southbridge/intel/i82801dx/usb2.c
+++ b/src/southbridge/intel/i82801dx/usb2.c
@@ -24,6 +24,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
+#include <usbdebug.h>
#include "i82801dx.h"
static void usb2_init(struct device *dev)
@@ -38,7 +39,7 @@ static void usb2_init(struct device *dev)
}
static struct device_operations usb2_ops = {
- .read_resources = pci_dev_read_resources,
+ .read_resources = pci_ehci_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = usb2_init,
diff --git a/src/southbridge/intel/i82801ex/Kconfig b/src/southbridge/intel/i82801ex/Kconfig
index 23a68b8b97..b1d7dbb478 100644
--- a/src/southbridge/intel/i82801ex/Kconfig
+++ b/src/southbridge/intel/i82801ex/Kconfig
@@ -2,4 +2,16 @@ config SOUTHBRIDGE_INTEL_I82801EX
bool
select IOAPIC
select HAVE_HARD_RESET
+ select HAVE_USBDEBUG
+if SOUTHBRIDGE_INTEL_I82801EX
+
+config EHCI_BAR
+ hex
+ default 0xfef00000
+
+config EHCI_DEBUG_OFFSET
+ hex
+ default 0xa0
+
+endif
diff --git a/src/southbridge/intel/i82801ex/ehci.c b/src/southbridge/intel/i82801ex/ehci.c
index 8ae921d194..045840a82b 100644
--- a/src/southbridge/intel/i82801ex/ehci.c
+++ b/src/southbridge/intel/i82801ex/ehci.c
@@ -3,6 +3,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
+#include <usbdebug.h>
#include "i82801ex.h"
static void ehci_init(struct device *dev)
@@ -34,7 +35,7 @@ static struct pci_operations lops_pci = {
.set_subsystem = &ehci_set_subsystem,
};
static struct device_operations ehci_ops = {
- .read_resources = pci_dev_read_resources,
+ .read_resources = pci_ehci_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = ehci_init,