diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2013-06-04 17:34:35 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-06-04 17:56:35 +0200 |
commit | c4e07bb50345f1b95ae2f80fc42694d3533c628e (patch) | |
tree | 50a352906a905c42535819cbe7ec4a6ef991c5be /src/mainboard | |
parent | 4eb5aa2894b1115909a672470bb22c7804c20561 (diff) | |
download | coreboot-staging-c4e07bb50345f1b95ae2f80fc42694d3533c628e.zip coreboot-staging-c4e07bb50345f1b95ae2f80fc42694d3533c628e.tar.gz |
AMD Northbridge LX: convert spd_read_byte() to non-static version
Change-Id: Ie329606852dfd7109acb694e9a9ff851b023cc63
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-on: http://review.coreboot.org/3369
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/mainboard')
-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 |
17 files changed, 17 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); } |