diff options
Diffstat (limited to 'src/southbridge/via/k8t890/host_ctrl.c')
-rw-r--r-- | src/southbridge/via/k8t890/host_ctrl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/southbridge/via/k8t890/host_ctrl.c b/src/southbridge/via/k8t890/host_ctrl.c index 2f4bca7cf1..27ae0ab7dc 100644 --- a/src/southbridge/via/k8t890/host_ctrl.c +++ b/src/southbridge/via/k8t890/host_ctrl.c @@ -113,9 +113,13 @@ static void host_ctrl_enable_k8m8xx(struct device *dev) { pci_write_config8(dev, 0xa6, 0x83); } -void backup_top_of_ram(uint64_t ramtop) { + +#if IS_ENABLED(CONFIG_LATE_CBMEM_INIT) +void backup_top_of_ram(uint64_t ramtop) +{ outl((u32) ramtop, K8T890_NVRAM_IO_BASE+K8T890_NVRAM_TOP_OF_RAM); } +#endif static struct pci_operations lops_pci = { .set_subsystem = pci_dev_set_subsystem, |