mb/system76/whl-u: Add Darter Pro 5 variant
The darp5 has several GPIO differences to the galp3-c, which are already accounted for in gpio.c. Change-Id: I951e86e53e9c47b9f3038927f44e505d37200c26 Signed-off-by: Jeremy Soller <jeremy@system76.com> Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51870 Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
79542fa36f
commit
9623f7bb1c
@@ -1,4 +1,4 @@
|
|||||||
if BOARD_SYSTEM76_GALP3_C
|
if BOARD_SYSTEM76_GALP3_C || BOARD_SYSTEM76_DARP5
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS
|
config BOARD_SPECIFIC_OPTIONS
|
||||||
def_bool y
|
def_bool y
|
||||||
@@ -6,6 +6,7 @@ config BOARD_SPECIFIC_OPTIONS
|
|||||||
select DRIVERS_I2C_HID
|
select DRIVERS_I2C_HID
|
||||||
select EC_SYSTEM76_EC
|
select EC_SYSTEM76_EC
|
||||||
select EC_SYSTEM76_EC_BAT_THRESHOLDS
|
select EC_SYSTEM76_EC_BAT_THRESHOLDS
|
||||||
|
select EC_SYSTEM76_EC_COLOR_KEYBOARD if BOARD_SYSTEM76_DARP5
|
||||||
select HAVE_ACPI_RESUME
|
select HAVE_ACPI_RESUME
|
||||||
select HAVE_ACPI_TABLES
|
select HAVE_ACPI_TABLES
|
||||||
select INTEL_GMA_HAVE_VBT
|
select INTEL_GMA_HAVE_VBT
|
||||||
@@ -27,6 +28,7 @@ config MAINBOARD_DIR
|
|||||||
config VARIANT_DIR
|
config VARIANT_DIR
|
||||||
string
|
string
|
||||||
default "galp3-c" if BOARD_SYSTEM76_GALP3_C
|
default "galp3-c" if BOARD_SYSTEM76_GALP3_C
|
||||||
|
default "darp5" if BOARD_SYSTEM76_DARP5
|
||||||
|
|
||||||
config OVERRIDE_DEVICETREE
|
config OVERRIDE_DEVICETREE
|
||||||
string
|
string
|
||||||
@@ -35,14 +37,17 @@ config OVERRIDE_DEVICETREE
|
|||||||
config MAINBOARD_PART_NUMBER
|
config MAINBOARD_PART_NUMBER
|
||||||
string
|
string
|
||||||
default "galp3-c" if BOARD_SYSTEM76_GALP3_C
|
default "galp3-c" if BOARD_SYSTEM76_GALP3_C
|
||||||
|
default "darp5" if BOARD_SYSTEM76_DARP5
|
||||||
|
|
||||||
config MAINBOARD_SMBIOS_PRODUCT_NAME
|
config MAINBOARD_SMBIOS_PRODUCT_NAME
|
||||||
string
|
string
|
||||||
default "Galago Pro" if BOARD_SYSTEM76_GALP3_C
|
default "Galago Pro" if BOARD_SYSTEM76_GALP3_C
|
||||||
|
default "Darter Pro" if BOARD_SYSTEM76_DARP5
|
||||||
|
|
||||||
config MAINBOARD_VERSION
|
config MAINBOARD_VERSION
|
||||||
string
|
string
|
||||||
default "galp3-c" if BOARD_SYSTEM76_GALP3_C
|
default "galp3-c" if BOARD_SYSTEM76_GALP3_C
|
||||||
|
default "darp5" if BOARD_SYSTEM76_DARP5
|
||||||
|
|
||||||
config CBFS_SIZE
|
config CBFS_SIZE
|
||||||
hex
|
hex
|
||||||
|
@@ -1,2 +1,5 @@
|
|||||||
config BOARD_SYSTEM76_GALP3_C
|
config BOARD_SYSTEM76_GALP3_C
|
||||||
bool "galp3-c"
|
bool "galp3-c"
|
||||||
|
|
||||||
|
config BOARD_SYSTEM76_DARP5
|
||||||
|
bool "darp5"
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
Board name: darp5
|
BIN
src/mainboard/system76/whl-u/variants/darp5/data.vbt
Normal file
BIN
src/mainboard/system76/whl-u/variants/darp5/data.vbt
Normal file
Binary file not shown.
35
src/mainboard/system76/whl-u/variants/darp5/hda_verb.c
Normal file
35
src/mainboard/system76/whl-u/variants/darp5/hda_verb.c
Normal file
@@ -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 */
|
||||||
|
0x15581325, /* Subsystem ID */
|
||||||
|
12, /* Number of entries */
|
||||||
|
AZALIA_SUBVENDOR(0, 0x15581325),
|
||||||
|
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;
|
15
src/mainboard/system76/whl-u/variants/darp5/overridetree.cb
Normal file
15
src/mainboard/system76/whl-u/variants/darp5/overridetree.cb
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
chip soc/intel/cannonlake
|
||||||
|
device domain 0 on
|
||||||
|
subsystemid 0x1558 0x1325 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
|
Reference in New Issue
Block a user