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>
This commit is contained in:
Kyösti Mälkki
2019-01-03 11:38:37 +02:00
parent d482c7dace
commit a2cfe9e900
70 changed files with 479 additions and 49 deletions

View File

@@ -378,9 +378,6 @@ ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/smihandler.c),)
smm-srcs += src/mainboard/$(MAINBOARDDIR)/smihandler.c
endif
endif
ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/get_bus_conf.c),)
ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/get_bus_conf.c
endif
ramstage-libs ?=

View File

@@ -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

View File

@@ -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 */

View File

@@ -46,7 +46,6 @@
#include <arch/early_variables.h>
#include <cbmem.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#include "spd.h"

View File

@@ -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

View File

@@ -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 */

View File

@@ -45,7 +45,6 @@
#include "southbridge/amd/sb800/early_setup.c"
#include <spd.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
void activate_spd_rom(const struct mem_controller *ctrl);

View File

@@ -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

View File

@@ -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 */

View File

@@ -51,7 +51,6 @@
#define SERIAL_DEV PNP_DEV(0x2e, IT8718F_SP1)
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
void activate_spd_rom(const struct mem_controller *ctrl);

View File

@@ -2,3 +2,7 @@ $(eval $(call asl_template,ssdt2))
$(eval $(call asl_template,ssdt3))
$(eval $(call asl_template,ssdt4))
$(eval $(call asl_template,ssdt5))
romstage-y += resourcemap.c
ramstage-y += get_bus_conf.c

View File

@@ -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 */

View File

@@ -44,7 +44,6 @@
#include "southbridge/amd/amd8111/early_smbus.c"
#include "southbridge/amd/amd8111/early_ctrl.c"
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)

View File

@@ -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

View File

@@ -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 */

View File

@@ -47,7 +47,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, IT8718F_SP1)

View File

@@ -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

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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 */

View File

@@ -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)

View File

@@ -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

View File

@@ -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 */

View File

@@ -46,7 +46,6 @@
#include <southbridge/amd/rs780/rs780.h>
#include <southbridge/amd/sb800/early_setup.c>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)

View File

@@ -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

View File

@@ -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 */

View File

@@ -45,7 +45,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, IT8718F_SP1)

View File

@@ -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

View File

@@ -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 */

View File

@@ -45,7 +45,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, IT8718F_SP1)

View File

@@ -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

View File

@@ -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 */

View File

@@ -48,7 +48,6 @@
#include <cbmem.h>
#include <southbridge/amd/rs780/rs780.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, IT8718F_SP1)

View File

@@ -0,0 +1,14 @@
#
# 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.
#
ramstage-y += get_bus_conf.c

View File

@@ -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

View File

@@ -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 */

View File

@@ -48,7 +48,6 @@
#include <cbmem.h>
#include <southbridge/amd/rs780/rs780.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, F71859_SP1)

View File

@@ -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

View File

@@ -16,7 +16,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 */

View File

@@ -49,7 +49,6 @@
#include <cbmem.h>
#include <southbridge/amd/rs780/rs780.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#if CONFIG_TTYS0_BASE == 0x2f8

View File

@@ -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

View File

@@ -15,7 +15,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 */

View File

@@ -44,7 +44,6 @@
#include <southbridge/amd/common/reset.h>
#include <southbridge/nvidia/mcp55/mcp55.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1)

View File

@@ -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

View File

@@ -15,7 +15,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 */

View File

@@ -45,7 +45,6 @@
#include <southbridge/nvidia/mcp55/mcp55.h> // for enable the FAN
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#include <southbridge/nvidia/mcp55/early_setup_ss.h>
#include "southbridge/nvidia/mcp55/early_setup_car.c"

View File

@@ -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

View File

@@ -15,7 +15,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 */

View File

@@ -44,7 +44,6 @@
#include <cbmem.h>
#include <southbridge/nvidia/mcp55/mcp55.h> // for enable the FAN
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#include <southbridge/nvidia/mcp55/early_setup_ss.h>
#include "southbridge/nvidia/mcp55/early_setup_car.c"

View File

@@ -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

View File

@@ -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 */

View File

@@ -47,7 +47,6 @@
#include <arch/early_variables.h>
#include <cbmem.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
void activate_spd_rom(const struct mem_controller *ctrl);

View File

@@ -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

View File

@@ -15,7 +15,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 */

View File

@@ -44,7 +44,6 @@
#include <cbmem.h>
#include <southbridge/nvidia/mcp55/mcp55.h>
#include "resourcemap.c"
#include "cpu/amd/quadcore/quadcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)

View File

@@ -1000,6 +1000,7 @@ void setup_resource_map_x_offset(const u32 *register_values, u32 max, u32
void setup_resource_map_x(const u32 *register_values, u32 max);
void setup_resource_map(const u32 *register_values, u32 max);
void setup_mb_resource_map(void);
/* reset_test.c */
u32 cpu_init_detected(u8 nodeid);