nb/intel/i945: Use ESMRAMC instead of 0x9e
Macro renamed to be in accordance with the name used in the datasheet. Change-Id: I5671c39608769b2c5ea2fb17809430f56e5f0b71 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/23330 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
36e809ffd6
commit
8324d87bf4
3 changed files with 3 additions and 3 deletions
|
@ -75,7 +75,7 @@
|
||||||
#define LAC 0x97 /* Legacy Access Control */
|
#define LAC 0x97 /* Legacy Access Control */
|
||||||
#define TOLUD 0x9c /* Top of Low Used Memory */
|
#define TOLUD 0x9c /* Top of Low Used Memory */
|
||||||
#define SMRAM 0x9d /* System Management RAM Control */
|
#define SMRAM 0x9d /* System Management RAM Control */
|
||||||
#define ESMRAM 0x9e /* Extended System Management RAM Control */
|
#define ESMRAMC 0x9e /* Extended System Management RAM Control */
|
||||||
|
|
||||||
#define TOM 0xa0
|
#define TOM 0xa0
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ static void pci_domain_set_resources(device_t dev)
|
||||||
uma_memory_size = uma_size * 1024ULL;
|
uma_memory_size = uma_size * 1024ULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
reg8 = pci_read_config8(dev_find_slot(0, PCI_DEVFN(0, 0)), 0x9e);
|
reg8 = pci_read_config8(dev_find_slot(0, PCI_DEVFN(0, 0)), ESMRAMC);
|
||||||
if (reg8 & 1) {
|
if (reg8 & 1) {
|
||||||
int tseg_size = 0;
|
int tseg_size = 0;
|
||||||
printk(BIOS_DEBUG, "TSEG decoded, subtracting ");
|
printk(BIOS_DEBUG, "TSEG decoded, subtracting ");
|
||||||
|
|
|
@ -36,7 +36,7 @@ static uintptr_t smm_region_start(void)
|
||||||
tom = (pci_read_config8(PCI_DEV(0, 0, 0), TOLUD) & 0xf7) << 24;
|
tom = (pci_read_config8(PCI_DEV(0, 0, 0), TOLUD) & 0xf7) << 24;
|
||||||
|
|
||||||
/* if TSEG enabled subtract size */
|
/* if TSEG enabled subtract size */
|
||||||
switch (pci_read_config8(PCI_DEV(0, 0, 0), ESMRAM) & 0x07) {
|
switch (pci_read_config8(PCI_DEV(0, 0, 0), ESMRAMC) & 0x07) {
|
||||||
case 0x01:
|
case 0x01:
|
||||||
/* 1MB TSEG */
|
/* 1MB TSEG */
|
||||||
tom -= 0x100000;
|
tom -= 0x100000;
|
||||||
|
|
Loading…
Reference in a new issue