diff options
author | Shelley Chen <shchen@chromium.org> | 2017-09-28 10:26:26 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-10-20 22:49:42 +0000 |
commit | bdfc5f5790ce632b287411c915ea163e0d4e84e1 (patch) | |
tree | 01c511b1ba2138b0cb55819accde1c9b7402bbe6 /src/mainboard/google/fizz/gpio.h | |
parent | ebd533065f0dd7f00d6452e5019f685b769d5b0e (diff) | |
download | coreboot-bdfc5f5790ce632b287411c915ea163e0d4e84e1.tar.xz |
google/fizz: Set PL2 value based on sku id/charge max power
Set PL2 based on either 90% of usb c charger's max power or sku id if
using a barrel jack.
BUG=b:37473486
BRANCH=None
TEST=output debug info for different skus and make sure
PL2 set correctly.
Change-Id: I487fce4a5d0825a26488e71dee02400dbebbffb3
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://review.coreboot.org/21772
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/fizz/gpio.h')
-rw-r--r-- | src/mainboard/google/fizz/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/fizz/gpio.h b/src/mainboard/google/fizz/gpio.h index dfd206dd26..d063e8d9d8 100644 --- a/src/mainboard/google/fizz/gpio.h +++ b/src/mainboard/google/fizz/gpio.h @@ -31,6 +31,12 @@ /* eSPI virtual wire reporting */ #define EC_SCI_GPI GPE0_ESPI +/* SKU_ID GPIOs */ +#define GPIO_SKU_ID0 GPP_C12 +#define GPIO_SKU_ID1 GPP_C13 +#define GPIO_SKU_ID2 GPP_C14 +#define GPIO_SKU_ID3 GPP_C15 + #ifndef __ACPI__ /* Pad configuration in ramstage */ /* Leave eSPI pins untouched from default settings */ |