Get rid of hard-coded PM_DEVFN value. PM_DEVICE is now set in Makefile, and

that controls the PM_DEVFN in raminitspd.inc
This commit is contained in:
Ronald G. Minnich 2001-03-08 19:41:57 +00:00
parent b640a0827f
commit 3c2eb4bea0
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ CPUFLAGS += -DPM133_NVRAM -DPM133_KEYBOARD
CPUFLAGS += -DNEWPCI
CPUFLAGS += -DSERIAL_CONSOLE
# mainboard-dependent.
CPUFLAGS += -DPM_DEVFN=0x3c
CPUFLAGS += -DPM_DEVICE=0x3c
CPUFLAGS += -DSUPERIO_DEVFN=0x38
# If you enable FIXED_AND_VARIABLE it never makes it to the kernel!
# you have to only enable variable.

View file

@ -10,7 +10,7 @@ CPUFLAGS += -DSERIAL_CONSOLE
# you have to only enable variable.
#CPUFLAGS += -DENABLE_FIXED_AND_VARIABLE_MTRRS
# mainboard-dependent.
CPUFLAGS += -DPM_DEVFN=0x3c
CPUFLAGS += -DPM_DEVICE=0x3c
CPUFLAGS += -DSUPERIO_DEVFN=0x38
CPUFLAGS += -DRAMTEST
# This makes it fail sooner ...

View file

@ -14,7 +14,7 @@ CPUFLAGS += -DSERIAL_CONSOLE
# it in.
CPUFLAGS += -DENABLE_FIXED_AND_VARIABLE_MTRRS
# mainboard-dependent.
CPUFLAGS += -DPM_DEVFN=0x8c
CPUFLAGS += -DPM_DEVICE=0x8c
CPUFLAGS += -DSUPERIO_DEVFN=0x88
CPUFLAGS += -DRAMTEST
# This makes it fail sooner ...

View file

@ -50,7 +50,7 @@
*/
/* SPD ram init */
#define PM_DEVFN CONFIG_ADDR(0, 0x3c, 0)
#define PM_DEVFN CONFIG_ADDR(0, PM_DEVICE, 0)
#define DRAM_CONFIG_PORT 0x5a
#define REGISTERED_DRAM_REGISTER $0x69
#define LAST_SMBUS_MEM_DEVICE SMBUS_MEM_DEVICE_2