mb/google/nissa/var/xivu: Disable WFC and pen garage based on fw_config
commit52d0ec25eedc06ceff2f661544ffd6ad44369198
authorIan Feng <ian_feng@compal.corp-partner.google.com>
Thu, 21 Jul 2022 08:28:12 +0000 (21 16:28 +0800)
committerMartin Roth <martin.roth@amd.corp-partner.google.com>
Sat, 23 Jul 2022 19:18:12 +0000 (23 19:18 +0000)
tree70332fe3e08b4f9fa47cba65baac34e70f535424
parentd86860b84f0a20a57c0b8f4f33a2a8d19e5ea202
mb/google/nissa/var/xivu: Disable WFC and pen garage based on fw_config

Use fw_config Bit 0 and Bit 1 to control:
Bit 0 = 0 --> enable WFC
Bit 0 = 1 --> disable WFC

Bit 1 = 0 --> enable pen garage wake
Bit 1 = 1 --> disable pen garage wake

BUG=b:238045498
TEST=emerge-nissa coreboot chromeos-bootimage

Signed-off-by: Ian Feng <ian_feng@compal.corp-partner.google.com>
Change-Id: I85bc4753bfd16fd460286aa2b3bb5f3341049f61
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66043
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
src/mainboard/google/brya/variants/xivu/Makefile.inc
src/mainboard/google/brya/variants/xivu/fw_config.c [new file with mode: 0644]
src/mainboard/google/brya/variants/xivu/overridetree.cb