superio/nuvoton/nct6776: Correct the definition of NCT6776_GPIOBASE
NCT6776's data sheet does say that the virtual LDN of GPIO base should be 0x308, and most mainboards using it usually correctly config it in devicetree.cb under the path 2e.308, but in nct6776.h it used to be defined as 8 from the beginning (an ancient commit1e3a22649a
, lately revived in commitf95daa510d
), identical to the LDN of WDT, which eliminates the definition of value 2e.308, and makes related resource allocations unable to take effect. (in log we can find "PNP: 002e.308 missing read_resources" if 2e.308 is enabled and assigned with resources) In this commit, NCT6776_GPIOBASE is set to a value consistent with the data sheet. With this commit, resources under 2e.308 of NCT6776 can be allocated successfully. Change-Id: I604bad7ab34a8f57262fdec508e5952cf8eabf1c Signed-off-by: Bill XIE <persmule@hardenedlinux.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57221 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
f3c84024b1
commit
a11eca149a
|
@ -27,7 +27,7 @@
|
|||
/* virtual LDN for GPIO and WDT */
|
||||
#define NCT6776_WDT1 ((0 << 8) | NCT6776_WDT1_GPIO01A_V)
|
||||
|
||||
#define NCT6776_GPIOBASE ((0 << 8) | NCT6776_WDT1_GPIO01A_V) //?
|
||||
#define NCT6776_GPIOBASE ((3 << 8) | NCT6776_WDT1_GPIO01A_V)
|
||||
|
||||
#define NCT6776_GPIO0 ((1 << 8) | NCT6776_WDT1_GPIO01A_V)
|
||||
#define NCT6776_GPIO1 ((1 << 8) | NCT6776_GPIO1234567_V)
|
||||
|
|
Loading…
Reference in New Issue