diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-22 09:22:15 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-22 09:22:15 +0000 |
commit | ba09695b58f7254d646618d1207840e33ca3d1d8 (patch) | |
tree | 376676533f18b11d3051d9f5e4af3f20ce33e6d1 /src/northbridge/amd/gx2/northbridge.c | |
parent | 4e169f903071b6201bdb046020d9c73f95e64715 (diff) |
fix compilation remaining geode boards
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5475 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/gx2/northbridge.c')
-rw-r--r-- | src/northbridge/amd/gx2/northbridge.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/northbridge/amd/gx2/northbridge.c b/src/northbridge/amd/gx2/northbridge.c index 190529ce04..e74a8e33f8 100644 --- a/src/northbridge/amd/gx2/northbridge.c +++ b/src/northbridge/amd/gx2/northbridge.c @@ -17,8 +17,6 @@ #include "../../../southbridge/amd/cs5536/cs5536.h" #define VIDEO_MB 8 -extern void graphics_init(void); - #define NORTHBRIDGE_FILE "northbridge.c" /* todo: add a resource record. We don't do this here because this may be called when @@ -190,7 +188,7 @@ setup_gx2_cache(void) } /* we have to do this here. We have not found a nicer way to do it */ -void +static void setup_gx2(void) { @@ -371,6 +369,7 @@ static void ram_resource(device_t dev, unsigned long index, IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED; } +#if 0 static void tolm_test(void *gp, struct device *dev, struct resource *new) { struct resource **best_p = gp; @@ -382,7 +381,6 @@ static void tolm_test(void *gp, struct device *dev, struct resource *new) *best_p = best; } -#if 0 static u32 find_pci_tolm(struct bus *bus) { struct resource *min; @@ -396,6 +394,8 @@ static u32 find_pci_tolm(struct bus *bus) return tolm; } #endif + +// FIXME handle UMA correctly. #define FRAMEBUFFERK 4096 static void pci_domain_set_resources(device_t dev) @@ -484,19 +484,17 @@ extern uint64_t high_tables_base, high_tables_size; static void enable_dev(struct device *dev) { printk(BIOS_DEBUG, "gx2 north: enable_dev\n"); - void northbridgeinit(void); - void chipsetinit(struct northbridge_amd_gx2_config *nb); void do_vsmbios(void); + /* Set the operations if it is a special bus type */ if (dev->path.type == DEVICE_PATH_PCI_DOMAIN) { struct northbridge_amd_gx2_config *nb = (struct northbridge_amd_gx2_config *)dev->chip_info; - extern void cpubug(void); u32 tomk; printk(BIOS_DEBUG, "DEVICE_PATH_PCI_DOMAIN\n"); /* cpubug MUST be called before setup_gx2(), so we force the issue here */ northbridgeinit(); - cpubug(); - chipsetinit(nb); + cpubug(); + gx2_chipsetinit(nb); setup_gx2(); do_vsmbios(); graphics_init(); |