summaryrefslogtreecommitdiff
path: root/src/mainboard/via/epia-n
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-12-06 18:17:01 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-12-06 18:17:01 +0000
commit9b9791c29d0f4e88127f59bb87d53cfed65cd912 (patch)
tree40ee30e72f4cfd015bafc59a642f1f69959a9d83 /src/mainboard/via/epia-n
parent29cb06abca665954e910f91397957ec93c627e86 (diff)
Winbond W83627HF: Use existing functions instead of open-coding.
Use w83627hf_set_clksel_48() where needed instead or open-coding the same functionality, and also use w83627hf_enable_serial() instead of w83627hf_enable_dev() (which does exactly the same, but isn't wrapped in the enter/exit config mode functions). Abuild-tested. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6143 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/via/epia-n')
-rw-r--r--src/mainboard/via/epia-n/romstage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/via/epia-n/romstage.c b/src/mainboard/via/epia-n/romstage.c
index 30ea0f2a3a..22e12cb678 100644
--- a/src/mainboard/via/epia-n/romstage.c
+++ b/src/mainboard/via/epia-n/romstage.c
@@ -38,6 +38,7 @@
#include <spd.h>
#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
+#define DUMMY_DEV PNP_DEV(0x2e, 0)
static const struct mem_controller ctrl = {
.d0f0 = 0x0000,
@@ -109,7 +110,7 @@ static void main(unsigned long bist)
/* Enable multifunction for northbridge. */
pci_write_config8(ctrl.d0f0, 0x4f, 0x01);
- w83697hf_set_clksel_48(SERIAL_DEV);
+ w83697hf_set_clksel_48(DUMMY_DEV);
w83697hf_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
uart_init();
console_init();