diff options
-rw-r--r-- | src/mainboard/aaeon/pfm-540i_revb/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/db800/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/norwich/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/artecgroup/dbe61/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/bachmann/ot200/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/digitallogic/msm800sev/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/iei/pcisa-lx-800-r10/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/iei/pm-lx-800-r11/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/iei/pm-lx2-800-r10/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/lippert/hurricane-lx/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/lippert/literunner-lx/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/lippert/roadrunner-lx/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/lippert/spacerunner-lx/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/pcengines/alix1c/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/pcengines/alix2d/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/traverse/geos/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/winent/pl6064/romstage.c | 2 | ||||
-rw-r--r-- | src/northbridge/amd/lx/raminit.h | 3 |
18 files changed, 20 insertions, 17 deletions
diff --git a/src/mainboard/aaeon/pfm-540i_revb/romstage.c b/src/mainboard/aaeon/pfm-540i_revb/romstage.c index 81e6fc1..393a5af 100644 --- a/src/mainboard/aaeon/pfm-540i_revb/romstage.c +++ b/src/mainboard/aaeon/pfm-540i_revb/romstage.c @@ -40,7 +40,7 @@ #define SERIAL_DEV PNP_DEV(0x4e, SMSCSUPERIO_SP1) -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { if (device != DIMM0) return 0xFF; /* No DIMM1, don't even try. */ diff --git a/src/mainboard/amd/db800/romstage.c b/src/mainboard/amd/db800/romstage.c index b8467fa..736025c 100644 --- a/src/mainboard/amd/db800/romstage.c +++ b/src/mainboard/amd/db800/romstage.c @@ -37,7 +37,7 @@ #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { return smbus_read_byte(device, address); } diff --git a/src/mainboard/amd/norwich/romstage.c b/src/mainboard/amd/norwich/romstage.c index 105aec7..1fc30c2 100644 --- a/src/mainboard/amd/norwich/romstage.c +++ b/src/mainboard/amd/norwich/romstage.c @@ -34,7 +34,7 @@ #include "southbridge/amd/cs5536/early_setup.c" #include "northbridge/amd/lx/raminit.h" -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { return smbus_read_byte(device, address); } diff --git a/src/mainboard/artecgroup/dbe61/romstage.c b/src/mainboard/artecgroup/dbe61/romstage.c index e6bfb34..1d49a32 100644 --- a/src/mainboard/artecgroup/dbe61/romstage.c +++ b/src/mainboard/artecgroup/dbe61/romstage.c @@ -35,7 +35,7 @@ #include "southbridge/amd/cs5536/early_setup.c" #include "northbridge/amd/lx/raminit.h" -static int spd_read_byte(unsigned device, unsigned address) +int spd_read_byte(unsigned int device, unsigned int address) { int i; diff --git a/src/mainboard/bachmann/ot200/romstage.c b/src/mainboard/bachmann/ot200/romstage.c index d4ef4bc..ce55df3 100644 --- a/src/mainboard/bachmann/ot200/romstage.c +++ b/src/mainboard/bachmann/ot200/romstage.c @@ -35,7 +35,7 @@ #include "southbridge/amd/cs5536/early_setup.c" #include "northbridge/amd/lx/raminit.h" -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { return smbus_read_byte(device, address); } diff --git a/src/mainboard/digitallogic/msm800sev/romstage.c b/src/mainboard/digitallogic/msm800sev/romstage.c index b8a80a2..3ad912a 100644 --- a/src/mainboard/digitallogic/msm800sev/romstage.c +++ b/src/mainboard/digitallogic/msm800sev/romstage.c @@ -17,7 +17,7 @@ #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) -static inline int spd_read_byte(unsigned device, unsigned address) +int spd_read_byte(unsigned device, unsigned address) { return smbus_read_byte(device, address); } diff --git a/src/mainboard/iei/pcisa-lx-800-r10/romstage.c b/src/mainboard/iei/pcisa-lx-800-r10/romstage.c index 452e2c2..ab0a0b4 100644 --- a/src/mainboard/iei/pcisa-lx-800-r10/romstage.c +++ b/src/mainboard/iei/pcisa-lx-800-r10/romstage.c @@ -37,7 +37,7 @@ #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { return smbus_read_byte(device, address); } diff --git a/src/mainboard/iei/pm-lx-800-r11/romstage.c b/src/mainboard/iei/pm-lx-800-r11/romstage.c index b5d8cda..46b5ed6 100644 --- a/src/mainboard/iei/pm-lx-800-r11/romstage.c +++ b/src/mainboard/iei/pm-lx-800-r11/romstage.c @@ -37,7 +37,7 @@ #define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1) -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { /* Only DIMM0 is available. */ if (device != DIMM0) diff --git a/src/mainboard/iei/pm-lx2-800-r10/romstage.c b/src/mainboard/iei/pm-lx2-800-r10/romstage.c index 0f2a304..07091fb 100644 --- a/src/mainboard/iei/pm-lx2-800-r10/romstage.c +++ b/src/mainboard/iei/pm-lx2-800-r10/romstage.c @@ -38,7 +38,7 @@ #define SERIAL_DEV PNP_DEV(0x2e, SMSCSUPERIO_SP1) -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { /* Only DIMM0 is available. */ if (device != DIMM0) diff --git a/src/mainboard/lippert/hurricane-lx/romstage.c b/src/mainboard/lippert/hurricane-lx/romstage.c index 99d092f..7cc7785 100644 --- a/src/mainboard/lippert/hurricane-lx/romstage.c +++ b/src/mainboard/lippert/hurricane-lx/romstage.c @@ -41,7 +41,7 @@ /* Bit0 enables Spread Spectrum. */ #define SMC_CONFIG 0x01 -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { if (device != DIMM0) return 0xFF; /* No DIMM1, don't even try. */ diff --git a/src/mainboard/lippert/literunner-lx/romstage.c b/src/mainboard/lippert/literunner-lx/romstage.c index ea7ac30..ef2771a 100644 --- a/src/mainboard/lippert/literunner-lx/romstage.c +++ b/src/mainboard/lippert/literunner-lx/romstage.c @@ -75,7 +75,7 @@ static const unsigned char spdbytes[] = { // 4x Promos V58C2512164SA-J5I [SPD_tRFC] = 70 // SDRAM Device Minimum Auto Refresh to Active/Auto Refresh [70 ns] }; -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { if (device != DIMM0) return 0xFF; /* No DIMM1, don't even try. */ diff --git a/src/mainboard/lippert/roadrunner-lx/romstage.c b/src/mainboard/lippert/roadrunner-lx/romstage.c index eb406c6..2cee426 100644 --- a/src/mainboard/lippert/roadrunner-lx/romstage.c +++ b/src/mainboard/lippert/roadrunner-lx/romstage.c @@ -38,7 +38,7 @@ #include "superio/ite/it8712f/early_serial.c" #include "northbridge/amd/lx/raminit.h" -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { if (device != DIMM0) return 0xFF; /* No DIMM1, don't even try. */ diff --git a/src/mainboard/lippert/spacerunner-lx/romstage.c b/src/mainboard/lippert/spacerunner-lx/romstage.c index 2c9582e..ba2e40e 100644 --- a/src/mainboard/lippert/spacerunner-lx/romstage.c +++ b/src/mainboard/lippert/spacerunner-lx/romstage.c @@ -75,7 +75,7 @@ static const unsigned char spdbytes[] = { // 4x Promos V58C2512164SA-J5I [SPD_tRFC] = 70 // SDRAM Device Minimum Auto Refresh to Active/Auto Refresh [70 ns] }; -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { if (device != DIMM0) return 0xFF; /* No DIMM1, don't even try. */ diff --git a/src/mainboard/pcengines/alix1c/romstage.c b/src/mainboard/pcengines/alix1c/romstage.c index 165940d..3bed6b1 100644 --- a/src/mainboard/pcengines/alix1c/romstage.c +++ b/src/mainboard/pcengines/alix1c/romstage.c @@ -80,7 +80,7 @@ static const u8 spdbytes[] = { [SPD_tRRD] = 10, }; -static u8 spd_read_byte(u8 device, u8 address) +int spd_read_byte(unsigned int device, unsigned int address) { print_debug("spd_read_byte dev "); print_debug_hex8(device); diff --git a/src/mainboard/pcengines/alix2d/romstage.c b/src/mainboard/pcengines/alix2d/romstage.c index 377b193..2f63a69 100644 --- a/src/mainboard/pcengines/alix2d/romstage.c +++ b/src/mainboard/pcengines/alix2d/romstage.c @@ -79,7 +79,7 @@ static const u8 spdbytes[] = { [SPD_tRRD] = 10, }; -static u8 spd_read_byte(u8 device, u8 address) +int spd_read_byte(unsigned int device, unsigned int address) { print_debug("spd_read_byte dev "); print_debug_hex8(device); diff --git a/src/mainboard/traverse/geos/romstage.c b/src/mainboard/traverse/geos/romstage.c index be8a600..72cd9c0 100644 --- a/src/mainboard/traverse/geos/romstage.c +++ b/src/mainboard/traverse/geos/romstage.c @@ -35,7 +35,7 @@ #include "southbridge/amd/cs5536/early_setup.c" #include "northbridge/amd/lx/raminit.h" -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { return smbus_read_byte(device, address); } diff --git a/src/mainboard/winent/pl6064/romstage.c b/src/mainboard/winent/pl6064/romstage.c index 79baf22..b69d818 100644 --- a/src/mainboard/winent/pl6064/romstage.c +++ b/src/mainboard/winent/pl6064/romstage.c @@ -39,7 +39,7 @@ #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) -static inline int spd_read_byte(unsigned int device, unsigned int address) +int spd_read_byte(unsigned int device, unsigned int address) { return smbus_read_byte(device, address); } diff --git a/src/northbridge/amd/lx/raminit.h b/src/northbridge/amd/lx/raminit.h index c9bcfc2..01d25e9 100644 --- a/src/northbridge/amd/lx/raminit.h +++ b/src/northbridge/amd/lx/raminit.h @@ -33,4 +33,7 @@ void sdram_enable(int controllers, const struct mem_controller *ctrl); void sdram_initialize(int controllers, const struct mem_controller *ctrl); +/* mainboard specific */ +int spd_read_byte(unsigned device, unsigned address); + #endif |