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/asus | |
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/asus')
-rw-r--r-- | src/mainboard/asus/kcma-d8/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/kcma-d8/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/asus/kcma-d8/romstage.c | 1 | ||||
-rw-r--r-- | src/mainboard/asus/kfsn4-dre/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/kfsn4-dre/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/asus/kfsn4-dre/romstage.c | 1 | ||||
-rw-r--r-- | src/mainboard/asus/kgpe-d16/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/kgpe-d16/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/asus/kgpe-d16/romstage.c | 1 | ||||
-rw-r--r-- | src/mainboard/asus/m4a78-em/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/m4a78-em/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/asus/m4a78-em/romstage.c | 1 | ||||
-rw-r--r-- | src/mainboard/asus/m4a785-m/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/m4a785-m/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/asus/m4a785-m/romstage.c | 1 | ||||
-rw-r--r-- | src/mainboard/asus/m4a785t-m/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/m5a88-v/Makefile.inc | 16 | ||||
-rw-r--r-- | src/mainboard/asus/m5a88-v/resourcemap.c | 6 | ||||
-rw-r--r-- | src/mainboard/asus/m5a88-v/romstage.c | 1 |
19 files changed, 140 insertions, 14 deletions
diff --git a/src/mainboard/asus/kcma-d8/Makefile.inc b/src/mainboard/asus/kcma-d8/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/asus/kcma-d8/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/asus/kcma-d8/resourcemap.c b/src/mainboard/asus/kcma-d8/resourcemap.c index 5e66c56251..0edc3d1364 100644 --- a/src/mainboard/asus/kcma-d8/resourcemap.c +++ b/src/mainboard/asus/kcma-d8/resourcemap.c @@ -17,9 +17,11 @@ * GNU General Public License for more details. */ -#include <arch/cpu.h> +#include <arch/io.h> +#include <commonlib/helpers.h> +#include <northbridge/amd/amdfam10/amdfam10.h> -static void setup_mb_resource_map(void) +void setup_mb_resource_map(void) { static const unsigned int fam15h_register_values[] = { /* Careful set limit registers before base registers which contain the enables */ diff --git a/src/mainboard/asus/kcma-d8/romstage.c b/src/mainboard/asus/kcma-d8/romstage.c index 12c0926f87..caff4dfd1c 100644 --- a/src/mainboard/asus/kcma-d8/romstage.c +++ b/src/mainboard/asus/kcma-d8/romstage.c @@ -46,7 +46,6 @@ #include <arch/early_variables.h> #include <cbmem.h> -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #define SERIAL_0_DEV PNP_DEV(0x2e, W83667HG_A_SP1) diff --git a/src/mainboard/asus/kfsn4-dre/Makefile.inc b/src/mainboard/asus/kfsn4-dre/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/asus/kfsn4-dre/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/asus/kfsn4-dre/resourcemap.c b/src/mainboard/asus/kfsn4-dre/resourcemap.c index 9644201da4..3591488199 100644 --- a/src/mainboard/asus/kfsn4-dre/resourcemap.c +++ b/src/mainboard/asus/kfsn4-dre/resourcemap.c @@ -17,7 +17,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/asus/kfsn4-dre/romstage.c b/src/mainboard/asus/kfsn4-dre/romstage.c index b93372c372..99d437f9be 100644 --- a/src/mainboard/asus/kfsn4-dre/romstage.c +++ b/src/mainboard/asus/kfsn4-dre/romstage.c @@ -45,7 +45,6 @@ #include <northbridge/amd/amdfam10/raminit.h> #include <cpu/amd/family_10h-family_15h/init_cpus.h> -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #define SERIAL_DEV PNP_DEV(0x2e, W83627THG_SP1) diff --git a/src/mainboard/asus/kgpe-d16/Makefile.inc b/src/mainboard/asus/kgpe-d16/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/asus/kgpe-d16/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/asus/kgpe-d16/resourcemap.c b/src/mainboard/asus/kgpe-d16/resourcemap.c index 6d6e556183..b3c4465f87 100644 --- a/src/mainboard/asus/kgpe-d16/resourcemap.c +++ b/src/mainboard/asus/kgpe-d16/resourcemap.c @@ -17,9 +17,11 @@ * GNU General Public License for more details. */ -#include <arch/cpu.h> +#include <arch/io.h> +#include <commonlib/helpers.h> +#include <northbridge/amd/amdfam10/amdfam10.h> -static void setup_mb_resource_map(void) +void setup_mb_resource_map(void) { static const unsigned int fam15h_register_values[] = { /* Careful set limit registers before base registers which contain the enables */ diff --git a/src/mainboard/asus/kgpe-d16/romstage.c b/src/mainboard/asus/kgpe-d16/romstage.c index 31ba25192c..59ad0263f7 100644 --- a/src/mainboard/asus/kgpe-d16/romstage.c +++ b/src/mainboard/asus/kgpe-d16/romstage.c @@ -46,7 +46,6 @@ #include <arch/early_variables.h> #include <cbmem.h> -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #define SERIAL_0_DEV PNP_DEV(0x2e, W83667HG_A_SP1) diff --git a/src/mainboard/asus/m4a78-em/Makefile.inc b/src/mainboard/asus/m4a78-em/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/asus/m4a78-em/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/asus/m4a78-em/resourcemap.c b/src/mainboard/asus/m4a78-em/resourcemap.c index acdf645a54..a4a1d9251a 100644 --- a/src/mainboard/asus/m4a78-em/resourcemap.c +++ b/src/mainboard/asus/m4a78-em/resourcemap.c @@ -15,7 +15,11 @@ -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/asus/m4a78-em/romstage.c b/src/mainboard/asus/m4a78-em/romstage.c index 3175a02755..87a5d77d74 100644 --- a/src/mainboard/asus/m4a78-em/romstage.c +++ b/src/mainboard/asus/m4a78-em/romstage.c @@ -48,7 +48,6 @@ #include <spd.h> #include <southbridge/amd/rs780/rs780.h> -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1) diff --git a/src/mainboard/asus/m4a785-m/Makefile.inc b/src/mainboard/asus/m4a785-m/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/asus/m4a785-m/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/asus/m4a785-m/resourcemap.c b/src/mainboard/asus/m4a785-m/resourcemap.c index acdf645a54..a4a1d9251a 100644 --- a/src/mainboard/asus/m4a785-m/resourcemap.c +++ b/src/mainboard/asus/m4a785-m/resourcemap.c @@ -15,7 +15,11 @@ -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/asus/m4a785-m/romstage.c b/src/mainboard/asus/m4a785-m/romstage.c index 8dbaefa21d..02c396f93a 100644 --- a/src/mainboard/asus/m4a785-m/romstage.c +++ b/src/mainboard/asus/m4a785-m/romstage.c @@ -49,7 +49,6 @@ #include <spd.h> #include <southbridge/amd/rs780/rs780.h> -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1) diff --git a/src/mainboard/asus/m4a785t-m/Makefile.inc b/src/mainboard/asus/m4a785t-m/Makefile.inc new file mode 100644 index 0000000000..7b6cdb0d73 --- /dev/null +++ b/src/mainboard/asus/m4a785t-m/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 += ../m4a785-m/resourcemap.c + +ramstage-y += ../m4a785-m/get_bus_conf.c diff --git a/src/mainboard/asus/m5a88-v/Makefile.inc b/src/mainboard/asus/m5a88-v/Makefile.inc new file mode 100644 index 0000000000..91d4b39c32 --- /dev/null +++ b/src/mainboard/asus/m5a88-v/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/asus/m5a88-v/resourcemap.c b/src/mainboard/asus/m5a88-v/resourcemap.c index 2987b7c8fc..94ada1e867 100644 --- a/src/mainboard/asus/m5a88-v/resourcemap.c +++ b/src/mainboard/asus/m5a88-v/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/asus/m5a88-v/romstage.c b/src/mainboard/asus/m5a88-v/romstage.c index 3ad33ec862..4c2687f0c0 100644 --- a/src/mainboard/asus/m5a88-v/romstage.c +++ b/src/mainboard/asus/m5a88-v/romstage.c @@ -48,7 +48,6 @@ #include "southbridge/amd/sb800/early_setup.c" #include "spd.h" -#include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #define SERIAL_DEV PNP_DEV(0x4e, IT8721F_SP1) |