diff options
author | Reka Norman <rekanorman@google.com> | 2022-04-06 20:33:54 +1000 |
---|---|---|
committer | Patrick Georgi <patrick@coreboot.org> | 2022-04-07 08:12:20 +0000 |
commit | e790f929bd6986958f89d0c20d55ff1bd13d2ec5 (patch) | |
tree | a901b9467b47512061bf6d2b7a2c4e760353026f /src/soc/intel/alderlake/include | |
parent | d7cdeee74d2f0b701c614e1e7e7a177eecede55a (diff) |
soc/intel/alderlake: Add support to update descriptor at runtime
On nereid, we need to update the descriptor based on fw_config (see
the follow-up patch), so add support to update the descriptor at
runtime. This is a temporary workaround while we find a better solution.
This is basically adding back the configure_pmc_descriptor() function
removed in CB:63339, just making it generic and allowing it to update
multiple bytes at once.
BUG=b:226848617
TEST=With the following patch, Type-C and HDMI work on nereid.
Change-Id: I43c4d2888706561e42ff6b8ce0377eedbc38dbfe
Signed-off-by: Reka Norman <rekanorman@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63365
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Sam McNally <sammc@google.com>
Diffstat (limited to 'src/soc/intel/alderlake/include')
-rw-r--r-- | src/soc/intel/alderlake/include/soc/bootblock.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/include/soc/bootblock.h b/src/soc/intel/alderlake/include/soc/bootblock.h index ce2e42e6b2..ba4d1c24c0 100644 --- a/src/soc/intel/alderlake/include/soc/bootblock.h +++ b/src/soc/intel/alderlake/include/soc/bootblock.h @@ -9,6 +9,11 @@ #error "Please select exactly one PCH type" #endif +struct descriptor_byte { + size_t offset; + uint8_t desired_value; +}; + /* Bootblock pre console init programming */ void bootblock_pch_early_init(void); @@ -17,4 +22,6 @@ void bootblock_pch_init(void); void pch_early_iorange_init(void); void report_platform_info(void); +void configure_descriptor(struct descriptor_byte *bytes, size_t num); + #endif |