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> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@502 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
7bf3fdd871
commit
573c0d783e
1 changed files with 3 additions and 2 deletions
|
|
@ -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 @@ 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__);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue