mb/google/guybrush/bootblock: add comment about LPC_LDRQ0_PU,PD_EN
The definition of those bits changed between Picasso and Renoir/Cezanne so add a comment where those bit definitions are used as well. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: If1cf4b06fc35f94cbd482f2869fcc64739e7d272 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58345 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
parent
718a3cba25
commit
a30ad9faf9
@ -34,6 +34,8 @@ void bootblock_mainboard_early_init(void)
|
|||||||
size_t base_num_gpios, override_num_gpios;
|
size_t base_num_gpios, override_num_gpios;
|
||||||
const struct soc_amd_gpio *base_gpios, *override_gpios;
|
const struct soc_amd_gpio *base_gpios, *override_gpios;
|
||||||
|
|
||||||
|
/* Beware that the bit definitions for LPC_LDRQ0_PU_EN and LPC_LDRQ0_PD_EN are swapped
|
||||||
|
on Picasso and older compared to Renoir/Cezanne and newer */
|
||||||
dword = pci_read_config32(SOC_LPC_DEV, LPC_MISC_CONTROL_BITS);
|
dword = pci_read_config32(SOC_LPC_DEV, LPC_MISC_CONTROL_BITS);
|
||||||
dword &= ~(LPC_LDRQ0_PU_EN | LPC_LDRQ1_EN | LPC_LDRQ0_EN);
|
dword &= ~(LPC_LDRQ0_PU_EN | LPC_LDRQ1_EN | LPC_LDRQ0_EN);
|
||||||
dword |= LPC_LDRQ0_PD_EN;
|
dword |= LPC_LDRQ0_PD_EN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user