diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-03 11:38:37 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-04 17:20:08 +0000 |
commit | a2cfe9e90001fe11f7c7653c9917ea75dd082333 (patch) | |
tree | b84bfda6b4278f37a38f57d3313128ea575843f2 /src/mainboard/advansus | |
parent | d482c7dace772278d988682e94247e3801587ff7 (diff) |
amdfam10 boards: Add Makefiles and fix resourcemap.c
Also remove global ramstage-y += get_bus_conf.c, this is
specific to amdfam10.
Change-Id: I49b604ebff6bcfe85518b2c3896ab798c3c7878d
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30629
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/advansus')
-rw-r--r-- | src/mainboard/advansus/a785e-i/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/advansus/a785e-i/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/advansus/a785e-i/romstage.c | 1 |
3 files changed, 21 insertions, 2 deletions
diff --git a/src/mainboard/advansus/a785e-i/Makefile.inc b/src/mainboard/advansus/a785e-i/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/advansus/a785e-i/Makefile.inc @@ -0,0 +1,16 @@ +# +# This file is part of the coreboot project. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# + +romstage-y += resourcemap.c + +ramstage-y += get_bus_conf.c diff --git a/src/mainboard/advansus/a785e-i/resourcemap.c b/src/mainboard/advansus/a785e-i/resourcemap.c index 19181fb2a9..8390f49504 100644 --- a/src/mainboard/advansus/a785e-i/resourcemap.c +++ b/src/mainboard/advansus/a785e-i/resourcemap.c @@ -13,7 +13,11 @@ * GNU General Public License for more details. */ -static void setup_mb_resource_map(void) +#include <arch/io.h> +#include <commonlib/helpers.h> +#include <northbridge/amd/amdfam10/amdfam10.h> + +void setup_mb_resource_map(void) { static const unsigned int register_values[] = { /* Careful set limit registers before base registers which contain the enables */ diff --git a/src/mainboard/advansus/a785e-i/romstage.c b/src/mainboard/advansus/a785e-i/romstage.c index c63c2feb35..f9ea822c7f 100644 --- a/src/mainboard/advansus/a785e-i/romstage.c +++ b/src/mainboard/advansus/a785e-i/romstage.c @@ -46,7 +46,6 @@ #include <arch/early_variables.h> #include <cbmem.h> -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #include "spd.h" |