From 573c0d783e79b36cc1cd9cd153c82898d1e3510a Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 26 Sep 2007 19:49:38 +0000 Subject: [PATCH] Use symbolic names instead of hard-codes; use them from the .h file. Signed-off-by: Carl-Daniel Hailfinger Signed-off-by: Ronald G. Minnich Acked-by: Ronald G. Minnich git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@502 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- mainboard/adl/msm800sev/stage1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mainboard/adl/msm800sev/stage1.c b/mainboard/adl/msm800sev/stage1.c index 1689341412..fafd6eba2e 100644 --- a/mainboard/adl/msm800sev/stage1.c +++ b/mainboard/adl/msm800sev/stage1.c @@ -33,7 +33,8 @@ #include #include -#define SERIAL_DEV 0x30 +#define SERIAL_DEV W83627HF_SP1 +#define SERIAL_IOBASE 0x3f8 void hardware_stage1(void) { @@ -49,6 +50,6 @@ void hardware_stage1(void) * 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__); }