mb/raptor-cs/talos-2: add basic mainboard structure
Change-Id: I0c4f74c7b27c8bb5599d68305adf369ddc6fcc70 Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com> Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67063 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
parent
5fe9aa6ba9
commit
b566ce4aea
17
src/mainboard/raptor-cs/Kconfig
Normal file
17
src/mainboard/raptor-cs/Kconfig
Normal file
@ -0,0 +1,17 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
if VENDOR_RAPTOR_CS
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
|
||||
source "src/mainboard/raptor-cs/*/Kconfig.name"
|
||||
|
||||
endchoice
|
||||
|
||||
source "src/mainboard/raptor-cs/*/Kconfig"
|
||||
|
||||
config MAINBOARD_VENDOR
|
||||
default "Raptor Computing Systems"
|
||||
|
||||
endif # VENDOR_RAPTOR_CS
|
4
src/mainboard/raptor-cs/Kconfig.name
Normal file
4
src/mainboard/raptor-cs/Kconfig.name
Normal file
@ -0,0 +1,4 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
config VENDOR_RAPTOR_CS
|
||||
bool "Raptor Computing Systems"
|
37
src/mainboard/raptor-cs/talos-2/Kconfig
Normal file
37
src/mainboard/raptor-cs/talos-2/Kconfig
Normal file
@ -0,0 +1,37 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
if BOARD_RAPTOR_CS_TALOS_2
|
||||
|
||||
config BOARD_SPECIFIC_OPTIONS
|
||||
def_bool y
|
||||
select CPU_POWER9
|
||||
select SOC_IBM_POWER9
|
||||
select BOARD_ROMSIZE_KB_512
|
||||
select SUPERIO_ASPEED_AST2400
|
||||
select BOOT_DEVICE_NOT_SPI_FLASH
|
||||
select MISSING_BOARD_RESET
|
||||
select HAVE_DEBUG_RAM_SETUP
|
||||
|
||||
config MEMLAYOUT_LD_FILE
|
||||
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/memlayout.ld"
|
||||
|
||||
config MAINBOARD_DIR
|
||||
default "raptor-cs/talos-2"
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
default "Talos II"
|
||||
|
||||
config DIMM_MAX
|
||||
default 8
|
||||
|
||||
config DIMM_SPD_SIZE
|
||||
default 512
|
||||
|
||||
config MAX_CPUS
|
||||
default 1
|
||||
|
||||
config DRAM_SIZE_MB
|
||||
int
|
||||
default 32768
|
||||
|
||||
endif # BOARD_RAPTOR_CS_TALOS_2
|
4
src/mainboard/raptor-cs/talos-2/Kconfig.name
Normal file
4
src/mainboard/raptor-cs/talos-2/Kconfig.name
Normal file
@ -0,0 +1,4 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
config BOARD_RAPTOR_CS_TALOS_2
|
||||
bool "Talos II"
|
2
src/mainboard/raptor-cs/talos-2/board_info.txt
Normal file
2
src/mainboard/raptor-cs/talos-2/board_info.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Board name: Raptor CS Talos II
|
||||
Category: desktop
|
5
src/mainboard/raptor-cs/talos-2/devicetree.cb
Normal file
5
src/mainboard/raptor-cs/talos-2/devicetree.cb
Normal file
@ -0,0 +1,5 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
chip soc/ibm/power9
|
||||
device cpu_cluster 0 on end
|
||||
end
|
14
src/mainboard/raptor-cs/talos-2/mainboard.c
Normal file
14
src/mainboard/raptor-cs/talos-2/mainboard.c
Normal file
@ -0,0 +1,14 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
if (!dev)
|
||||
die("No dev0; die\n");
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
18
src/mainboard/raptor-cs/talos-2/memlayout.ld
Normal file
18
src/mainboard/raptor-cs/talos-2/memlayout.ld
Normal file
@ -0,0 +1,18 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <memlayout.h>
|
||||
|
||||
#include <arch/header.ld>
|
||||
|
||||
// TODO: fill in these blanks for Power9.
|
||||
SECTIONS
|
||||
{
|
||||
DRAM_START(0x0)
|
||||
BOOTBLOCK(0, 64K)
|
||||
ROMSTAGE(0x120000, 128K)
|
||||
STACK(0x140000, 0x3ff00)
|
||||
PRERAM_CBMEM_CONSOLE(0x180000, 8K)
|
||||
FMAP_CACHE(0x182000, 2K)
|
||||
CBFS_MCACHE(0x182800, 8K)
|
||||
RAMSTAGE(0x200000, 16M)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user