Rename {CPU|NB|SB}/amd/*_wrapper folders
This change renames the cpu/amd/agesa_wrapper, northbridge/ amd/agesa_wrapper, and southbridge/amd/cimx_wrapper folders to {cpu|NB}/amd/agesa and {SB}/amd/agesa to shorten and simplify the folder names. There is also a fix to vendorcode/amd/agesa/lib/amdlib.c to append "ull" to a trio of 64-bit hexadecimal constants to allow abuild to run successfully. Change-Id: I2455e0afb0361ad2e11da2b869ffacbd552cb715 Signed-off-by: Frank Vibrans <frank.vibrans@amd.com> Signed-off-by: efdesign98 <efdesign98@gmail.com> Reviewed-on: http://review.coreboot.org/51 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
This commit is contained in:
@ -22,4 +22,4 @@ source src/cpu/amd/model_lx/Kconfig
|
|||||||
|
|
||||||
source src/cpu/amd/sc520/Kconfig
|
source src/cpu/amd/sc520/Kconfig
|
||||||
|
|
||||||
source src/cpu/amd/agesa_wrapper/Kconfig
|
source src/cpu/amd/agesa/Kconfig
|
||||||
|
@ -14,5 +14,5 @@ subdirs-$(CONFIG_CPU_AMD_LX) += model_lx
|
|||||||
subdirs-$(CONFIG_CPU_AMD_SC520) += sc520
|
subdirs-$(CONFIG_CPU_AMD_SC520) += sc520
|
||||||
subdirs-$(CONFIG_CPU_AMD_SOCKET_S1G1) += socket_S1G1
|
subdirs-$(CONFIG_CPU_AMD_SOCKET_S1G1) += socket_S1G1
|
||||||
|
|
||||||
subdirs-$(CONFIG_AMD_AGESA) += agesa_wrapper
|
subdirs-$(CONFIG_AMD_AGESA) += agesa
|
||||||
subdirs-$(CONFIG_AMD_AGESA) += ../../vendorcode/amd/agesa
|
subdirs-$(CONFIG_AMD_AGESA) += ../../vendorcode/amd/agesa
|
||||||
|
@ -17,4 +17,4 @@
|
|||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
source src/cpu/amd/agesa_wrapper/family14/Kconfig
|
source src/cpu/amd/agesa/family14/Kconfig
|
@ -16,4 +16,4 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
subdirs-$(CONFIG_CPU_AMD_AGESA_WRAPPER_FAMILY14) += family14
|
subdirs-$(CONFIG_CPU_AMD_AGESA_FAMILY14) += family14
|
@ -17,58 +17,58 @@
|
|||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
config CPU_AMD_AGESA_WRAPPER_FAMILY14
|
config CPU_AMD_AGESA_FAMILY14
|
||||||
bool
|
bool
|
||||||
select PCI_IO_CFG_EXT
|
select PCI_IO_CFG_EXT
|
||||||
|
|
||||||
config CPU_ADDR_BITS
|
config CPU_ADDR_BITS
|
||||||
int
|
int
|
||||||
default 36
|
default 36
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config CPU_SOCKET_TYPE
|
config CPU_SOCKET_TYPE
|
||||||
hex
|
hex
|
||||||
default 0x10
|
default 0x10
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
# DDR2 and REG
|
# DDR2 and REG
|
||||||
config DIMM_SUPPORT
|
config DIMM_SUPPORT
|
||||||
hex
|
hex
|
||||||
default 0x0104
|
default 0x0104
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config EXT_RT_TBL_SUPPORT
|
config EXT_RT_TBL_SUPPORT
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config EXT_CONF_SUPPORT
|
config EXT_CONF_SUPPORT
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config CBB
|
config CBB
|
||||||
hex
|
hex
|
||||||
default 0x0
|
default 0x0
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config CDB
|
config CDB
|
||||||
hex
|
hex
|
||||||
default 0x18
|
default 0x18
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config XIP_ROM_BASE
|
config XIP_ROM_BASE
|
||||||
hex
|
hex
|
||||||
default 0xfff80000
|
default 0xfff80000
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config XIP_ROM_SIZE
|
config XIP_ROM_SIZE
|
||||||
hex
|
hex
|
||||||
default 0x80000
|
default 0x80000
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config HAVE_INIT_TIMER
|
config HAVE_INIT_TIMER
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
depends on CPU_AMD_AGESA_WRAPPER_FAMILY14
|
depends on CPU_AMD_AGESA_FAMILY14
|
||||||
|
|
@ -279,4 +279,4 @@ subdirs-y += ../../../x86/pae
|
|||||||
subdirs-y += ../../../x86/smm
|
subdirs-y += ../../../x86/smm
|
||||||
|
|
||||||
ramstage-y += apic_timer.c
|
ramstage-y += apic_timer.c
|
||||||
cpu_incs += $(src)/cpu/amd/agesa_wrapper/family14/cache_as_ram.inc
|
cpu_incs += $(src)/cpu/amd/agesa/family14/cache_as_ram.inc
|
@ -17,8 +17,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct northbridge_amd_agesa_wrapper_family14_config
|
extern struct chip_operations cpu_amd_agesa_family14_ops;
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
extern struct chip_operations northbridge_amd_agesa_wrapper_family14_ops;
|
struct cpu_amd_agesa_family14_config {
|
||||||
|
};
|
@ -20,6 +20,6 @@
|
|||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
struct chip_operations cpu_amd_agesa_wrapper_family14_ops = {
|
struct chip_operations cpu_amd_agesa_family14_ops = {
|
||||||
CHIP_NAME("AMD CPU Family 14h")
|
CHIP_NAME("AMD CPU Family 14h")
|
||||||
};
|
};
|
@ -9,7 +9,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||||||
select QRANK_DIMM_SUPPORT
|
select QRANK_DIMM_SUPPORT
|
||||||
select NORTHBRIDGE_AMD_AMDFAM10
|
select NORTHBRIDGE_AMD_AMDFAM10
|
||||||
select SOUTHBRIDGE_AMD_RS780
|
select SOUTHBRIDGE_AMD_RS780
|
||||||
select SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
select SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
select SUPERIO_WINBOND_W83627HF #COM1, COM2
|
select SUPERIO_WINBOND_W83627HF #COM1, COM2
|
||||||
#select SUPERIO_FINTEK_F81216AD #COM3, COM4
|
#select SUPERIO_FINTEK_F81216AD #COM3, COM4
|
||||||
select HAVE_BUS_CONFIG
|
select HAVE_BUS_CONFIG
|
||||||
|
@ -34,7 +34,7 @@ chip northbridge/amd/amdfam10/root_complex
|
|||||||
register "gfx_pcie_config" = "3" # 1x8 GFX on Lanes 8-15
|
register "gfx_pcie_config" = "3" # 1x8 GFX on Lanes 8-15
|
||||||
register "gfx_ddi_config" = "1" # Lanes 0-3 DDI_SL
|
register "gfx_ddi_config" = "1" # Lanes 0-3 DDI_SL
|
||||||
end
|
end
|
||||||
chip southbridge/amd/cimx_wrapper/sb800 # it is under NB/SB Link, but on the same pci bus
|
chip southbridge/amd/cimx/sb800 # it is under NB/SB Link, but on the same pci bus
|
||||||
device pci 11.0 on end # SATA
|
device pci 11.0 on end # SATA
|
||||||
device pci 12.0 on end # USB
|
device pci 12.0 on end # USB
|
||||||
device pci 12.2 on end # USB
|
device pci 12.2 on end # USB
|
||||||
@ -112,7 +112,7 @@ chip northbridge/amd/amdfam10/root_complex
|
|||||||
#register "gpp_configuration" = "3" #2:1:1:0
|
#register "gpp_configuration" = "3" #2:1:1:0
|
||||||
register "gpp_configuration" = "4" #1:1:1:1
|
register "gpp_configuration" = "4" #1:1:1:1
|
||||||
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
||||||
end #southbridge/amd/cimx_wrapper/sb800
|
end #southbridge/amd/cimx/sb800
|
||||||
end # device pci 18.0
|
end # device pci 18.0
|
||||||
|
|
||||||
device pci 18.1 on end
|
device pci 18.1 on end
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
#include "southbridge/amd/rs780/early_setup.c"
|
#include "southbridge/amd/rs780/early_setup.c"
|
||||||
#include <SbEarly.h>
|
#include <SbEarly.h>
|
||||||
#include <SBPLATFORM.h> /* SB OEM constants */
|
#include <SBPLATFORM.h> /* SB OEM constants */
|
||||||
#include <southbridge/amd/cimx_wrapper/sb800/smbus.h>
|
#include <southbridge/amd/cimx/sb800/smbus.h>
|
||||||
#include "northbridge/amd/amdfam10/debug.c"
|
#include "northbridge/amd/amdfam10/debug.c"
|
||||||
|
|
||||||
static void activate_spd_rom(const struct mem_controller *ctrl)
|
static void activate_spd_rom(const struct mem_controller *ctrl)
|
||||||
|
@ -24,10 +24,10 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||||||
select ARCH_X86
|
select ARCH_X86
|
||||||
select DIMM_DDR3
|
select DIMM_DDR3
|
||||||
select DIMM_UNREGISTERED
|
select DIMM_UNREGISTERED
|
||||||
select CPU_AMD_AGESA_WRAPPER_FAMILY14
|
select CPU_AMD_AGESA_FAMILY14
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14_ROOT_COMPLEX
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14_ROOT_COMPLEX
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||||
select SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
select SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
select SUPERIO_SMSC_KBC1100
|
select SUPERIO_SMSC_KBC1100
|
||||||
select BOARD_HAS_FADT
|
select BOARD_HAS_FADT
|
||||||
select HAVE_BUS_CONFIG
|
select HAVE_BUS_CONFIG
|
||||||
|
@ -16,17 +16,17 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
chip northbridge/amd/agesa_wrapper/family14/root_complex
|
chip northbridge/amd/agesa/family14/root_complex
|
||||||
device lapic_cluster 0 on
|
device lapic_cluster 0 on
|
||||||
chip cpu/amd/agesa_wrapper/family14
|
chip cpu/amd/agesa/family14
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device pci_domain 0 on
|
device pci_domain 0 on
|
||||||
subsystemid 0x1022 0x1510 inherit
|
subsystemid 0x1022 0x1510 inherit
|
||||||
chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
|
chip northbridge/amd/agesa/family14 # CPU side of HT root complex
|
||||||
# device pci 18.0 on # northbridge
|
# device pci 18.0 on # northbridge
|
||||||
chip northbridge/amd/agesa_wrapper/family14 # PCI side of HT root complex
|
chip northbridge/amd/agesa/family14 # PCI side of HT root complex
|
||||||
device pci 0.0 on end # Root Complex
|
device pci 0.0 on end # Root Complex
|
||||||
device pci 1.0 on end # Internal Graphics P2P bridge
|
device pci 1.0 on end # Internal Graphics P2P bridge
|
||||||
device pci 1.1 on end # Internal Multimedia
|
device pci 1.1 on end # Internal Multimedia
|
||||||
@ -35,9 +35,9 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 6.0 on end # PCIE P2P bridge 0x9606
|
device pci 6.0 on end # PCIE P2P bridge 0x9606
|
||||||
device pci 7.0 off end # PCIE P2P bridge 0x9607
|
device pci 7.0 off end # PCIE P2P bridge 0x9607
|
||||||
device pci 8.0 off end # NB/SB Link P2P bridge
|
device pci 8.0 off end # NB/SB Link P2P bridge
|
||||||
end # agesa_wrapper northbridge
|
end # agesa northbridge
|
||||||
|
|
||||||
chip southbridge/amd/cimx_wrapper/sb800 # it is under NB/SB Link, but on the same pri bus
|
chip southbridge/amd/cimx/sb800 # it is under NB/SB Link, but on the same pri bus
|
||||||
device pci 11.0 on end # SATA
|
device pci 11.0 on end # SATA
|
||||||
device pci 12.0 on end # USB
|
device pci 12.0 on end # USB
|
||||||
device pci 12.1 on end # USB
|
device pci 12.1 on end # USB
|
||||||
@ -73,7 +73,7 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 15.3 on end # PCIe PortD
|
device pci 15.3 on end # PCIe PortD
|
||||||
register "gpp_configuration" = "4" #1:1:1:1
|
register "gpp_configuration" = "4" #1:1:1:1
|
||||||
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
||||||
end #southbridge/amd/cimx_wrapper/sb800
|
end #southbridge/amd/cimx/sb800
|
||||||
# end # device pci 18.0
|
# end # device pci 18.0
|
||||||
# These seem unnecessary
|
# These seem unnecessary
|
||||||
device pci 18.0 on end
|
device pci 18.0 on end
|
||||||
@ -85,7 +85,7 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 18.5 on end
|
device pci 18.5 on end
|
||||||
device pci 18.6 on end
|
device pci 18.6 on end
|
||||||
device pci 18.7 on end
|
device pci 18.7 on end
|
||||||
end #chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
|
end #chip northbridge/amd/agesa/family14 # CPU side of HT root complex
|
||||||
end #pci_domain
|
end #pci_domain
|
||||||
end #northbridge/amd/agesa_wrapper/family14/root_complex
|
end #northbridge/amd/agesa/family14/root_complex
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ if BOARD_AMD_PERSIMMON
|
|||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
select ARCH_X86
|
select ARCH_X86
|
||||||
select CPU_AMD_AGESA_WRAPPER_FAMILY14
|
select CPU_AMD_AGESA_FAMILY14
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14_ROOT_COMPLEX
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14_ROOT_COMPLEX
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||||
select SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
select SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
select SUPERIO_FINTEK_F81865F
|
select SUPERIO_FINTEK_F81865F
|
||||||
select BOARD_HAS_FADT
|
select BOARD_HAS_FADT
|
||||||
select HAVE_BUS_CONFIG
|
select HAVE_BUS_CONFIG
|
||||||
|
@ -16,17 +16,17 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
chip northbridge/amd/agesa_wrapper/family14/root_complex
|
chip northbridge/amd/agesa/family14/root_complex
|
||||||
device lapic_cluster 0 on
|
device lapic_cluster 0 on
|
||||||
chip cpu/amd/agesa_wrapper/family14
|
chip cpu/amd/agesa/family14
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device pci_domain 0 on
|
device pci_domain 0 on
|
||||||
subsystemid 0x1022 0x1510 inherit
|
subsystemid 0x1022 0x1510 inherit
|
||||||
chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
|
chip northbridge/amd/agesa/family14 # CPU side of HT root complex
|
||||||
# device pci 18.0 on # northbridge
|
# device pci 18.0 on # northbridge
|
||||||
chip northbridge/amd/agesa_wrapper/family14 # PCI side of HT root complex
|
chip northbridge/amd/agesa/family14 # PCI side of HT root complex
|
||||||
device pci 0.0 on end # Root Complex
|
device pci 0.0 on end # Root Complex
|
||||||
device pci 1.0 on end # Internal Graphics P2P bridge 0x9804
|
device pci 1.0 on end # Internal Graphics P2P bridge 0x9804
|
||||||
device pci 1.1 on end # Internal Multimedia
|
device pci 1.1 on end # Internal Multimedia
|
||||||
@ -35,9 +35,9 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 6.0 off end # PCIE P2P bridge 0x9606
|
device pci 6.0 off end # PCIE P2P bridge 0x9606
|
||||||
device pci 7.0 off end # PCIE P2P bridge 0x9607
|
device pci 7.0 off end # PCIE P2P bridge 0x9607
|
||||||
device pci 8.0 off end # NB/SB Link P2P bridge
|
device pci 8.0 off end # NB/SB Link P2P bridge
|
||||||
end # agesa_wrapper northbridge
|
end # agesa northbridge
|
||||||
|
|
||||||
chip southbridge/amd/cimx_wrapper/sb800 # it is under NB/SB Link, but on the same pri bus
|
chip southbridge/amd/cimx/sb800 # it is under NB/SB Link, but on the same pri bus
|
||||||
device pci 11.0 on end # SATA
|
device pci 11.0 on end # SATA
|
||||||
device pci 12.0 on end # USB
|
device pci 12.0 on end # USB
|
||||||
device pci 12.1 on end # USB
|
device pci 12.1 on end # USB
|
||||||
@ -89,7 +89,7 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 15.3 off end # PCIe PortD
|
device pci 15.3 off end # PCIe PortD
|
||||||
register "gpp_configuration" = "0" #4:0:0:0 (really need to disable all 4 somehow)
|
register "gpp_configuration" = "0" #4:0:0:0 (really need to disable all 4 somehow)
|
||||||
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
||||||
end #southbridge/amd/cimx_wrapper/sb800
|
end #southbridge/amd/cimx/sb800
|
||||||
# end # device pci 18.0
|
# end # device pci 18.0
|
||||||
# These seem unnecessary
|
# These seem unnecessary
|
||||||
device pci 18.0 on end
|
device pci 18.0 on end
|
||||||
@ -101,7 +101,7 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 18.5 on end
|
device pci 18.5 on end
|
||||||
device pci 18.6 on end
|
device pci 18.6 on end
|
||||||
device pci 18.7 on end
|
device pci 18.7 on end
|
||||||
end #chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
|
end #chip northbridge/amd/agesa/family14 # CPU side of HT root complex
|
||||||
end #pci_domain
|
end #pci_domain
|
||||||
end #northbridge/amd/agesa_wrapper/family14/root_complex
|
end #northbridge/amd/agesa/family14/root_complex
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ if BOARD_ASROCK_E350M1
|
|||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
select ARCH_X86
|
select ARCH_X86
|
||||||
select CPU_AMD_AGESA_WRAPPER_FAMILY14
|
select CPU_AMD_AGESA_FAMILY14
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14_ROOT_COMPLEX
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14_ROOT_COMPLEX
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||||
select SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
select SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
select SUPERIO_WINBOND_W83627HF
|
select SUPERIO_WINBOND_W83627HF
|
||||||
select BOARD_HAS_FADT
|
select BOARD_HAS_FADT
|
||||||
select HAVE_BUS_CONFIG
|
select HAVE_BUS_CONFIG
|
||||||
|
@ -16,17 +16,17 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
chip northbridge/amd/agesa_wrapper/family14/root_complex
|
chip northbridge/amd/agesa/family14/root_complex
|
||||||
device lapic_cluster 0 on
|
device lapic_cluster 0 on
|
||||||
chip cpu/amd/agesa_wrapper/family14
|
chip cpu/amd/agesa/family14
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device pci_domain 0 on
|
device pci_domain 0 on
|
||||||
subsystemid 0x1022 0x1510 inherit
|
subsystemid 0x1022 0x1510 inherit
|
||||||
chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
|
chip northbridge/amd/agesa/family14 # CPU side of HT root complex
|
||||||
# device pci 18.0 on # northbridge
|
# device pci 18.0 on # northbridge
|
||||||
chip northbridge/amd/agesa_wrapper/family14 # PCI side of HT root complex
|
chip northbridge/amd/agesa/family14 # PCI side of HT root complex
|
||||||
device pci 0.0 on end # Root Complex
|
device pci 0.0 on end # Root Complex
|
||||||
device pci 1.0 on end # Internal Graphics P2P bridge 0x9804
|
device pci 1.0 on end # Internal Graphics P2P bridge 0x9804
|
||||||
device pci 1.1 on end # Internal Multimedia
|
device pci 1.1 on end # Internal Multimedia
|
||||||
@ -35,9 +35,9 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 6.0 off end # PCIE P2P bridge 0x9606
|
device pci 6.0 off end # PCIE P2P bridge 0x9606
|
||||||
device pci 7.0 off end # PCIE P2P bridge 0x9607
|
device pci 7.0 off end # PCIE P2P bridge 0x9607
|
||||||
device pci 8.0 off end # NB/SB Link P2P bridge
|
device pci 8.0 off end # NB/SB Link P2P bridge
|
||||||
end # agesa_wrapper northbridge
|
end # agesa northbridge
|
||||||
|
|
||||||
chip southbridge/amd/cimx_wrapper/sb800 # it is under NB/SB Link, but on the same pri bus
|
chip southbridge/amd/cimx/sb800 # it is under NB/SB Link, but on the same pri bus
|
||||||
device pci 11.0 on end # SATA
|
device pci 11.0 on end # SATA
|
||||||
device pci 12.0 on end # USB
|
device pci 12.0 on end # USB
|
||||||
device pci 12.1 on end # USB
|
device pci 12.1 on end # USB
|
||||||
@ -113,7 +113,7 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
register "gpp_configuration" = "4"
|
register "gpp_configuration" = "4"
|
||||||
|
|
||||||
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
register "boot_switch_sata_ide" = "0" # 0: boot from SATA. 1: IDE
|
||||||
end #southbridge/amd/cimx_wrapper/sb800
|
end #southbridge/amd/cimx/sb800
|
||||||
# end # device pci 18.0
|
# end # device pci 18.0
|
||||||
# These seem unnecessary
|
# These seem unnecessary
|
||||||
device pci 18.0 on end
|
device pci 18.0 on end
|
||||||
@ -125,7 +125,7 @@ chip northbridge/amd/agesa_wrapper/family14/root_complex
|
|||||||
device pci 18.5 on end
|
device pci 18.5 on end
|
||||||
device pci 18.6 on end
|
device pci 18.6 on end
|
||||||
device pci 18.7 on end
|
device pci 18.7 on end
|
||||||
end #chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
|
end #chip northbridge/amd/agesa/family14 # CPU side of HT root complex
|
||||||
end #pci_domain
|
end #pci_domain
|
||||||
end #northbridge/amd/agesa_wrapper/family14/root_complex
|
end #northbridge/amd/agesa/family14/root_complex
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ source src/northbridge/amd/gx1/Kconfig
|
|||||||
source src/northbridge/amd/gx2/Kconfig
|
source src/northbridge/amd/gx2/Kconfig
|
||||||
source src/northbridge/amd/amdfam10/Kconfig
|
source src/northbridge/amd/amdfam10/Kconfig
|
||||||
source src/northbridge/amd/lx/Kconfig
|
source src/northbridge/amd/lx/Kconfig
|
||||||
source src/northbridge/amd/agesa_wrapper/Kconfig
|
source src/northbridge/amd/agesa/Kconfig
|
||||||
menu "HyperTransport setup"
|
menu "HyperTransport setup"
|
||||||
#could be implemented for K8 (NORTHBRIDGE_AMD_AMDK8)
|
#could be implemented for K8 (NORTHBRIDGE_AMD_AMDK8)
|
||||||
depends on (NORTHBRIDGE_AMD_AMDFAM10) && EXPERT
|
depends on (NORTHBRIDGE_AMD_AMDFAM10) && EXPERT
|
||||||
|
@ -4,5 +4,5 @@ subdirs-$(CONFIG_NORTHBRIDGE_AMD_GX1) += gx1
|
|||||||
subdirs-$(CONFIG_NORTHBRIDGE_AMD_GX2) += gx2
|
subdirs-$(CONFIG_NORTHBRIDGE_AMD_GX2) += gx2
|
||||||
subdirs-$(CONFIG_NORTHBRIDGE_AMD_LX) += lx
|
subdirs-$(CONFIG_NORTHBRIDGE_AMD_LX) += lx
|
||||||
|
|
||||||
subdirs-$(CONFIG_AMD_AGESA) += agesa_wrapper
|
subdirs-$(CONFIG_AMD_AGESA) += agesa
|
||||||
subdirs-$(CONFIG_AMD_AGESA) += ../../vendorcode/amd/agesa
|
subdirs-$(CONFIG_AMD_AGESA) += ../../vendorcode/amd/agesa
|
||||||
|
@ -17,4 +17,5 @@
|
|||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
source src/southbridge/amd/cimx_wrapper/sb800/Kconfig
|
source src/northbridge/amd/agesa/family14/Kconfig
|
||||||
|
|
19
src/northbridge/amd/agesa/Makefile.inc
Normal file
19
src/northbridge/amd/agesa/Makefile.inc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# This file is part of the coreboot project.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2011 Advanced Micro Devices, Inc.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
#
|
||||||
|
subdirs-$(CONFIG_NORTHBRIDGE_AMD_AGESA_FAMILY14) += family14
|
@ -16,12 +16,12 @@
|
|||||||
## along with this program; if not, write to the Free Software
|
## along with this program; if not, write to the Free Software
|
||||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
##
|
##
|
||||||
config NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14
|
config NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||||
bool
|
bool
|
||||||
select MMCONF_SUPPORT
|
select MMCONF_SUPPORT
|
||||||
select NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14_ROOT_COMPLEX
|
select NORTHBRIDGE_AMD_AGESA_FAMILY14_ROOT_COMPLEX
|
||||||
|
|
||||||
if NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14
|
if NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||||
|
|
||||||
config HW_MEM_HOLE_SIZEK
|
config HW_MEM_HOLE_SIZEK
|
||||||
hex
|
hex
|
||||||
@ -41,6 +41,6 @@ config MMCONF_BUS_NUMBER
|
|||||||
|
|
||||||
config BOOTBLOCK_NORTHBRIDGE_INIT
|
config BOOTBLOCK_NORTHBRIDGE_INIT
|
||||||
string
|
string
|
||||||
default "northbridge/amd/agesa_wrapper/family14/bootblock.c"
|
default "northbridge/amd/agesa/family14/bootblock.c"
|
||||||
|
|
||||||
endif
|
endif
|
@ -17,7 +17,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern struct chip_operations cpu_amd_agesa_wrapper_family14_ops;
|
struct northbridge_amd_agesa_family14_config
|
||||||
|
{
|
||||||
struct cpu_amd_agesa_wrapper_family14_config {
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern struct chip_operations northbridge_amd_agesa_family14_ops;
|
@ -826,7 +826,7 @@ static const struct pci_driver northbridge_driver __pci_driver = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct chip_operations northbridge_amd_agesa_wrapper_family14_ops = {
|
struct chip_operations northbridge_amd_agesa_family14_ops = {
|
||||||
CHIP_NAME("AMD Family 14h Northbridge")
|
CHIP_NAME("AMD Family 14h Northbridge")
|
||||||
.enable_dev = 0,
|
.enable_dev = 0,
|
||||||
};
|
};
|
||||||
@ -865,7 +865,7 @@ static void root_complex_enable_dev(struct device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct chip_operations northbridge_amd_agesa_wrapper_family14_root_complex_ops = {
|
struct chip_operations northbridge_amd_agesa_family14_root_complex_ops = {
|
||||||
CHIP_NAME("AMD Family 14h Root Complex")
|
CHIP_NAME("AMD Family 14h Root Complex")
|
||||||
.enable_dev = root_complex_enable_dev,
|
.enable_dev = root_complex_enable_dev,
|
||||||
};
|
};
|
@ -17,10 +17,10 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef NORTHBRIDGE_AMD_AGESA_WRAPPER_FAM14H_H
|
#ifndef NORTHBRIDGE_AMD_AGESA_FAM14H_H
|
||||||
#define NORTHBRIDGE_AMD_AGESA_WRAPPER_FAM14H_H
|
#define NORTHBRIDGE_AMD_AGESA_FAM14H_H
|
||||||
|
|
||||||
static struct device_operations pci_domain_ops;
|
static struct device_operations pci_domain_ops;
|
||||||
static struct device_operations cpu_bus_ops;
|
static struct device_operations cpu_bus_ops;
|
||||||
|
|
||||||
#endif /* NORTHBRIDGE_AMD_AGESA_WRAPPER_FAM14H_H */
|
#endif /* NORTHBRIDGE_AMD_AGESA_FAM14H_H */
|
2
src/northbridge/amd/agesa/family14/root_complex/Kconfig
Normal file
2
src/northbridge/amd/agesa/family14/root_complex/Kconfig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
config NORTHBRIDGE_AMD_AGESA_FAMILY14_ROOT_COMPLEX
|
||||||
|
bool
|
24
src/northbridge/amd/agesa/family14/root_complex/chip.h
Normal file
24
src/northbridge/amd/agesa/family14/root_complex/chip.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2011 Advanced Micro Devices, Inc.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct northbridge_amd_agesa_family14_root_complex_config
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
extern struct chip_operations northbridge_amd_agesa_family14_root_complex_ops;
|
@ -1,19 +0,0 @@
|
|||||||
#
|
|
||||||
# This file is part of the coreboot project.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Advanced Micro Devices, Inc.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
subdirs-$(CONFIG_NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14) += family14
|
|
@ -1,2 +0,0 @@
|
|||||||
config NORTHBRIDGE_AMD_AGESA_WRAPPER_FAMILY14_ROOT_COMPLEX
|
|
||||||
bool
|
|
@ -1,24 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the coreboot project.
|
|
||||||
*
|
|
||||||
* Copyright (C) 2011 Advanced Micro Devices, Inc.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
struct northbridge_amd_agesa_wrapper_family14_root_complex_config
|
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
extern struct chip_operations northbridge_amd_agesa_wrapper_family14_root_complex_ops;
|
|
@ -11,5 +11,5 @@ source src/southbridge/amd/sb600/Kconfig
|
|||||||
source src/southbridge/amd/rs780/Kconfig
|
source src/southbridge/amd/rs780/Kconfig
|
||||||
source src/southbridge/amd/sb700/Kconfig
|
source src/southbridge/amd/sb700/Kconfig
|
||||||
source src/southbridge/amd/sb800/Kconfig
|
source src/southbridge/amd/sb800/Kconfig
|
||||||
source src/southbridge/amd/cimx_wrapper/Kconfig
|
source src/southbridge/amd/cimx/Kconfig
|
||||||
source src/southbridge/amd/sr5650/Kconfig
|
source src/southbridge/amd/sr5650/Kconfig
|
||||||
|
@ -12,5 +12,5 @@ subdirs-$(CONFIG_SOUTHBRIDGE_AMD_SP5100) += sb700
|
|||||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5530) += cs5530
|
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5530) += cs5530
|
||||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5535) += cs5535
|
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5535) += cs5535
|
||||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5536) += cs5536
|
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5536) += cs5536
|
||||||
subdirs-$(CONFIG_AMD_CIMX_SB800) += cimx_wrapper
|
subdirs-$(CONFIG_AMD_CIMX_SB800) += cimx
|
||||||
|
|
||||||
|
@ -17,5 +17,4 @@
|
|||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
source src/northbridge/amd/agesa_wrapper/family14/Kconfig
|
source src/southbridge/amd/cimx/sb800/Kconfig
|
||||||
|
|
19
src/southbridge/amd/cimx/Makefile.inc
Normal file
19
src/southbridge/amd/cimx/Makefile.inc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# This file is part of the coreboot project.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2011 Advanced Micro Devices, Inc.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
#
|
||||||
|
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB800) += sb800
|
@ -17,13 +17,13 @@
|
|||||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
##
|
##
|
||||||
|
|
||||||
config SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
config SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
bool
|
bool
|
||||||
select IOAPIC
|
select IOAPIC
|
||||||
|
|
||||||
if SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
if SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
config BOOTBLOCK_SOUTHBRIDGE_INIT
|
config BOOTBLOCK_SOUTHBRIDGE_INIT
|
||||||
string
|
string
|
||||||
default "southbridge/amd/cimx_wrapper/sb800/bootblock.c"
|
default "southbridge/amd/cimx/sb800/bootblock.c"
|
||||||
endif #SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800
|
endif #SOUTHBRIDGE_AMD_CIMX_SB800
|
||||||
|
|
@ -17,10 +17,10 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CIMX_WRAPPER_SB800_CHIP_H_
|
#ifndef _CIMX_SB800_CHIP_H_
|
||||||
#define _CIMX_WRAPPER_SB800_CHIP_H_
|
#define _CIMX_SB800_CHIP_H_
|
||||||
|
|
||||||
extern struct chip_operations southbridge_amd_cimx_wrapper_sb800_ops;
|
extern struct chip_operations southbridge_amd_cimx_sb800_ops;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* configuration set in mainboard/devicetree.cb
|
* configuration set in mainboard/devicetree.cb
|
||||||
@ -33,10 +33,10 @@ extern struct chip_operations southbridge_amd_cimx_wrapper_sb800_ops;
|
|||||||
* 3(GPP_CFGMODE_X2110) -PortA Lanes[1:0], PortB Lane2, PortC Lane3
|
* 3(GPP_CFGMODE_X2110) -PortA Lanes[1:0], PortB Lane2, PortC Lane3
|
||||||
* 4(GPP_CFGMODE_X1111) -PortA Lanes0, PortB Lane1, PortC Lane2, PortD Lane3
|
* 4(GPP_CFGMODE_X1111) -PortA Lanes0, PortB Lane1, PortC Lane2, PortD Lane3
|
||||||
*/
|
*/
|
||||||
struct southbridge_amd_cimx_wrapper_sb800_config
|
struct southbridge_amd_cimx_sb800_config
|
||||||
{
|
{
|
||||||
u32 boot_switch_sata_ide : 1;
|
u32 boot_switch_sata_ide : 1;
|
||||||
u8 gpp_configuration;
|
u8 gpp_configuration;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _CIMX_WRAPPER_SB800_CHIP_H_ */
|
#endif /* _CIMX_SB800_CHIP_H_ */
|
@ -20,6 +20,6 @@
|
|||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
struct chip_operations southbridge_amd_cimx_wrapper_sb800_ops = {
|
struct chip_operations southbridge_amd_cimx_sb800_ops = {
|
||||||
CHIP_NAME("AMD South Bridge SB800")
|
CHIP_NAME("AMD South Bridge SB800")
|
||||||
};
|
};
|
@ -27,7 +27,7 @@
|
|||||||
#include "lpc.h" /* lpc_read_resources */
|
#include "lpc.h" /* lpc_read_resources */
|
||||||
#include "SBPLATFORM.h" /* Platfrom Specific Definitions */
|
#include "SBPLATFORM.h" /* Platfrom Specific Definitions */
|
||||||
#include "cfg.h" /* sb800 Cimx configuration */
|
#include "cfg.h" /* sb800 Cimx configuration */
|
||||||
#include "chip.h" /* struct southbridge_amd_cimx_wrapper_sb800_config */
|
#include "chip.h" /* struct southbridge_amd_cimx_sb800_config */
|
||||||
|
|
||||||
|
|
||||||
/*implement in mainboard.c*/
|
/*implement in mainboard.c*/
|
||||||
@ -316,8 +316,8 @@ static const struct pci_driver PORTD_driver __pci_driver = {
|
|||||||
*/
|
*/
|
||||||
static void sb800_enable(device_t dev)
|
static void sb800_enable(device_t dev)
|
||||||
{
|
{
|
||||||
struct southbridge_amd_cimx_wrapper_sb800_config *sb_chip =
|
struct southbridge_amd_cimx_sb800_config *sb_chip =
|
||||||
(struct southbridge_amd_cimx_wrapper_sb800_config *)(dev->chip_info);
|
(struct southbridge_amd_cimx_sb800_config *)(dev->chip_info);
|
||||||
|
|
||||||
sb800_cimx_config(sb_config);
|
sb800_cimx_config(sb_config);
|
||||||
printk(BIOS_DEBUG, "sb800_enable() ");
|
printk(BIOS_DEBUG, "sb800_enable() ");
|
||||||
@ -439,7 +439,7 @@ static void sb800_enable(device_t dev)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations southbridge_amd_cimx_wrapper_sb800_ops = {
|
struct chip_operations southbridge_amd_cimx_sb800_ops = {
|
||||||
CHIP_NAME("ATI SB800")
|
CHIP_NAME("ATI SB800")
|
||||||
.enable_dev = sb800_enable,
|
.enable_dev = sb800_enable,
|
||||||
};
|
};
|
@ -1,19 +0,0 @@
|
|||||||
#
|
|
||||||
# This file is part of the coreboot project.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Advanced Micro Devices, Inc.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_WRAPPER_SB800) += sb800
|
|
@ -765,7 +765,7 @@ LibAmdPciRead (
|
|||||||
LibAmdIoRead (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
LibAmdIoRead (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
||||||
} else {
|
} else {
|
||||||
LibAmdMsrRead (NB_CFG, &RMWritePrevious, StdHeader);
|
LibAmdMsrRead (NB_CFG, &RMWritePrevious, StdHeader);
|
||||||
RMWrite = RMWritePrevious | 0x0000400000000000;
|
RMWrite = RMWritePrevious | 0x0000400000000000ull;
|
||||||
LibAmdMsrWrite (NB_CFG, &RMWrite, StdHeader);
|
LibAmdMsrWrite (NB_CFG, &RMWrite, StdHeader);
|
||||||
LibAmdIoWrite (AccessWidth32, IOCF8, &LegacyPciAccess, StdHeader);
|
LibAmdIoWrite (AccessWidth32, IOCF8, &LegacyPciAccess, StdHeader);
|
||||||
LibAmdIoRead (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
LibAmdIoRead (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
||||||
@ -814,7 +814,7 @@ LibAmdPciWrite (
|
|||||||
LibAmdIoWrite (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
LibAmdIoWrite (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
||||||
} else {
|
} else {
|
||||||
LibAmdMsrRead (NB_CFG, &RMWritePrevious, StdHeader);
|
LibAmdMsrRead (NB_CFG, &RMWritePrevious, StdHeader);
|
||||||
RMWrite = RMWritePrevious | 0x0000400000000000;
|
RMWrite = RMWritePrevious | 0x0000400000000000ull;
|
||||||
LibAmdMsrWrite (NB_CFG, &RMWrite, StdHeader);
|
LibAmdMsrWrite (NB_CFG, &RMWrite, StdHeader);
|
||||||
LibAmdIoWrite (AccessWidth32, IOCF8, &LegacyPciAccess, StdHeader);
|
LibAmdIoWrite (AccessWidth32, IOCF8, &LegacyPciAccess, StdHeader);
|
||||||
LibAmdIoWrite (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
LibAmdIoWrite (AccessWidth, IOCFC + (UINT16) (PciAddress.Address.Register & 0x3), Value, StdHeader);
|
||||||
@ -918,7 +918,7 @@ GetPciMmioAddress (
|
|||||||
MmioIsEnabled = FALSE;
|
MmioIsEnabled = FALSE;
|
||||||
LibAmdMsrRead (MSR_MMIO_Cfg_Base, &MsrReg, StdHeader);
|
LibAmdMsrRead (MSR_MMIO_Cfg_Base, &MsrReg, StdHeader);
|
||||||
if ((MsrReg & BIT0) != 0) {
|
if ((MsrReg & BIT0) != 0) {
|
||||||
*MmioAddress = MsrReg & 0xFFFFFFFFFFF00000;
|
*MmioAddress = MsrReg & 0xFFFFFFFFFFF00000ull;
|
||||||
EncodedSize = (UINT32) ((MsrReg & 0x3C) >> 2);
|
EncodedSize = (UINT32) ((MsrReg & 0x3C) >> 2);
|
||||||
*MmioSize = ((1 << EncodedSize) * 0x100000);
|
*MmioSize = ((1 << EncodedSize) * 0x100000);
|
||||||
MmioIsEnabled = TRUE;
|
MmioIsEnabled = TRUE;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
CIMX_ROOT = $(src)/vendorcode/amd/cimx
|
CIMX_ROOT = $(src)/vendorcode/amd/cimx
|
||||||
|
|
||||||
CIMX_INC = -I$(src)/mainboard/$(MAINBOARDDIR)
|
CIMX_INC = -I$(src)/mainboard/$(MAINBOARDDIR)
|
||||||
CIMX_INC += -I$(src)/southbridge/amd/cimx_wrapper/sb800
|
CIMX_INC += -I$(src)/southbridge/amd/cimx/sb800
|
||||||
CIMX_INC += -I$(CIMX_ROOT)/sb800
|
CIMX_INC += -I$(CIMX_ROOT)/sb800
|
||||||
|
|
||||||
romstage-y += ACPILIB.c
|
romstage-y += ACPILIB.c
|
||||||
|
Reference in New Issue
Block a user