aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/oak/Kconfig
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2016-03-14 20:12:18 -0700
committerPatrick Georgi <pgeorgi@google.com>2016-05-09 08:32:47 +0200
commit9a57095bd254034fcd1d2f90747ad85e1fd20cd9 (patch)
treecfa536f843d3050b669e7517a561955f95a7b894 /src/mainboard/google/oak/Kconfig
parent8ea218b2cbed7f7571cb464e7a9b10c5248c38dd (diff)
google/oak: Add derivative board Elm
This patch adds a new mainboard Google/Elm as a derivative of Google/Oak, using the same code sharing technique for derivative boards that was pioneered with Google/Veyron*. For now, there are no firmware-relevant fundamental differences between the two boards. In addition, introduce a board-specific Kconfig for the "board ID adjustment" to represent the fact that the Elm board ID space mirrors the Oak board ID space with an offset of 6, meaning Elm rev0 is equivalent to Oak rev6, and future board changes will be made on both boards to maintain this stride (at least virtually... not all of those revisions will necessarily get built). This should make it much easier to keep the code that handles revision differences somewhat clean. (That's the theory, anyway... whether it will work out remains to be seen.) BRANCH=None BUG=None TEST=Booted Elm image with hardcoded board ID 0 on Oak rev6. Change-Id: If540aea862b746cf4986a74482ae1764c104fb73 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 53cd85c94945ab0bf14cb88a98e66723fc4483de Original-Change-Id: Ib05fc81dc4f4308d99e34fce74c6db8b323785da Original-Signed-off-by: Julius Werner <jwerner@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/332276 Original-Commit-Ready: Yidi Lin <yidi.lin@mediatek.com> Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14691 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/oak/Kconfig')
-rw-r--r--src/mainboard/google/oak/Kconfig18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mainboard/google/oak/Kconfig b/src/mainboard/google/oak/Kconfig
index 79d43d4b63..e8624d2cab 100644
--- a/src/mainboard/google/oak/Kconfig
+++ b/src/mainboard/google/oak/Kconfig
@@ -13,7 +13,10 @@
## GNU General Public License for more details.
##
-if BOARD_GOOGLE_OAK
+config BOARD_GOOGLE_OAK_COMMON
+ def_bool n
+
+if BOARD_GOOGLE_OAK_COMMON
config BOARD_SPECIFIC_OPTIONS
def_bool y
@@ -41,7 +44,11 @@ config MAINBOARD_DIR
config MAINBOARD_PART_NUMBER
string
- default "oak"
+ default "Oak"
+
+config MAINBOARD_VENDOR
+ string
+ default "Google"
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
@@ -71,4 +78,11 @@ config GBB_HWID
string
depends on CHROMEOS
default "OAK TEST 6858"
+
+# All Oak-derivatives count their board IDs as 0 being equivalent to Oak rev6.
+config BOARD_ID_ADJUSTMENT
+ int
+ default 0 if BOARD_GOOGLE_OAK
+ default 6
+
endif # BOARD_GOOGLE_OAK