google/cyan: convert to variant configuration

Setup cyan to be the baseboard for other Google Braswell
boards, to be added in subsequent commits:

- Keep code common to all Google Braswell boards in the baseboard,
and separate out the board-specific bits into the new cyan variant.

- Define the I2C ACPI devices such that they can be easily reused for
other variants.

- Switch the trackpad/touchscreen interrupts from edge to level,
for better performance/compatibility, as was done with all previous
Google boards.

- Add code to the baseboard to allow optional variant-specific
parameters to be used for both memory and silicon init.

- Remove superfluous includes, replace some hardcoded values with
variables, and correct typos/formatting errors.

Change-Id: Iabbbad16efa9cfa79338f4e94d0771779900d8d9
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/21126
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
diff --git a/src/mainboard/google/cyan/Kconfig b/src/mainboard/google/cyan/Kconfig
index 6cfec3a..f4f9830 100644
--- a/src/mainboard/google/cyan/Kconfig
+++ b/src/mainboard/google/cyan/Kconfig
@@ -1,7 +1,5 @@
-if BOARD_GOOGLE_CYAN
-
-config BOARD_SPECIFIC_OPTIONS
-	def_bool y
+config BOARD_GOOGLE_BASEBOARD_CYAN
+	def_bool n
 	select BOARD_ROMSIZE_KB_8192
 	select EC_GOOGLE_CHROMEEC
 	select EC_GOOGLE_CHROMEEC_MEC
@@ -14,6 +12,8 @@
 	select SOC_INTEL_BRASWELL
 	select HAVE_ACPI_RESUME
 
+if BOARD_GOOGLE_BASEBOARD_CYAN
+
 config VBOOT
 	select EC_GOOGLE_CHROMEEC_SWITCHES
 	select VBOOT_LID_SWITCH
@@ -33,14 +33,22 @@
 	string
 	default google/cyan
 
+config VARIANT_DIR
+	string
+	default "cyan" if BOARD_GOOGLE_CYAN
+
 config MAINBOARD_PART_NUMBER
 	string
-	default "Cyan"
+	default "Cyan" if BOARD_GOOGLE_CYAN
 
 config MAINBOARD_VENDOR
 	string
 	default "Google"
 
+config DEVICETREE
+	string
+	default "variants/cyan/devicetree.cb" if BOARD_GOOGLE_CYAN
+
 config VGA_BIOS_FILE
 	string
 	depends on VGA_BIOS
@@ -61,5 +69,6 @@
 config GBB_HWID
 	string
 	depends on CHROMEOS
-	default "CYAN TEST A-A 1829"
-endif # BOARD_GOOGLE_CYAN
+	default "CYAN TEST A-A 1829" if BOARD_GOOGLE_CYAN
+
+endif # BOARD_GOOGLE_BASEBOARD_CYAN