diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-03 06:12:03 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-06-04 08:46:56 +0000 |
commit | 564c2191ab5d2c57ce7d3fda9a7596ef3e39b975 (patch) | |
tree | c21f844d42c7addb874ea83b060e45b785d5cdf5 /src/mainboard/asus | |
parent | 1bad4ce421188748d1c3dd6bafe3863cbb21dd24 (diff) | |
download | coreboot-564c2191ab5d2c57ce7d3fda9a7596ef3e39b975.tar.xz |
sb/amd/rs780: Fix invalid function declarations
Provide empty stub implementations for set_pcie_reset() and
set_pcie_dereset(), many boards do not provide a proper one.
Change-Id: Ia6811442905ef1776fa5a8e3f5d4433e86e42f88
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/26776
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/asus')
-rw-r--r-- | src/mainboard/asus/m4a78-em/mainboard.c | 8 | ||||
-rw-r--r-- | src/mainboard/asus/m4a785-m/mainboard.c | 7 | ||||
-rw-r--r-- | src/mainboard/asus/m5a88-v/mainboard.c | 11 |
3 files changed, 4 insertions, 22 deletions
diff --git a/src/mainboard/asus/m4a78-em/mainboard.c b/src/mainboard/asus/m4a78-em/mainboard.c index e80d39b0e8..87acc5674c 100644 --- a/src/mainboard/asus/m4a78-em/mainboard.c +++ b/src/mainboard/asus/m4a78-em/mainboard.c @@ -24,11 +24,7 @@ #include "southbridge/amd/sb700/smbus.h" #include "southbridge/amd/rs780/rs780.h" - -void set_pcie_dereset(void); -void set_pcie_reset(void); - -void set_pcie_dereset() +void set_pcie_dereset(void) { u8 byte; u16 word; @@ -53,7 +49,7 @@ void set_pcie_dereset() pci_write_config16(sm_dev, 0x7e, word); } -void set_pcie_reset() +void set_pcie_reset(void) { u8 byte; u16 word; diff --git a/src/mainboard/asus/m4a785-m/mainboard.c b/src/mainboard/asus/m4a785-m/mainboard.c index 42a9f644e3..5acce51969 100644 --- a/src/mainboard/asus/m4a785-m/mainboard.c +++ b/src/mainboard/asus/m4a785-m/mainboard.c @@ -34,10 +34,7 @@ #define ADT7461_write_byte(address, val) \ do_smbus_write_byte(SMBUS_IO_BASE, ADT7461_ADDRESS, address, val) -void set_pcie_dereset(void); -void set_pcie_reset(void); - -void set_pcie_dereset() +void set_pcie_dereset(void) { u8 byte; u16 word; @@ -62,7 +59,7 @@ void set_pcie_dereset() pci_write_config16(sm_dev, 0x7e, word); } -void set_pcie_reset() +void set_pcie_reset(void) { u8 byte; u16 word; diff --git a/src/mainboard/asus/m5a88-v/mainboard.c b/src/mainboard/asus/m5a88-v/mainboard.c index 4ec716e96a..75f231e74b 100644 --- a/src/mainboard/asus/m5a88-v/mainboard.c +++ b/src/mainboard/asus/m5a88-v/mainboard.c @@ -23,9 +23,6 @@ #include <device/pci_def.h> #include "southbridge/amd/rs780/rs780.h" -void set_pcie_dereset(void); -void set_pcie_reset(void); - /* GPIO6. */ static void enable_int_gfx(void) { @@ -45,14 +42,6 @@ static void enable_int_gfx(void) *(gpio_reg + 170) = 0x0; } -void set_pcie_dereset() -{ -} - -void set_pcie_reset(void) -{ -} - int is_dev3_present(void) { return 0; |