summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorxuxinxiong <xuxinxiong@huaqin.corp-partner.google.com>2021-02-19 13:54:13 +0800
committerJulius Werner <jwerner@chromium.org>2021-02-26 01:37:40 +0000
commit9a446bdf0700d578e4504adf19aebc0ecc4be491 (patch)
tree2c58b9db19d26e27aabd004382354c5f0b96685f /src/mainboard
parent7f0d3de251f60dd71f48f87457c3057ec7a71148 (diff)
mb/google/trogdor: Add new configs homestar
New boards introduced to trogodor family. BUG=b:180668002 BRANCH=none TEST=make Signed-off-by: xuxinxiong <xuxinxiong@huaqin.corp-partner.google.com> Change-Id: If0f9b6c89198a882acae7191d08b166eb8c1dd71 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51004 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/trogdor/Kconfig1
-rw-r--r--src/mainboard/google/trogdor/Kconfig.name4
-rw-r--r--src/mainboard/google/trogdor/board.h5
3 files changed, 8 insertions, 2 deletions
diff --git a/src/mainboard/google/trogdor/Kconfig b/src/mainboard/google/trogdor/Kconfig
index dd9c4a6b35..0e1c0a3d92 100644
--- a/src/mainboard/google/trogdor/Kconfig
+++ b/src/mainboard/google/trogdor/Kconfig
@@ -58,6 +58,7 @@ config MAINBOARD_PART_NUMBER
string
default "Bubs" if BOARD_GOOGLE_BUBS
default "Coachz" if BOARD_GOOGLE_COACHZ
+ default "Homestar" if BOARD_GOOGLE_HOMESTAR
default "Lazor" if BOARD_GOOGLE_LAZOR
default "Pompom" if BOARD_GOOGLE_POMPOM
default "Trogdor" if BOARD_GOOGLE_TROGDOR
diff --git a/src/mainboard/google/trogdor/Kconfig.name b/src/mainboard/google/trogdor/Kconfig.name
index 174c795d87..ae5731542c 100644
--- a/src/mainboard/google/trogdor/Kconfig.name
+++ b/src/mainboard/google/trogdor/Kconfig.name
@@ -10,6 +10,10 @@ config BOARD_GOOGLE_COACHZ
bool "-> Coachz"
select BOARD_GOOGLE_TROGDOR_COMMON
+config BOARD_GOOGLE_HOMESTAR
+ bool "-> Homestar"
+ select BOARD_GOOGLE_TROGDOR_COMMON
+
config BOARD_GOOGLE_LAZOR
bool "-> Lazor"
select BOARD_GOOGLE_TROGDOR_COMMON
diff --git a/src/mainboard/google/trogdor/board.h b/src/mainboard/google/trogdor/board.h
index 4dc5010e34..fb0852bcd2 100644
--- a/src/mainboard/google/trogdor/board.h
+++ b/src/mainboard/google/trogdor/board.h
@@ -18,8 +18,9 @@
#define GPIO_BACKLIGHT_ENABLE GPIO(12)
#define GPIO_EDP_BRIDGE_ENABLE (CONFIG(TROGDOR_REV0) ? GPIO(14) : GPIO(104))
#define GPIO_EN_PP3300_DX_EDP (CONFIG(TROGDOR_REV0) ? GPIO(106) : \
- (CONFIG(BOARD_GOOGLE_COACHZ) ? (board_id() == 0 ? GPIO(52) : \
- GPIO(67)) : GPIO(30)))
+ (CONFIG(BOARD_GOOGLE_COACHZ) && board_id() == 0 ? GPIO(52) : \
+ (CONFIG(BOARD_GOOGLE_LAZOR) || CONFIG(BOARD_GOOGLE_POMPOM) ? GPIO(30) : \
+ GPIO(67))))
/* Fingerprint-specific GPIOs. Only for fingerprint-enabled devices (e.g. CoachZ). */
#if CONFIG(TROGDOR_HAS_FINGERPRINT)