Fix Sandybridge/Ivybridge mainboards according to code review

This fixes a few cosmetics with the following three boards:

 - Intel Emerald Lake 2
 - Samsung ChromeBook
 - Samsung ChromeBox

The following issues were fixed:

 - rely on include path in ASL code instead of specifying relative
   paths
 - use updated ALIGN_CURRENT in acpi_tables.c
 - use preprocessor defines instead of hard coded values where possible

Change-Id: Ia5941be3873aa84c30c13ff2f0428d1c52daa563
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/963
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Tested-by: build bot (Jenkins)
This commit is contained in:
Stefan Reinauer 2012-04-30 14:57:51 -07:00 committed by Stefan Reinauer
parent a1155b47ca
commit e6063fee5c
10 changed files with 34 additions and 33 deletions

View File

@ -32,4 +32,4 @@
#define SIO_GPIO_IO0 0x720 // pnp 2e.7: io 0x60 #define SIO_GPIO_IO0 0x720 // pnp 2e.7: io 0x60
#define SIO_GPIO_IO1 0x730 // pnp 2e.7: io 0x60 #define SIO_GPIO_IO1 0x730 // pnp 2e.7: io 0x60
#include "../../../../superio/smsc/sio1007/acpi/superio.asl" #include "superio/smsc/sio1007/acpi/superio.asl"

View File

