nb/intel/pineview: Enable and allocate 8M for TSEG
TSEG can be used as a stage cache and SMM can be relocated here. Change-Id: Ifa3acce57f0c13eee326b7c203a43453c74c3161 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/25593 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e07df9d783
commit
4bdfebd4d8
|
@ -62,7 +62,7 @@
|
||||||
#define REMAPBASE 0x98
|
#define REMAPBASE 0x98
|
||||||
#define REMAPLIMIT 0x9a
|
#define REMAPLIMIT 0x9a
|
||||||
#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
|
||||||
#define TOUUD 0xa2
|
#define TOUUD 0xa2
|
||||||
|
|
|
@ -2039,7 +2039,7 @@ static void sdram_mmap_regs(struct sysinfo *s)
|
||||||
gttsize = ggc_to_gtt[(ggc & 0x300) >> 8];
|
gttsize = ggc_to_gtt[(ggc & 0x300) >> 8];
|
||||||
tom = s->channel_capacity[0];
|
tom = s->channel_capacity[0];
|
||||||
|
|
||||||
tsegsize = 0x1; // 1MB
|
tsegsize = 0x8; // 8MB
|
||||||
mmiosize = 0x400; // 1GB
|
mmiosize = 0x400; // 1GB
|
||||||
|
|
||||||
reclaim = false;
|
reclaim = false;
|
||||||
|
@ -2074,6 +2074,11 @@ static void sdram_mmap_regs(struct sysinfo *s)
|
||||||
pci_write_config32(PCI_DEV(0,0,0), BGSM, gttbase << 20);
|
pci_write_config32(PCI_DEV(0,0,0), BGSM, gttbase << 20);
|
||||||
pci_write_config32(PCI_DEV(0,0,0), TSEG, tsegbase << 20);
|
pci_write_config32(PCI_DEV(0,0,0), TSEG, tsegbase << 20);
|
||||||
|
|
||||||
|
u8 reg8 = pci_read_config8(PCI_DEV(0, 0, 0), ESMRAMC);
|
||||||
|
reg8 &= ~0x7;
|
||||||
|
reg8 |= (2 << 1) | (1 << 0); /* 8M and TSEG_Enable */
|
||||||
|
pci_write_config8(PCI_DEV(0, 0, 0), ESMRAMC, reg8);
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "GBSM (igd) = verified %08x (written %08x)\n",
|
printk(BIOS_DEBUG, "GBSM (igd) = verified %08x (written %08x)\n",
|
||||||
pci_read_config32(PCI_DEV(0,0,0), GBSM), gfxbase << 20);
|
pci_read_config32(PCI_DEV(0,0,0), GBSM), gfxbase << 20);
|
||||||
printk(BIOS_DEBUG, "BGSM (gtt) = verified %08x (written %08x)\n",
|
printk(BIOS_DEBUG, "BGSM (gtt) = verified %08x (written %08x)\n",
|
||||||
|
|
Loading…
Reference in New Issue