mainboard/google/kahlee: Prepare for variants

Move files that are particularly specific to the mainboard into the
variant directory.  Files that only have small areas of mainboard
specific pieces use #if to separate between the boards.

Add memory.c to split out the variant board id into a weak function.
Add baseboard/gpio.h to satisfy the build - this will be updated in the
next commit.

BUG=b:68293392

Change-Id: I7c1beb45f571f2547f3b5b0d7ec78923d0cec761
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/22185
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Martin Roth
2017-10-23 11:29:35 -06:00
parent fa7d2a07fe
commit d540d740b6
14 changed files with 179 additions and 26 deletions

View File

@@ -19,10 +19,7 @@
#include <boot/coreboot_tables.h>
#include <console/console.h>
#include <gpio.h>
/* SPI Write protect */
#define CROS_WP_GPIO GPIO_142
#define GPIO_EC_IN_RW GPIO_15
#include <variant/gpio.h>
void fill_lb_gpios(struct lb_gpios *gpios)
{