mb/framework: Push initial port of azalea (Framework 13 AMD 7040)
This is a minimal framework that allows the build to compile. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: Ief4b5c75471a2ef5bedaaee9b4737510c2826b6e Reviewed-on: https://review.coreboot.org/c/coreboot/+/81978 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
committed by
Felix Singer
parent
acfdf0d43c
commit
c96201acb1
17
src/mainboard/framework/Kconfig
Normal file
17
src/mainboard/framework/Kconfig
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
if VENDOR_FRAMEWORK
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Mainboard model"
|
||||||
|
|
||||||
|
source "src/mainboard/framework/*/Kconfig.name"
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
source "src/mainboard/framework/*/Kconfig"
|
||||||
|
|
||||||
|
config MAINBOARD_VENDOR
|
||||||
|
default "Framework"
|
||||||
|
|
||||||
|
endif # VENDOR_FRAMEWORK
|
4
src/mainboard/framework/Kconfig.name
Normal file
4
src/mainboard/framework/Kconfig.name
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
## SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
config VENDOR_FRAMEWORK
|
||||||
|
bool "Framework"
|
18
src/mainboard/framework/azalea/Kconfig
Normal file
18
src/mainboard/framework/azalea/Kconfig
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
config BOARD_FRAMEWORK_AZALEA
|
||||||
|
select BOARD_ROMSIZE_KB_32768
|
||||||
|
select SOC_AMD_PHOENIX_FSP
|
||||||
|
|
||||||
|
if BOARD_FRAMEWORK_AZALEA
|
||||||
|
|
||||||
|
config MAINBOARD_DIR
|
||||||
|
default "framework/azalea"
|
||||||
|
|
||||||
|
config MAINBOARD_PART_NUMBER
|
||||||
|
default "Azalea"
|
||||||
|
|
||||||
|
config FMDFILE
|
||||||
|
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/coreboot.fmd"
|
||||||
|
|
||||||
|
endif
|
4
src/mainboard/framework/azalea/Kconfig.name
Normal file
4
src/mainboard/framework/azalea/Kconfig.name
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
config BOARD_FRAMEWORK_AZALEA
|
||||||
|
bool "Azalea (Framework 13 AMD 7040)"
|
8
src/mainboard/framework/azalea/Makefile.mk
Normal file
8
src/mainboard/framework/azalea/Makefile.mk
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
bootblock-y += bootblock.c
|
||||||
|
|
||||||
|
romstage-y += port_descriptors.c
|
||||||
|
|
||||||
|
ramstage-y += mainboard.c
|
||||||
|
ramstage-y += port_descriptors.c
|
6
src/mainboard/framework/azalea/board_info.txt
Normal file
6
src/mainboard/framework/azalea/board_info.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Vendor name: Framework
|
||||||
|
Board name: Azalea (13" AMD Ryzen 7040)
|
||||||
|
Category: laptop
|
||||||
|
ROM protocol: SPI
|
||||||
|
ROM socketed: n
|
||||||
|
Flashrom support: n
|
7
src/mainboard/framework/azalea/bootblock.c
Normal file
7
src/mainboard/framework/azalea/bootblock.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <bootblock_common.h>
|
||||||
|
|
||||||
|
void bootblock_mainboard_early_init(void)
|
||||||
|
{
|
||||||
|
}
|
12
src/mainboard/framework/azalea/coreboot.fmd
Normal file
12
src/mainboard/framework/azalea/coreboot.fmd
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FLASH@0xFF000000 32M {
|
||||||
|
BIOS_PAGE_1 16M {
|
||||||
|
FMAP 4K
|
||||||
|
COREBOOT(CBFS)
|
||||||
|
SMMSTORE(PRESERVE) 64K
|
||||||
|
RW_MRC_CACHE 256K
|
||||||
|
RECOVERY_MRC_CACHE(PRESERVE) 256K
|
||||||
|
}
|
||||||
|
BIOS_PAGE_2 16M {
|
||||||
|
UNUSED
|
||||||
|
}
|
||||||
|
}
|
8
src/mainboard/framework/azalea/devicetree.cb
Normal file
8
src/mainboard/framework/azalea/devicetree.cb
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
chip soc/amd/phoenix
|
||||||
|
|
||||||
|
device domain 0 on
|
||||||
|
end # domain
|
||||||
|
|
||||||
|
end # chip soc/amd/phoenix
|
15
src/mainboard/framework/azalea/dsdt.asl
Normal file
15
src/mainboard/framework/azalea/dsdt.asl
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <acpi/acpi.h>
|
||||||
|
|
||||||
|
DefinitionBlock (
|
||||||
|
"dsdt.aml",
|
||||||
|
"DSDT",
|
||||||
|
ACPI_DSDT_REV_2,
|
||||||
|
OEM_ID,
|
||||||
|
ACPI_TABLE_CREATOR,
|
||||||
|
0x00010001 /* OEM Revision */
|
||||||
|
)
|
||||||
|
{
|
||||||
|
#include <acpi/dsdt_top.asl>
|
||||||
|
}
|
30
src/mainboard/framework/azalea/mainboard.c
Normal file
30
src/mainboard/framework/azalea/mainboard.c
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <amdblocks/amd_pci_util.h>
|
||||||
|
#include <device/device.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This controls the device -> IRQ routing.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
static const struct fch_irq_routing fch_irq_map[] = {
|
||||||
|
};
|
||||||
|
|
||||||
|
const struct fch_irq_routing *mb_get_fch_irq_mapping(size_t *length)
|
||||||
|
{
|
||||||
|
*length = ARRAY_SIZE(fch_irq_map);
|
||||||
|
return fch_irq_map;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void mainboard_init(void *chip_info)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static void mainboard_enable(struct device *dev)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
struct chip_operations mainboard_ops = {
|
||||||
|
.init = mainboard_init,
|
||||||
|
.enable_dev = mainboard_enable,
|
||||||
|
};
|
9
src/mainboard/framework/azalea/port_descriptors.c
Normal file
9
src/mainboard/framework/azalea/port_descriptors.c
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <soc/platform_descriptors.h>
|
||||||
|
|
||||||
|
void mainboard_get_dxio_ddi_descriptors(
|
||||||
|
const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num,
|
||||||
|
const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num)
|
||||||
|
{
|
||||||
|
}
|
1
src/mainboard/framework/azalea/romstage.c
Normal file
1
src/mainboard/framework/azalea/romstage.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
1
src/mainboard/framework/azalea/smihandler.c
Normal file
1
src/mainboard/framework/azalea/smihandler.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
Reference in New Issue
Block a user