diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2016-10-04 20:58:03 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-10-09 21:30:03 +0200 |
commit | e0ee4c87e8c8b175f8e12dcf1c50342265b14677 (patch) | |
tree | 1a149d37d3eeaacb13134f9bd63d06b307df3e31 /src/northbridge/amd/amdfam10/setup_resource_map.c | |
parent | fd5c65887169deddbf1aa419535771be886e4df3 (diff) |
northbridge/amd/amdfam10: Remove commented code
Change-Id: I63fee62253cb0488a041c9985a646102261b8c5e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16880
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/amd/amdfam10/setup_resource_map.c')
-rw-r--r-- | src/northbridge/amd/amdfam10/setup_resource_map.c | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/src/northbridge/amd/amdfam10/setup_resource_map.c b/src/northbridge/amd/amdfam10/setup_resource_map.c index 7e71cf787b..3d67bddba4 100644 --- a/src/northbridge/amd/amdfam10/setup_resource_map.c +++ b/src/northbridge/amd/amdfam10/setup_resource_map.c @@ -20,7 +20,6 @@ static void setup_resource_map(const u32 *register_values, u32 max) { u32 i; -// printk(BIOS_DEBUG, "setting up resource map...."); for (i = 0; i < max; i += 3) { pci_devfn_t dev; @@ -34,14 +33,13 @@ static void setup_resource_map(const u32 *register_values, u32 max) reg |= register_values[i+2]; pci_write_config32(dev, where, reg); } -// printk(BIOS_DEBUG, "done.\n"); } void setup_resource_map_offset(const u32 *register_values, u32 max, u32 offset_pci_dev, u32 offset_io_base) { u32 i; -// printk(BIOS_DEBUG, "setting up resource map offset...."); + for (i = 0; i < max; i += 3) { pci_devfn_t dev; u32 where; @@ -53,7 +51,6 @@ void setup_resource_map_offset(const u32 *register_values, u32 max, u32 offset_p reg |= register_values[i+2] + offset_io_base; pci_write_config32(dev, where, reg); } -// printk(BIOS_DEBUG, "done.\n"); } #define RES_PCI_IO 0x10 @@ -124,9 +121,7 @@ void setup_resource_map_x_offset(const u32 *register_values, u32 max, u32 offset printk(BIOS_SPEW, "NOW: %08x\n", reg); } break; - } // switch - - + } } if (IS_ENABLED(RES_DEBUG)) @@ -180,46 +175,9 @@ void setup_resource_map_x(const u32 *register_values, u32 max) outl(reg, where); } break; - } // switch - - + } } if (IS_ENABLED(RES_DEBUG)) printk(BIOS_DEBUG, "done.\n"); } - -#if 0 -static void setup_iob_resource_map(const u32 *register_values, u32 max) -{ - u32 i; - - for (i = 0; i < max; i += 3) { - u32 where; - u32 reg; - - where = register_values[i]; - reg = inb(where); - reg &= register_values[i+1]; - reg |= register_values[i+2]; - outb(reg, where); - } -} - -static void setup_io_resource_map(const u32 *register_values, u32 max) -{ - u32 i; - - for (i = 0; i < max; i += 3) { - u32 where; - u32 reg; - - where = register_values[i]; - reg = inl(where); - reg &= register_values[i+1]; - reg |= register_values[i+2]; - - outl(reg, where); - } -} -#endif |