Author: rminnich Date: 2007-09-26 21:49:38 +0200 (Wed, 26 Sep 2007) New Revision: 502
Modified: LinuxBIOSv3/mainboard/adl/msm800sev/stage1.c Log: Use symbolic names instead of hard-codes; use them from the .h file. Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net Signed-off-by: Ronald G. Minnich rminnich@gmail.com Acked-by: Ronald G. Minnich rminnich@gmail.com
Modified: LinuxBIOSv3/mainboard/adl/msm800sev/stage1.c =================================================================== --- LinuxBIOSv3/mainboard/adl/msm800sev/stage1.c 2007-09-26 14:24:52 UTC (rev 501) +++ LinuxBIOSv3/mainboard/adl/msm800sev/stage1.c 2007-09-26 19:49:38 UTC (rev 502) @@ -33,7 +33,8 @@ #include <southbridge/amd/cs5536/cs5536.h> #include <superio/winbond/w83627hf/w83627hf.h>
-#define SERIAL_DEV 0x30 +#define SERIAL_DEV W83627HF_SP1 +#define SERIAL_IOBASE 0x3f8
void hardware_stage1(void) { @@ -49,6 +50,6 @@ * for cs5536 */ cs5536_disable_internal_uart(); - w83627hf_enable_serial(0x2e, 0x30, 0x3f8); + w83627hf_enable_serial(0x2e, SERIAL_DEV, SERIAL_IOBASE); printk(BIOS_DEBUG, "Done %s\n", __FUNCTION__); }