summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-12-19 22:21:23 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-12-31 12:25:42 +0000
commit2c626f332b938caabb38f85db5cafb2f502b5a52 (patch)
tree83ccd64e9551cb62d3000de4ac2539a944c701bc /src/lib
parent673698636fdf2a967f73997ce0908992bba09409 (diff)
downloadcoreboot-2c626f332b938caabb38f85db5cafb2f502b5a52.tar.xz
coreboot_table: Convert some CONFIG(CHROMEOS) preprocessor
Change-Id: I1e63a419db92642df6b7956050c39540c2ae11d6 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48781 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/coreboot_table.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index d6fd84ae99..e00c2a4a52 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -152,7 +152,6 @@ void lb_add_gpios(struct lb_gpios *gpios, const struct lb_gpio *gpio_table,
gpios->size += table_size;
}
-#if CONFIG(CHROMEOS)
static void lb_gpios(struct lb_header *header)
{
struct lb_gpios *gpios;
@@ -191,6 +190,7 @@ static void lb_gpios(struct lb_header *header)
}
}
+#if CONFIG(CHROMEOS)
static void lb_vbnv(struct lb_header *header)
{
#if CONFIG(PC80_SYSTEM)
@@ -487,10 +487,11 @@ static uintptr_t write_coreboot_table(uintptr_t rom_table_end)
/* Record our framebuffer */
lb_framebuffer(head);
-#if CONFIG(CHROMEOS)
/* Record our GPIO settings (ChromeOS specific) */
- lb_gpios(head);
+ if (CONFIG(CHROMEOS))
+ lb_gpios(head);
+#if CONFIG(CHROMEOS)
/* pass along VBNV offsets in CMOS */
lb_vbnv(head);
#endif
@@ -511,9 +512,8 @@ static uintptr_t write_coreboot_table(uintptr_t rom_table_end)
/* Add board-specific table entries, if any. */
lb_board(head);
-#if CONFIG(CHROMEOS_RAMOOPS)
- lb_ramoops(head);
-#endif
+ if (CONFIG(CHROMEOS_RAMOOPS))
+ lb_ramoops(head);
lb_boot_media_params(head);