Winbond W83627HF: Use existing functions instead of open-coding.
[coreboot.git] / src / mainboard / via / epia-n / romstage.c
index 30ea0f2a3a253d6f0376adb221ed040ced571955..22e12cb6787a17df481d700e581e46bf678fb48c 100644 (file)
@@ -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();