From 1fd750812193cbaab7f54696b97a91bf727e87e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 11 Jun 2013 16:32:01 +0300 Subject: usbdebug: Use __SIMPLE_DEVICE__ on early enable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With USBDEBUG selected, the file is built for both romstage and ramstage. For the ramstage build, we need to explicitly use the simple PCI config operations without devicetree. Change-Id: I2de8d9c77bb458ba797c3aac9e2cd0d653e06684 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/3437 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/southbridge/amd/agesa/hudson/enable_usbdebug.c | 4 ++++ src/southbridge/amd/sb600/enable_usbdebug.c | 3 +++ src/southbridge/amd/sb700/enable_usbdebug.c | 3 +++ src/southbridge/amd/sb800/enable_usbdebug.c | 4 ++++ src/southbridge/nvidia/ck804/enable_usbdebug.c | 3 +++ src/southbridge/nvidia/mcp55/enable_usbdebug.c | 3 +++ src/southbridge/sis/sis966/enable_usbdebug.c | 3 +++ 7 files changed, 23 insertions(+) (limited to 'src/southbridge') diff --git a/src/southbridge/amd/agesa/hudson/enable_usbdebug.c b/src/southbridge/amd/agesa/hudson/enable_usbdebug.c index 128885a525..147056ddc4 100644 --- a/src/southbridge/amd/agesa/hudson/enable_usbdebug.c +++ b/src/southbridge/amd/agesa/hudson/enable_usbdebug.c @@ -16,6 +16,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include diff --git a/src/southbridge/amd/sb600/enable_usbdebug.c b/src/southbridge/amd/sb600/enable_usbdebug.c index 305362f37d..0e4b4240c0 100644 --- a/src/southbridge/amd/sb600/enable_usbdebug.c +++ b/src/southbridge/amd/sb600/enable_usbdebug.c @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include diff --git a/src/southbridge/amd/sb700/enable_usbdebug.c b/src/southbridge/amd/sb700/enable_usbdebug.c index 2a7fc383e4..f0efe412ea 100644 --- a/src/southbridge/amd/sb700/enable_usbdebug.c +++ b/src/southbridge/amd/sb700/enable_usbdebug.c @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include diff --git a/src/southbridge/amd/sb800/enable_usbdebug.c b/src/southbridge/amd/sb800/enable_usbdebug.c index 28a1665647..8b80b3770f 100644 --- a/src/southbridge/amd/sb800/enable_usbdebug.c +++ b/src/southbridge/amd/sb800/enable_usbdebug.c @@ -16,6 +16,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include diff --git a/src/southbridge/nvidia/ck804/enable_usbdebug.c b/src/southbridge/nvidia/ck804/enable_usbdebug.c index 659fdc68b1..54b534ee6a 100644 --- a/src/southbridge/nvidia/ck804/enable_usbdebug.c +++ b/src/southbridge/nvidia/ck804/enable_usbdebug.c @@ -21,6 +21,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include diff --git a/src/southbridge/nvidia/mcp55/enable_usbdebug.c b/src/southbridge/nvidia/mcp55/enable_usbdebug.c index f753c78538..ec066538ce 100644 --- a/src/southbridge/nvidia/mcp55/enable_usbdebug.c +++ b/src/southbridge/nvidia/mcp55/enable_usbdebug.c @@ -21,6 +21,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include diff --git a/src/southbridge/sis/sis966/enable_usbdebug.c b/src/southbridge/sis/sis966/enable_usbdebug.c index 78a3838be7..1ff04dfbc0 100644 --- a/src/southbridge/sis/sis966/enable_usbdebug.c +++ b/src/southbridge/sis/sis966/enable_usbdebug.c @@ -23,6 +23,9 @@ /* TODO: Check whether this actually works (might be copy-paste leftover). */ +// Use simple device model for this file even in ramstage +#define __SIMPLE_DEVICE__ + #include #include #include -- cgit v1.2.3