From f6940886f9aa9133c0fa4e1599c257b1a67be376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 14 Mar 2019 23:47:33 +0200 Subject: [PATCH] mb/*/chromeos.c: Be explicit about code for ramstage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Motivation is to reduce use of !__PRE_RAM__, it does not mean ENV_RAMSTAGE but we also exclude ENV_SMM with the change. Change-Id: I1f96bb8c055a3da63274e1ab7f7d4bc70867cbf1 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/31930 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/mainboard/google/beltino/chromeos.c | 2 +- src/mainboard/google/butterfly/chromeos.c | 2 +- src/mainboard/google/jecht/chromeos.c | 2 +- src/mainboard/google/parrot/chromeos.c | 2 +- src/mainboard/google/stout/chromeos.c | 2 +- src/mainboard/intel/baskingridge/chromeos.c | 2 +- src/mainboard/intel/emeraldlake2/chromeos.c | 2 +- src/mainboard/samsung/lumpy/chromeos.c | 2 +- src/mainboard/samsung/stumpy/chromeos.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mainboard/google/beltino/chromeos.c b/src/mainboard/google/beltino/chromeos.c index c6b0db2821..dfa93a263d 100644 --- a/src/mainboard/google/beltino/chromeos.c +++ b/src/mainboard/google/beltino/chromeos.c @@ -28,7 +28,7 @@ #define FLAG_REC_MODE 1 #define FLAG_DEV_MODE 2 -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/butterfly/chromeos.c b/src/mainboard/google/butterfly/chromeos.c index 4108e31bbf..11b28cde90 100644 --- a/src/mainboard/google/butterfly/chromeos.c +++ b/src/mainboard/google/butterfly/chromeos.c @@ -30,7 +30,7 @@ #define DEVMODE_GPIO 54 #define FORCE_RECOVERY_MODE 0 -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include #define GPIO_COUNT 6 diff --git a/src/mainboard/google/jecht/chromeos.c b/src/mainboard/google/jecht/chromeos.c index 05c8a3e298..548470ecff 100644 --- a/src/mainboard/google/jecht/chromeos.c +++ b/src/mainboard/google/jecht/chromeos.c @@ -29,7 +29,7 @@ #define FLAG_REC_MODE 1 #define FLAG_DEV_MODE 2 -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/parrot/chromeos.c b/src/mainboard/google/parrot/chromeos.c index 6e6a4dee03..1420bf584d 100644 --- a/src/mainboard/google/parrot/chromeos.c +++ b/src/mainboard/google/parrot/chromeos.c @@ -27,7 +27,7 @@ #include "ec.h" -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include #define GPIO_COUNT 6 diff --git a/src/mainboard/google/stout/chromeos.c b/src/mainboard/google/stout/chromeos.c index 6a4be31fa4..d366e40822 100644 --- a/src/mainboard/google/stout/chromeos.c +++ b/src/mainboard/google/stout/chromeos.c @@ -26,7 +26,7 @@ #include "ec.h" #include -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include #define GPIO_COUNT 7 diff --git a/src/mainboard/intel/baskingridge/chromeos.c b/src/mainboard/intel/baskingridge/chromeos.c index 69e1050101..1c62e5e0eb 100644 --- a/src/mainboard/intel/baskingridge/chromeos.c +++ b/src/mainboard/intel/baskingridge/chromeos.c @@ -23,7 +23,7 @@ #include #include -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include #define GPIO_COUNT 6 diff --git a/src/mainboard/intel/emeraldlake2/chromeos.c b/src/mainboard/intel/emeraldlake2/chromeos.c index 24f887598f..8c0aeea4d1 100644 --- a/src/mainboard/intel/emeraldlake2/chromeos.c +++ b/src/mainboard/intel/emeraldlake2/chromeos.c @@ -23,7 +23,7 @@ #include #include -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include #define GPIO_COUNT 6 diff --git a/src/mainboard/samsung/lumpy/chromeos.c b/src/mainboard/samsung/lumpy/chromeos.c index baa409472d..0dba27a644 100644 --- a/src/mainboard/samsung/lumpy/chromeos.c +++ b/src/mainboard/samsung/lumpy/chromeos.c @@ -31,7 +31,7 @@ #define FLAG_REC_MODE 1 #define FLAG_DEV_MODE 2 -#ifndef __SIMPLE_DEVICE__ +#if ENV_RAMSTAGE #include #include "ec.h" #include diff --git a/src/mainboard/samsung/stumpy/chromeos.c b/src/mainboard/samsung/stumpy/chromeos.c index 85f9038428..d0554447d2 100644 --- a/src/mainboard/samsung/stumpy/chromeos.c +++ b/src/mainboard/samsung/stumpy/chromeos.c @@ -30,7 +30,7 @@ #define FLAG_REC_MODE 1 #define FLAG_DEV_MODE 2 -#ifndef __PRE_RAM__ +#if ENV_RAMSTAGE #include #define GPIO_COUNT 6