summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/dbm690t/mainboard.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-12-13 20:51:34 +0000
committerStefan Reinauer <stepan@openbios.org>2008-12-13 20:51:34 +0000
commit045c348cf3d700670b5780dd713c2e75436e5b4a (patch)
treee471f52dd964c6839dc7f42d32514424ab4c81de /src/mainboard/amd/dbm690t/mainboard.c
parent42f03e564726fbc85842f30022e4d7c074e8cccc (diff)
downloadcoreboot-045c348cf3d700670b5780dd713c2e75436e5b4a.tar.xz
Move mainboard specific changes to the coreboot memory table into the
mainboard specific code. (And add a hook to allow other mainboards do a similar thing if required) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3812 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/amd/dbm690t/mainboard.c')
-rw-r--r--src/mainboard/amd/dbm690t/mainboard.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/mainboard/amd/dbm690t/mainboard.c b/src/mainboard/amd/dbm690t/mainboard.c
index 568670f737..72bf04bd29 100644
--- a/src/mainboard/amd/dbm690t/mainboard.c
+++ b/src/mainboard/amd/dbm690t/mainboard.c
@@ -41,6 +41,8 @@ extern int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address,
#define ADT7461_write_byte(address, val) \
do_smbus_write_byte(SMBUS_IO_BASE, ADT7461_ADDRESS, address, val)
+unsigned long uma_memory_start, uma_memory_size;
+
/********************************************************
* dbm690t uses a BCM5789 as on-board NIC.
* It has a pin named LOW_POWER to enable it into LOW POWER state.
@@ -241,13 +243,24 @@ void dbm690t_enable(device_t dev)
get_ide_dma66();
set_thermal_config();
}
+
+int add_mainboard_resources(struct lb_memory *mem)
+{
+ /* UMA is removed from system memory in the northbridge code, but
+ * in some circumstances we want the memory mentioned as reserved.
+ */
+#if (CONFIG_GFXUMA == 1)
+ printk_info("uma_memory_start=0x%x, uma_memory_size=0x%x \n",
+ uma_memory_start, uma_memory_size);
+ lb_add_memory_range(mem, LB_MEM_RESERVED,
+ uma_memory_start, uma_memory_size);
+#endif
+}
/*
* CONFIG_CHIP_NAME defined in Option.lb.
*/
struct chip_operations mainboard_amd_dbm690t_ops = {
-#if CONFIG_CHIP_NAME == 1
- CHIP_NAME("AMD Dbm690t Mainboard")
-#endif
- .enable_dev = dbm690t_enable,
+ CHIP_NAME("AMD DBM690T Mainboard")
+ .enable_dev = dbm690t_enable,
};