summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/southbridge/via/k8t890/ctrl.c4
-rw-r--r--src/southbridge/via/k8t890/k8x8xx.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/src/southbridge/via/k8t890/ctrl.c b/src/southbridge/via/k8t890/ctrl.c
index 73635105f9..d68e03e5f0 100644
--- a/src/southbridge/via/k8t890/ctrl.c
+++ b/src/southbridge/via/k8t890/ctrl.c
@@ -29,7 +29,7 @@
* PCI device 0:11.7, but it is mapped to PCI 0:0.7 (0x70-0x7c for PCI1)
*/
-static void vt8237r_cfg(struct device *dev, struct device *devsb)
+void k8x8xx_vt8237r_cfg(struct device *dev, struct device *devsb)
{
u8 regm3;
struct k8x8xx_vt8237_mirrored_regs mregs;
@@ -145,7 +145,7 @@ static void ctrl_init(struct device *dev)
PCI_DEVICE_ID_VIA_VT8237R_LPC, 0);
if (devsb) {
vt8237r_vlink_init(dev);
- vt8237r_cfg(dev, devsb);
+ k8x8xx_vt8237r_cfg(dev, devsb);
} else {
print_debug("VT8237R LPC not found !\n");
return;
diff --git a/src/southbridge/via/k8t890/k8x8xx.h b/src/southbridge/via/k8t890/k8x8xx.h
index 425aaeb5e8..c61c98426b 100644
--- a/src/southbridge/via/k8t890/k8x8xx.h
+++ b/src/southbridge/via/k8t890/k8x8xx.h
@@ -23,6 +23,9 @@
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
+#ifndef __PRE_RAM__
+#include <device/device.h>
+#endif
#include "k8t890.h"
struct k8x8xx_vt8237_mirrored_regs {
@@ -48,4 +51,8 @@ static inline void k8x8xx_vt8237_mirrored_regs_fill(struct k8x8xx_vt8237_mirrore
regs->low_top_address = msr.lo >> 16;
}
+#ifndef __PRE_RAM__
+void k8x8xx_vt8237r_cfg(struct device *, struct device *);
+#endif
+
#endif /* SOUTHBRIDGE_VIA_K8T890_K8X8XX_H */