summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/skyrim/Kconfig35
-rw-r--r--src/mainboard/google/skyrim/Kconfig.name5
-rw-r--r--src/mainboard/google/skyrim/Makefile.inc11
-rw-r--r--src/mainboard/google/skyrim/board_info.txt6
-rw-r--r--src/mainboard/google/skyrim/bootblock.c9
-rw-r--r--src/mainboard/google/skyrim/chromeos.fmd34
-rw-r--r--src/mainboard/google/skyrim/dsdt.asl16
-rw-r--r--src/mainboard/google/skyrim/mainboard.c18
-rw-r--r--src/mainboard/google/skyrim/port_descriptors.c11
-rw-r--r--src/mainboard/google/skyrim/variants/baseboard/devicetree.cb5
-rw-r--r--src/mainboard/google/skyrim/variants/baseboard/include/baseboard/baseboard.h6
-rw-r--r--src/mainboard/google/skyrim/variants/baseboard/include/baseboard/variants.h6
12 files changed, 162 insertions, 0 deletions
diff --git a/src/mainboard/google/skyrim/Kconfig b/src/mainboard/google/skyrim/Kconfig
new file mode 100644
index 0000000000..619ac6443d
--- /dev/null
+++ b/src/mainboard/google/skyrim/Kconfig
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+config BOARD_GOOGLE_BASEBOARD_SKYRIM
+ def_bool n
+
+if BOARD_GOOGLE_BASEBOARD_SKYRIM
+
+config AMD_FWM_POSITION_INDEX
+ int
+ default 3
+ help
+ TODO: might need to be adapted for better placement of files in cbfs
+
+config BOARD_SPECIFIC_OPTIONS
+ def_bool y
+ select BOARD_ROMSIZE_KB_16384
+ select SOC_AMD_SABRINA
+
+config DEVICETREE
+ default "variants/baseboard/devicetree.cb"
+
+config FMDFILE
+ default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
+
+config MAINBOARD_DIR
+ default "google/skyrim"
+
+config MAINBOARD_FAMILY
+ string
+ default "Google_Skyrim"
+
+config MAINBOARD_PART_NUMBER
+ default "Skyrim" if BOARD_GOOGLE_SKYRIM
+
+endif # BOARD_GOOGLE_BASEBOARD_SKYRIM
diff --git a/src/mainboard/google/skyrim/Kconfig.name b/src/mainboard/google/skyrim/Kconfig.name
new file mode 100644
index 0000000000..a36235c7be
--- /dev/null
+++ b/src/mainboard/google/skyrim/Kconfig.name
@@ -0,0 +1,5 @@
+comment "Skyrim"
+
+config BOARD_GOOGLE_SKYRIM
+ bool "-> Skyrim"
+ select BOARD_GOOGLE_BASEBOARD_SKYRIM
diff --git a/src/mainboard/google/skyrim/Makefile.inc b/src/mainboard/google/skyrim/Makefile.inc
new file mode 100644
index 0000000000..df2762dfea
--- /dev/null
+++ b/src/mainboard/google/skyrim/Makefile.inc
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+bootblock-y += bootblock.c
+
+romstage-y += port_descriptors.c
+
+ramstage-y += mainboard.c
+
+subdirs-y += variants/baseboard
+
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include
diff --git a/src/mainboard/google/skyrim/board_info.txt b/src/mainboard/google/skyrim/board_info.txt
new file mode 100644
index 0000000000..9588901dd3
--- /dev/null
+++ b/src/mainboard/google/skyrim/board_info.txt
@@ -0,0 +1,6 @@
+Vendor name: Google
+Board name: Skyrim
+Category: laptop
+ROM protocol: SPI
+ROM socketed: n
+Flashrom support: y
diff --git a/src/mainboard/google/skyrim/bootblock.c b/src/mainboard/google/skyrim/bootblock.c
new file mode 100644
index 0000000000..dd4c1516b1
--- /dev/null
+++ b/src/mainboard/google/skyrim/bootblock.c
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <bootblock_common.h>
+#include <baseboard/variants.h>
+
+void bootblock_mainboard_early_init(void)
+{
+ /* TODO: Perform mainboard initialization */
+}
diff --git a/src/mainboard/google/skyrim/chromeos.fmd b/src/mainboard/google/skyrim/chromeos.fmd
new file mode 100644
index 0000000000..a6dbc2c2ae
--- /dev/null
+++ b/src/mainboard/google/skyrim/chromeos.fmd
@@ -0,0 +1,34 @@
+FLASH@0xFF000000 16M {
+ SI_BIOS {
+ RW_MRC_CACHE(PRESERVE) 64K
+ RW_SECTION_A 3M {
+ VBLOCK_A 8K
+ FW_MAIN_A(CBFS)
+ RW_FWID_A 256
+ }
+ RW_SECTION_B 3M {
+ VBLOCK_B 8K
+ FW_MAIN_B(CBFS)
+ RW_FWID_B 256
+ }
+ RW_ELOG(PRESERVE) 4K
+ RW_SHARED 16K {
+ SHARED_DATA 8K
+ VBLOCK_DEV 8K
+ }
+ RW_VPD(PRESERVE) 8K
+ RW_NVRAM(PRESERVE) 20K
+ SMMSTORE(PRESERVE) 4K
+ RW_LEGACY(CBFS)
+ WP_RO@8M 8M {
+ RO_VPD(PRESERVE) 16K
+ RO_GSCVD 8K
+ RO_SECTION {
+ FMAP 2K
+ RO_FRID 64
+ GBB@4K 12K
+ COREBOOT(CBFS)
+ }
+ }
+ }
+}
diff --git a/src/mainboard/google/skyrim/dsdt.asl b/src/mainboard/google/skyrim/dsdt.asl
new file mode 100644
index 0000000000..80a9c1f17e
--- /dev/null
+++ b/src/mainboard/google/skyrim/dsdt.asl
@@ -0,0 +1,16 @@
+/* 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>
+ #include <soc.asl>
+}
diff --git a/src/mainboard/google/skyrim/mainboard.c b/src/mainboard/google/skyrim/mainboard.c
new file mode 100644
index 0000000000..3dc2c41d69
--- /dev/null
+++ b/src/mainboard/google/skyrim/mainboard.c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <device/device.h>
+
+static void mainboard_init(void *chip_info)
+{
+ /* TODO: Perform mainboard initialization */
+}
+
+static void mainboard_enable(struct device *dev)
+{
+ /* TODO: Enable mainboard */
+}
+
+struct chip_operations mainboard_ops = {
+ .init = mainboard_init,
+ .enable_dev = mainboard_enable,
+};
diff --git a/src/mainboard/google/skyrim/port_descriptors.c b/src/mainboard/google/skyrim/port_descriptors.c
new file mode 100644
index 0000000000..56bd9f32bf
--- /dev/null
+++ b/src/mainboard/google/skyrim/port_descriptors.c
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/platform_descriptors.h>
+#include <types.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)
+{
+ /* TODO: Initialize DXIO and DDI descriptors */
+}
diff --git a/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb b/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb
new file mode 100644
index 0000000000..ed77b0b181
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+chip soc/amd/sabrina
+ device domain 0 on
+ end # domain
+end # chip soc/amd/sabrina
diff --git a/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/baseboard.h b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/baseboard.h
new file mode 100644
index 0000000000..b94afac4bf
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/baseboard.h
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef __BASEBOARD_GPIO_H__
+#define __BASEBOARD_GPIO_H__
+
+#endif /* __BASEBOARD_GPIO_H__ */
diff --git a/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/variants.h
new file mode 100644
index 0000000000..927af2f913
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/variants.h
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef __BASEBOARD_VARIANTS_H__
+#define __BASEBOARD_VARIANTS_H__
+
+#endif /* __BASEBOARD_VARIANTS_H__ */