rename vt8237r_cfg() to k8x8xx_vt8237r_cfg() and make publicly accessible

Change-Id: I82d1ec5117a58aaa8cfd2a342b7172a2786f5680
Signed-off-by: Florian Zumbiehl <florz@florz.de>
Reviewed-on: http://review.coreboot.org/379
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Florian Zumbiehl 2011-11-01 20:19:01 +01:00 committed by Patrick Georgi
parent 1e1e8593bc
commit 0802ad90cc
2 changed files with 9 additions and 2 deletions

View file

@ -29,7 +29,7 @@
* PCI device 0:11.7, but it is mapped to PCI 0:0.7 (0x70-0x7c for PCI1) * 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; u8 regm3;
struct k8x8xx_vt8237_mirrored_regs mregs; struct k8x8xx_vt8237_mirrored_regs mregs;
@ -145,7 +145,7 @@ static void ctrl_init(struct device *dev)
PCI_DEVICE_ID_VIA_VT8237R_LPC, 0); PCI_DEVICE_ID_VIA_VT8237R_LPC, 0);
if (devsb) { if (devsb) {
vt8237r_vlink_init(dev); vt8237r_vlink_init(dev);
vt8237r_cfg(dev, devsb); k8x8xx_vt8237r_cfg(dev, devsb);
} else { } else {
print_debug("VT8237R LPC not found !\n"); print_debug("VT8237R LPC not found !\n");
return; return;

View file

@ -23,6 +23,9 @@
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h> #include <cpu/amd/mtrr.h>
#ifndef __PRE_RAM__
#include <device/device.h>
#endif
#include "k8t890.h" #include "k8t890.h"
struct k8x8xx_vt8237_mirrored_regs { 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; 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 */ #endif /* SOUTHBRIDGE_VIA_K8T890_K8X8XX_H */