@ -180,7 +180,7 @@ unsigned long acpi_fill_srat(unsigned long current)
void smm_setup_structures(void *gnvs, void *tcg, void *smi1); void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
#define ALIGN_CURRENT current = ((current + 0x0f) & -0x10) #define ALIGN_CURRENT current = (ALIGN(current, 16))
unsigned long write_acpi_tables(unsigned long start) unsigned long write_acpi_tables(unsigned long start)
{ {
unsigned long current; unsigned long current;

View File

@ -188,17 +188,17 @@ void main(unsigned long bist)
#endif #endif
struct pei_data pei_data = { struct pei_data pei_data = {
pei_version: PEI_VERSION, pei_version: PEI_VERSION,
mchbar: 0xfed10000, mchbar: DEFAULT_MCHBAR,
dmibar: 0xfed18000, dmibar: DEFAULT_DMIBAR,
epbar: 0xfed19000, epbar: DEFAULT_EPBAR,
pciexbar: 0xf0000000, pciexbar: CONFIG_MMCONF_BASE_ADDRESS,
smbusbar: 0x400, smbusbar: SMBUS_IO_BASE,
wdbbar: 0x4000000, wdbbar: 0x4000000,
wdbsize: 0x1000, wdbsize: 0x1000,
hpet_address: 0xfed00000, hpet_address: HPET_ADDR,
rcba: 0xfed1c000, rcba: DEFAULT_RCBABASE,
pmbase: 0x500, pmbase: DEFAULT_PMBASE,
gpiobase: 0x480, gpiobase: DEFAULT_GPIOBASE,
thermalbase: 0xfed08000, thermalbase: 0xfed08000,
system_type: 0, // 0 Mobile, 1 Desktop/Server system_type: 0, // 0 Mobile, 1 Desktop/Server
tseg_size: CONFIG_SMM_TSEG_SIZE, tseg_size: CONFIG_SMM_TSEG_SIZE,

View File

@ -35,4 +35,4 @@
#define SIO_ENABLE_SMBX // pnp 2e.9: Enable Mailbox #define SIO_ENABLE_SMBX // pnp 2e.9: Enable Mailbox
#define SIO_SMBX_IO0 0xa00 // pnp 2e.9: io 0xa00 #define SIO_SMBX_IO0 0xa00 // pnp 2e.9: io 0xa00
#include "../../../../superio/smsc/mec1308/acpi/superio.asl" #include "superio/smsc/mec1308/acpi/superio.asl"

View File

@ -177,7 +177,7 @@ unsigned long acpi_fill_srat(unsigned long current)
void smm_setup_structures(void *gnvs, void *tcg, void *smi1); void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
#define ALIGN_CURRENT current = ((current + 0x0f) & -0x10) #define ALIGN_CURRENT current = (ALIGN(current, 16))
unsigned long write_acpi_tables(unsigned long start) unsigned long write_acpi_tables(unsigned long start)
{ {
unsigned long current; unsigned long current;

View File

@ -151,17 +151,17 @@ void main(unsigned long bist)
#endif #endif
struct pei_data pei_data = { struct pei_data pei_data = {
.mchbar = 0xfed10000, .mchbar = DEFAULT_MCHBAR,
.dmibar = 0xfed18000, .dmibar = DEFAULT_DMIBAR,
.epbar = 0xfed19000, .epbar = DEFAULT_EPBAR,
.pciexbar = 0xf0000000, .pciexbar = CONFIG_MMCONF_BASE_ADDRESS,
.smbusbar = 0x400, .smbusbar = SMBUS_IO_BASE,
.wdbbar = 0x4000000, .wdbbar = 0x4000000,
.wdbsize = 0x1000, .wdbsize = 0x1000,
.hpet_address = 0xfed00000, .hpet_address = HPET_ADDR,
.rcba = 0xfed1c000, .rcba = DEFAULT_RCBABASE,
.pmbase = 0x500, .pmbase = DEFAULT_PMBASE,
.gpiobase = 0x480, .gpiobase = DEFAULT_GPIOBASE,
.thermalbase = 0xfed08000, .thermalbase = 0xfed08000,
.system_type = 0, // 0 Mobile, 1 Desktop/Server .system_type = 0, // 0 Mobile, 1 Desktop/Server
.tseg_size = CONFIG_SMM_TSEG_SIZE, .tseg_size = CONFIG_SMM_TSEG_SIZE,

View File

@ -32,4 +32,4 @@
#define SIO_GPIO_IO0 0x720 // pnp 2e.7: io 0x60 #define SIO_GPIO_IO0 0x720 // pnp 2e.7: io 0x60
#define SIO_GPIO_IO1 0x730 // pnp 2e.7: io 0x60 #define SIO_GPIO_IO1 0x730 // pnp 2e.7: io 0x60
#include "../../../../superio/ite/it8772f/acpi/superio.asl" #include "superio/ite/it8772f/acpi/superio.asl"

View File

@ -181,7 +181,7 @@ unsigned long acpi_fill_srat(unsigned long current)
void smm_setup_structures(void *gnvs, void *tcg, void *smi1); void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
#define ALIGN_CURRENT current = ((current + 0x0f) & -0x10) #define ALIGN_CURRENT current = (ALIGN(current, 16))
unsigned long write_acpi_tables(unsigned long start) unsigned long write_acpi_tables(unsigned long start)
{ {
unsigned long current; unsigned long current;

View File

@ -186,17 +186,17 @@ void main(unsigned long bist)
}; };
#endif #endif
struct pei_data pei_data = { struct pei_data pei_data = {
mchbar: 0xfed10000, mchbar: DEFAULT_MCHBAR,
dmibar: 0xfed18000, dmibar: DEFAULT_DMIBAR,
epbar: 0xfed19000, epbar: DEFAULT_EPBAR,
pciexbar: 0xf0000000, pciexbar: CONFIG_MMCONF_BASE_ADDRESS,
smbusbar: 0x400, smbusbar: SMBUS_IO_BASE,
wdbbar: 0x4000000, wdbbar: 0x4000000,
wdbsize: 0x1000, wdbsize: 0x1000,
hpet_address: 0xfed00000, hpet_address: HPET_ADDR,
rcba: 0xfed1c000, rcba: DEFAULT_RCBABASE,
pmbase: 0x500, pmbase: DEFAULT_PMBASE,
gpiobase: 0x480, gpiobase: DEFAULT_GPIOBASE,
thermalbase: 0xfed08000, thermalbase: 0xfed08000,
system_type: 0, // 0 Mobile, 1 Desktop/Server system_type: 0, // 0 Mobile, 1 Desktop/Server
tseg_size: CONFIG_SMM_TSEG_SIZE, tseg_size: CONFIG_SMM_TSEG_SIZE,

View File

@ -51,6 +51,7 @@
#define DEFAULT_MCHBAR 0xfed10000 /* 16 KB */ #define DEFAULT_MCHBAR 0xfed10000 /* 16 KB */
#define DEFAULT_DMIBAR 0xfed18000 /* 4 KB */ #define DEFAULT_DMIBAR 0xfed18000 /* 4 KB */
#define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ #define DEFAULT_EPBAR 0xfed19000 /* 4 KB */
#define DEFAULT_RCBABASE 0xfed1c000
#include "../../../southbridge/intel/bd82x6x/pch.h" #include "../../../southbridge/intel/bd82x6x/pch.h"