diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2012-08-28 14:37:57 -0700 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2012-11-13 18:50:45 +0100 |
commit | 6b3d09e7874f2953ab08b5d79caefd68375ca22c (patch) | |
tree | d414c45180ae212b92893bef9a3a6e25a1f5a7d8 /src/mainboard/samsung/stumpy/chromeos.c | |
parent | c64947b6b1889aa92e32238e5c1a1b2ceb54943e (diff) | |
download | coreboot-6b3d09e7874f2953ab08b5d79caefd68375ca22c.tar.xz |
Export optionrom status on Stumpy/Lumpy
ChromeOS' top of the tree u-boot expects coreboot to export information
about option ROM status (started/not started). Stumpy and Lumpy were
left behind and are not exporting this information. This CL fixes the
problem.
Change-Id: Id90035bd76ab177e4fc269efc2b74f15f641c77d
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/1713
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/mainboard/samsung/stumpy/chromeos.c')
-rw-r--r-- | src/mainboard/samsung/stumpy/chromeos.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainboard/samsung/stumpy/chromeos.c b/src/mainboard/samsung/stumpy/chromeos.c index 61bc18c9aa..42227357dd 100644 --- a/src/mainboard/samsung/stumpy/chromeos.c +++ b/src/mainboard/samsung/stumpy/chromeos.c @@ -39,7 +39,7 @@ #ifndef __PRE_RAM__ #include <arch/coreboot_tables.h> -#define GPIO_COUNT 5 +#define GPIO_COUNT 6 #define ACTIVE_LOW 0 #define ACTIVE_HIGH 1 @@ -83,6 +83,12 @@ void fill_lb_gpios(struct lb_gpios *gpios) gpios->gpios[4].polarity = ACTIVE_LOW; gpios->gpios[4].value = (gen_pmcon_1 >> 9) & 1; strncpy((char *)gpios->gpios[4].name,"power", GPIO_MAX_NAME_LENGTH); + + /* Did we load the VGA Option ROM? */ + gpios->gpios[5].port = -1; /* Indicate that this is a pseudo GPIO */ + gpios->gpios[5].polarity = ACTIVE_HIGH; + gpios->gpios[5].value = oprom_is_loaded; + strncpy((char *)gpios->gpios[5].name,"oprom", GPIO_MAX_NAME_LENGTH); } #endif |