| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <device/pci_ops.h> |
| 5 |
#include <northbridge/intel/sandybridge/sandybridge.h> |
| 6 |
#include <superio/smsc/sch5545/sch5545.h> |
| 7 |
#include <superio/smsc/sch5545/sch5545_emi.h> |
| 8 |
|
| 9 |
#include <baseboard/sch5545_ec.h> |
| 10 |
|
| 11 |
void bootblock_mainboard_early_init(void) |
| 12 |
{ |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
pci_write_config32(HOST_BRIDGE, MCHBAR, CONFIG_FIXED_MCHBAR_MMIO_BASE | 1); |
| 18 |
pci_write_config32(HOST_BRIDGE, MCHBAR + 4, 0); |
| 19 |
mchbar_write16(SSKPD_HI, 0); |
| 20 |
|
| 21 |
sch5545_early_init(0x2e); |
| 22 |
|
| 23 |
sch5545_emi_init(0x2e); |
| 24 |
sch5545_emi_disable_interrupts(); |
| 25 |
sch5545_ec_early_init(); |
| 26 |
|
| 27 |
if (CONFIG(CONSOLE_SERIAL)) |
| 28 |
sch5545_enable_uart(0x2e, 0); |
| 29 |
} |