diff options
author | Tim Crawford <tcrawford@system76.com> | 2021-04-02 13:49:55 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-20 12:11:50 +0000 |
commit | 800754fea3c0219b8d9f908ada18201231ab52e5 (patch) | |
tree | 9d7dd49c8a10cc0a1688057dd85966eade0b8006 /src/mainboard/system76/cml-u | |
parent | f8ba8980fd1f4d4b3f5869e8574c7e94f9f43952 (diff) |
mb/system76/cml-u: Add Darter Pro 6 as a variant
Change-Id: I9ba7d2af3c9c298fda2b2997d52546cc2f702a82
Signed-off-by: Jeremy Soller <jeremy@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52063
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/system76/cml-u')
-rw-r--r-- | src/mainboard/system76/cml-u/Kconfig | 7 | ||||
-rw-r--r-- | src/mainboard/system76/cml-u/Kconfig.name | 3 | ||||
-rw-r--r-- | src/mainboard/system76/cml-u/variants/darp6/board_info.txt | 1 | ||||
-rw-r--r-- | src/mainboard/system76/cml-u/variants/darp6/data.vbt | bin | 0 -> 4608 bytes | |||
-rw-r--r-- | src/mainboard/system76/cml-u/variants/darp6/hda_verb.c | 35 | ||||
-rw-r--r-- | src/mainboard/system76/cml-u/variants/darp6/overridetree.cb | 15 |
6 files changed, 60 insertions, 1 deletions
diff --git a/src/mainboard/system76/cml-u/Kconfig b/src/mainboard/system76/cml-u/Kconfig index 87559025be..5bc5a4401c 100644 --- a/src/mainboard/system76/cml-u/Kconfig +++ b/src/mainboard/system76/cml-u/Kconfig @@ -1,4 +1,4 @@ -if BOARD_SYSTEM76_GALP4 +if BOARD_SYSTEM76_GALP4 || BOARD_SYSTEM76_DARP6 config BOARD_SPECIFIC_OPTIONS def_bool y @@ -6,6 +6,7 @@ config BOARD_SPECIFIC_OPTIONS select DRIVERS_I2C_HID select EC_SYSTEM76_EC select EC_SYSTEM76_EC_BAT_THRESHOLDS + select EC_SYSTEM76_EC_COLOR_KEYBOARD if BOARD_SYSTEM76_DARP6 select HAVE_ACPI_RESUME select HAVE_ACPI_TABLES select HAVE_CMOS_DEFAULT @@ -27,18 +28,22 @@ config MAINBOARD_DIR config VARIANT_DIR default "galp4" if BOARD_SYSTEM76_GALP4 + default "darp6" if BOARD_SYSTEM76_DARP6 config OVERRIDE_DEVICETREE default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" config MAINBOARD_PART_NUMBER default "galp4" if BOARD_SYSTEM76_GALP4 + default "darp6" if BOARD_SYSTEM76_DARP6 config MAINBOARD_SMBIOS_PRODUCT_NAME default "Galago Pro" if BOARD_SYSTEM76_GALP4 + default "Darter Pro" if BOARD_SYSTEM76_DARP6 config MAINBOARD_VERSION default "galp4" if BOARD_SYSTEM76_GALP4 + default "darp6" if BOARD_SYSTEM76_DARP6 config CBFS_SIZE default 0xA00000 diff --git a/src/mainboard/system76/cml-u/Kconfig.name b/src/mainboard/system76/cml-u/Kconfig.name index 4bd0279cce..30478cac8c 100644 --- a/src/mainboard/system76/cml-u/Kconfig.name +++ b/src/mainboard/system76/cml-u/Kconfig.name @@ -1,2 +1,5 @@ config BOARD_SYSTEM76_GALP4 bool "galp4" + +config BOARD_SYSTEM76_DARP6 + bool "darp6" diff --git a/src/mainboard/system76/cml-u/variants/darp6/board_info.txt b/src/mainboard/system76/cml-u/variants/darp6/board_info.txt new file mode 100644 index 0000000000..918b290286 --- /dev/null +++ b/src/mainboard/system76/cml-u/variants/darp6/board_info.txt @@ -0,0 +1 @@ +Board name: darp6 diff --git a/src/mainboard/system76/cml-u/variants/darp6/data.vbt b/src/mainboard/system76/cml-u/variants/darp6/data.vbt Binary files differnew file mode 100644 index 0000000000..f14d8073e9 --- /dev/null +++ b/src/mainboard/system76/cml-u/variants/darp6/data.vbt diff --git a/src/mainboard/system76/cml-u/variants/darp6/hda_verb.c b/src/mainboard/system76/cml-u/variants/darp6/hda_verb.c new file mode 100644 index 0000000000..09d835726e --- /dev/null +++ b/src/mainboard/system76/cml-u/variants/darp6/hda_verb.c @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/azalia_device.h> + +const u32 cim_verb_data[] = { + /* Realtek ALC293 */ + 0x10ec0293, /* Vendor ID */ + 0x15581404, /* Subsystem ID */ + 12, /* Number of entries */ + AZALIA_SUBVENDOR(0, 0x15581404), + AZALIA_PIN_CFG(0, 0x12, 0x90a60140), + AZALIA_PIN_CFG(0, 0x13, 0x40000000), + AZALIA_PIN_CFG(0, 0x14, 0x90170110), + AZALIA_PIN_CFG(0, 0x15, 0x02211020), + AZALIA_PIN_CFG(0, 0x16, 0x411111f0), + AZALIA_PIN_CFG(0, 0x18, 0x02a11050), + AZALIA_PIN_CFG(0, 0x19, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1a, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1b, 0x411111f0), + AZALIA_PIN_CFG(0, 0x1d, 0x41738205), + AZALIA_PIN_CFG(0, 0x1e, 0x02451130), + + /* Intel GPU HDMI */ + 0x8086280b, /* Vendor ID */ + 0x80860101, /* Subsystem ID */ + 4, /* Number of entries */ + AZALIA_SUBVENDOR(2, 0x80860101), + AZALIA_PIN_CFG(2, 0x05, 0x18560010), + AZALIA_PIN_CFG(2, 0x06, 0x18560010), + AZALIA_PIN_CFG(2, 0x07, 0x18560010), +}; + +const u32 pc_beep_verbs[] = {}; + +AZALIA_ARRAY_SIZES; diff --git a/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb b/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb new file mode 100644 index 0000000000..1723cea480 --- /dev/null +++ b/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb @@ -0,0 +1,15 @@ +chip soc/intel/cannonlake + device domain 0 on + subsystemid 0x1558 0x1404 inherit + device pci 15.0 on + chip drivers/i2c/hid + register "generic.hid" = ""PNP0C50"" + register "generic.desc" = ""Synaptics Touchpad"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)" + register "generic.probed" = "1" + register "hid_desc_reg_offset" = "0x20" + device i2c 2c on end + end + end # I2C #0 + end +end |