summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/kblrvp/chromeos.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-23 19:08:01 +0300
committerPatrick Georgi <pgeorgi@google.com>2019-07-25 16:03:37 +0000
commit17887d08fee6d10bc4ff8758694b88435365e5d7 (patch)
tree03ef6c6afe204dd47c26177974b0c7d6cc60f574 /src/mainboard/intel/kblrvp/chromeos.c
parentb14b55daafbd953d04a3bbf9a66bc7fc5ebd277f (diff)
downloadcoreboot-17887d08fee6d10bc4ff8758694b88435365e5d7.tar.xz
mb/*/chromeos.c: Remove some ENV_RAMSTAGE and __SIMPLE_DEVICE__
Use explicit simple PCI config accessors here. Change-Id: Ifa3814fdd7795479ca5fdbfc4deb3fe8db9805f3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34519 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/intel/kblrvp/chromeos.c')
-rw-r--r--src/mainboard/intel/kblrvp/chromeos.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainboard/intel/kblrvp/chromeos.c b/src/mainboard/intel/kblrvp/chromeos.c
index ff93d27f22..29f05c9ec3 100644
--- a/src/mainboard/intel/kblrvp/chromeos.c
+++ b/src/mainboard/intel/kblrvp/chromeos.c
@@ -14,6 +14,7 @@
* GNU General Public License for more details.
*/
+#include <boot/coreboot_tables.h>
#include <device/device.h>
#include <device/pci.h>
#include <gpio.h>
@@ -24,9 +25,6 @@
#include "gpio.h"
#include "ec.h"
-#if ENV_RAMSTAGE
-#include <boot/coreboot_tables.h>
-
void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio chromeos_gpios[] = {
@@ -37,7 +35,6 @@ void fill_lb_gpios(struct lb_gpios *gpios)
};
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}
-#endif /* ENV_RAMSTAGE */
int get_lid_switch(void)
{