summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/kbl-u/variants
diff options
context:
space:
mode:
authorFelix Singer <migy@darmstadt.ccc.de>2018-09-17 01:26:51 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-11-20 11:57:11 +0000
commitd959a201148dc753fcd7ba1034b78075bf779410 (patch)
treee40ba3abda8af13a5480c9c34035d90696b0b423 /src/mainboard/clevo/kbl-u/variants
parent3622c0bf10ef273c7b530879d1a1af738d65ae66 (diff)
mb/clevo/kbl-u: Add Clevo N130WU/N131WU
Working: - TianoCore - NVMe, SATA3 - USB2, USB3 - Thunderbolt - Graphics (GOP and libgfxinit) - Sound - Webcam - WLAN, LAN, Bluetooth, LTE - Keyboard, touchpad - TPM - flashrom support; reading / flashing from Linux - ACPI S3 WIP: - Documentation Not working: - EC ACPI (e.g. Fn keys, battery and power information) Boots Arch Linux (Linux 5.8.12) successfully. Change-Id: I364f5849ef88f43b85efbd7a635a27e54d08c513 Signed-off-by: Felix Singer <felixsinger@posteo.net> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/28640 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/clevo/kbl-u/variants')
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/board_info.txt1
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/data.vbtbin0 -> 6144 bytes
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/devicetree.cb166
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/fmds/vboot-ro.fmd32
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/gma-mainboard.ads21
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c503
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c17
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/hda_verb.c34
8 files changed, 774 insertions, 0 deletions
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/board_info.txt b/src/mainboard/clevo/kbl-u/variants/n13xwu/board_info.txt
new file mode 100644
index 0000000000..30f8ce6e3f
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/board_info.txt
@@ -0,0 +1 @@
+Board name: N130WU / N131WU
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/data.vbt b/src/mainboard/clevo/kbl-u/variants/n13xwu/data.vbt
new file mode 100644
index 0000000000..f88aef4c04
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/data.vbt
Binary files differ
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/devicetree.cb b/src/mainboard/clevo/kbl-u/variants/n13xwu/devicetree.cb
new file mode 100644
index 0000000000..55c5a69b52
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/devicetree.cb
@@ -0,0 +1,166 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+chip soc/intel/skylake
+ register "gpu_pp_up_delay_ms" = "200" # T3
+ register "gpu_pp_down_delay_ms" = " 0" # T10
+ register "gpu_pp_cycle_delay_ms" = "500" # T12
+ register "gpu_pp_backlight_on_delay_ms" = " 50" # T7
+ register "gpu_pp_backlight_off_delay_ms" = " 0" # T9
+
+ register "gpu_pch_backlight_pwm_hz" = "200"
+
+ # IGD Displays
+ register "gfx" = "GMA_STATIC_DISPLAYS(0)"
+
+ # FSP Configuration
+ register "SkipExtGfxScan" = "1"
+ register "SaGv" = "SaGv_Enabled"
+ register "eist_enable" = "1"
+
+ register "PmConfigSlpS3MinAssert" = "2" # 50ms
+ register "PmConfigSlpS4MinAssert" = "1" # 1s
+ register "PmConfigSlpSusMinAssert" = "3" # 500ms
+ register "PmConfigSlpAMinAssert" = "3" # 2s
+
+ # Send an extra VR mailbox command for the PS4 exit issue
+ register "SendVrMbxCmd" = "2"
+
+ register "power_limits_config" = "{
+ .tdp_pl1_override = 20,
+ .tdp_pl2_override = 30,
+ }"
+
+ register "common_soc_config" = "{
+ .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
+ }"
+
+ register "SerialIoDevMode" = "{
+ [PchSerialIoIndexUart2] = PchSerialIoSkipInit, // LPSS UART
+ }"
+
+ device cpu_cluster 0 on
+ device lapic 0 on end
+ end
+ device domain 0 on
+ subsystemid 0x1558 0x1313 inherit
+ device pci 00.0 on end # Host Bridge
+ device pci 02.0 on end # Integrated Graphics Device
+ device pci 04.0 on end # SA thermal subsystem
+ device pci 05.0 off end # Imaging Unit
+ device pci 08.0 on end # Gaussian Mixture Model
+ device pci 13.0 off end # Sensor Hub
+ device pci 14.0 on # USB xHCI
+ register "SsicPortEnable" = "0"
+ # USB2
+ register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A, right
+ register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # 3G / LTE
+ register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C, right
+ register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
+ register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth
+ register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Type-A, left
+ register "usb2_ports[7]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C, right
+ # USB3
+ register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A, right
+ register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # 4G
+ register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type C, right
+ register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A, left
+ end
+ device pci 14.1 off end # USB xDCI (OTG)
+ device pci 14.2 on end # Thermal Subsystem
+ device pci 14.3 off end # Camera
+ device pci 15.0 off end # I2C0
+ device pci 15.1 off end # I2C1
+ device pci 15.2 off end # I2C2
+ device pci 15.3 off end # I2C3
+ device pci 16.0 on # Management Engine Interface 1
+ register "HeciEnabled" = "1"
+ end
+ device pci 16.1 off end # Management Engine Interface 2
+ device pci 16.2 off end # Management Engine IDE-R
+ device pci 16.3 off end # Management Engine KT Redirection
+ device pci 16.4 off end # Management Engine Interface 3
+ device pci 17.0 on # SATA
+ register "SataMode" = "KBLFSP_SATA_MODE_AHCI"
+ register "SataSalpSupport" = "0"
+ # Ports
+ register "SataPortsEnable[0]" = "1"
+ register "SataPortsEnable[2]" = "1"
+ register "SataPortsDevSlp[2]" = "1"
+ end
+ device pci 19.0 on end # UART 2
+ device pci 19.1 off end # I2C5
+ device pci 19.2 off end # I2C4
+ device pci 1c.0 on # PCI Express Port 1
+ device pci 00.0 on end # x4 TBT
+ register "PcieRpEnable[0]" = "1"
+ register "PcieRpClkReqSupport[0]" = "1"
+ register "PcieRpClkReqNumber[0]" = "4"
+ register "PcieRpClkSrcNumber[0]" = "4"
+ register "PcieRpHotPlug[0]" = "1"
+ register "PcieRpLtrEnable[0]" = "1"
+ smbios_slot_desc "SlotTypePciExpressGen3X4" "SlotLengthOther" "Thunderbolt/Type-C" "SlotDataBusWidth4X"
+ end
+ device pci 1c.1 off end # PCI Express Port 2
+ device pci 1c.2 off end # PCI Express Port 3
+ device pci 1c.3 off end # PCI Express Port 4
+ device pci 1c.4 on # PCI Express Port 5
+ device pci 00.0 on end # x1 LAN
+ register "PcieRpEnable[4]" = "1"
+ register "PcieRpClkReqSupport[4]" = "1"
+ register "PcieRpClkReqNumber[4]" = "3"
+ register "PcieRpClkSrcNumber[4]" = "3"
+ register "PcieRpLtrEnable[4]" = "1"
+ end
+ device pci 1c.5 on # PCI Express Port 6
+ device pci 00.0 on end # x1 WLAN
+ register "PcieRpEnable[5]" = "1"
+ register "PcieRpClkReqSupport[5]" = "1"
+ register "PcieRpClkReqNumber[5]" = "2"
+ register "PcieRpClkSrcNumber[5]" = "2"
+ register "PcieRpLtrEnable[5]" = "1"
+ smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther" "M.2/A/E 2230 (J_WLAN1)" "SlotDataBusWidth1X"
+ end
+ device pci 1c.6 off end # PCI Express Port 7
+ device pci 1c.7 off end # PCI Express Port 8
+ device pci 1d.0 on # PCI Express Port 9
+ device pci 00.0 on end # x4 M.2/M (J_SSD1)
+ register "PcieRpEnable[8]" = "1"
+ register "PcieRpClkReqSupport[8]" = "1"
+ register "PcieRpClkReqNumber[8]" = "5"
+ register "PcieRpClkSrcNumber[8]" = "5"
+ register "PcieRpLtrEnable[8]" = "1"
+ smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD1)" "SlotDataBusWidth4X"
+ end
+ device pci 1d.1 off end # PCI Express Port 10
+ device pci 1d.2 off end # PCI Express Port 11
+ device pci 1d.3 off end # PCI Express Port 12
+ device pci 1e.0 off end # UART 0
+ device pci 1e.1 off end # UART 1
+ device pci 1e.2 off end # GSPI 0
+ device pci 1e.3 off end # GSPI 1
+ device pci 1e.4 off end # eMMC
+ device pci 1e.5 off end # SDIO
+ device pci 1e.6 off end # SDXC
+ device pci 1f.0 on # LPC Interface
+ register "gen1_dec" = "0x000c0681"
+ register "gen2_dec" = "0x000c1641"
+ register "gen3_dec" = "0x000c0081"
+ register "gen4_dec" = "0x00040069"
+ register "serirq_mode" = "SERIRQ_CONTINUOUS"
+ chip drivers/pc80/tpm
+ device pnp 0c31.0 on end
+ end
+ end
+ device pci 1f.1 hidden end # P2SB
+ device pci 1f.2 on # Power Management Controller
+ register "gpe0_dw0" = "GPP_C"
+ register "gpe0_dw1" = "GPP_D"
+ register "gpe0_dw2" = "GPP_E"
+ end
+ device pci 1f.3 on end # Intel HDA
+ device pci 1f.4 on end # SMBus
+ device pci 1f.5 on end # PCH SPI
+ device pci 1f.6 off end # GbE
+ device pci 1f.7 off end # Trace Hub
+ end
+end
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/fmds/vboot-ro.fmd b/src/mainboard/clevo/kbl-u/variants/n13xwu/fmds/vboot-ro.fmd
new file mode 100644
index 0000000000..f53cdf4e47
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/fmds/vboot-ro.fmd
@@ -0,0 +1,32 @@
+FLASH 8M {
+ SI_ALL@0x0 0x200000 {
+ SI_DESC@0x0 0x1000
+ SI_ME@0x1000 0x1ff000
+ }
+ SI_BIOS@0x200000 0x600000 {
+ MISC_RW@0x0 0x2d000 {
+ UNIFIED_MRC_CACHE@0x0 0x21000 {
+ RECOVERY_MRC_CACHE@0x0 0x10000
+ RW_MRC_CACHE@0x10000 0x10000
+ RW_VAR_MRC_CACHE@0x20000 0x1000
+ }
+ RW_SHARED@0x21000 0x4000 {
+ SHARED_DATA@0x0 0x2000
+ VBLOCK_DEV@0x2000 0x2000
+ }
+ RW_VPD(PRESERVE)@0x25000 0x2000
+ RW_NVRAM(PRESERVE)@0x27000 0x5000
+ FPF_STATUS@0x2c000 0x1000
+ }
+ WP_RO@0x2d000 0x5d3000 {
+ FMAP@0x0 0x800
+ RO_VPD(PRESERVE)@0x800 0x4000
+ RO_SECTION@0x4800 0x5ce800 {
+ RO_FRID@0x0 0x40
+ RO_FRID_PAD@0x40 0x7c0
+ GBB@0x800 0x40000
+ COREBOOT(CBFS)@0x40800 0x58e000
+ }
+ }
+ }
+}
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/gma-mainboard.ads b/src/mainboard/clevo/kbl-u/variants/n13xwu/gma-mainboard.ads
new file mode 100644
index 0000000000..38abb7aae9
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/gma-mainboard.ads
@@ -0,0 +1,21 @@
+-- SPDX-License-Identifier: GPL-2.0-or-later
+
+with HW.GFX.GMA;
+with HW.GFX.GMA.Display_Probing;
+
+use HW.GFX.GMA;
+use HW.GFX.GMA.Display_Probing;
+
+private package GMA.Mainboard is
+
+ ports : constant Port_List :=
+ (eDP,
+ DP1,
+ DP2,
+ DP3,
+ HDMI1,
+ HDMI2,
+ HDMI3,
+ others => Disabled);
+
+end GMA.Mainboard;
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c
new file mode 100644
index 0000000000..e7aadcccfc
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c
@@ -0,0 +1,503 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <mainboard/gpio.h>
+#include <soc/gpio.h>
+
+static const struct pad_config gpio_table[] = {
+ // RCIN#
+ _PAD_CFG_STRUCT(GPP_A0, 0x44000502, 0x0),
+
+ // LAD0
+ _PAD_CFG_STRUCT(GPP_A1, 0x44000402, 0x0),
+
+ // LAD1
+ _PAD_CFG_STRUCT(GPP_A2, 0x44000402, 0x0),
+
+ // LAD2
+ _PAD_CFG_STRUCT(GPP_A3, 0x44000402, 0x0),
+
+ // LAD3
+ _PAD_CFG_STRUCT(GPP_A4, 0x44000402, 0x0),
+
+ // LFRAME#
+ _PAD_CFG_STRUCT(GPP_A5, 0x44000600, 0x0),
+
+ // SERIRQ
+ _PAD_CFG_STRUCT(GPP_A6, 0x44000402, 0x0),
+
+ // PIRQA#
+ _PAD_CFG_STRUCT(GPP_A7, 0x44000102, 0x0),
+
+ // CLKRUN#
+ _PAD_CFG_STRUCT(GPP_A8, 0x44000700, 0x0),
+
+ // CLKOUT_LPC0
+ _PAD_CFG_STRUCT(GPP_A9, 0x44000600, 0x0),
+
+ // CLKOUT_LPC1
+ _PAD_CFG_STRUCT(GPP_A10, 0x44000600, 0x1000),
+
+ // PME#
+ _PAD_CFG_STRUCT(GPP_A11, 0x44000200, 0x0),
+
+ // BM_BUSY#
+ _PAD_CFG_STRUCT(GPP_A12, 0x44000200, 0x0),
+
+ // SUSWARN#/SUSPWRDNACK
+ _PAD_CFG_STRUCT(GPP_A13, 0x44000200, 0x0),
+
+ // SUS_STAT#/ESPI_RESET#
+ _PAD_CFG_STRUCT(GPP_A14, 0x44000600, 0x0),
+
+ // SUS_ACK#
+ _PAD_CFG_STRUCT(GPP_A15, 0x44000502, 0x0),
+
+ // SD_1P8_SEL
+ _PAD_CFG_STRUCT(GPP_A16, 0x44000200, 0x0),
+
+ // SD_PWR_EN#
+ _PAD_CFG_STRUCT(GPP_A17, 0x44000200, 0x0),
+
+ // ISH_GP0
+ _PAD_CFG_STRUCT(GPP_A18, 0x44000201, 0x0),
+
+ // ISH_GP1
+ _PAD_CFG_STRUCT(GPP_A19, 0x44000603, 0x0),
+
+ // ISH_GP2
+ _PAD_CFG_STRUCT(GPP_A20, 0x44000200, 0x0),
+
+ // ISH_GP3
+ _PAD_CFG_STRUCT(GPP_A21, 0x84000200, 0x1000),
+
+ // ISH_GP4
+ _PAD_CFG_STRUCT(GPP_A22, 0x4000200, 0x0),
+
+ // ISH_GP5
+ _PAD_CFG_STRUCT(GPP_A23, 0x4000200, 0x0),
+
+ // CORE_VID0
+ _PAD_CFG_STRUCT(GPP_B0, 0x44000700, 0x0),
+
+ // CORE_VID1
+ _PAD_CFG_STRUCT(GPP_B1, 0x44000700, 0x0),
+
+ // VRALERT#
+ _PAD_CFG_STRUCT(GPP_B2, 0x44000200, 0x0),
+
+ // CPU_GP2
+ _PAD_CFG_STRUCT(GPP_B3, 0x44000200, 0x0),
+
+ // CPU_GP3
+ _PAD_CFG_STRUCT(GPP_B4, 0x44000200, 0x0),
+
+ // SRCCLKREQ0#
+ _PAD_CFG_STRUCT(GPP_B5, 0x44000200, 0x0),
+
+ // SRCCLKREQ1#
+ _PAD_CFG_STRUCT(GPP_B6, 0x44000200, 0x0),
+
+ // SRCCLKREQ2#
+ _PAD_CFG_STRUCT(GPP_B7, 0x44000700, 0x0),
+
+ // SRCCLKREQ3#
+ _PAD_CFG_STRUCT(GPP_B8, 0x44000700, 0x0),
+
+ // SRCCLKREQ4#
+ _PAD_CFG_STRUCT(GPP_B9, 0x44000702, 0x0),
+
+ // SRCCLKREQ5#
+ _PAD_CFG_STRUCT(GPP_B10, 0x44000702, 0x0),
+
+ // EXT_PWR_GATE#
+ _PAD_CFG_STRUCT(GPP_B11, 0x44000700, 0x0),
+
+ // SLP_S0#
+ _PAD_CFG_STRUCT(GPP_B12, 0x44000200, 0x0),
+
+ // PLTRST#
+ _PAD_CFG_STRUCT(GPP_B13, 0x44000700, 0x0),
+
+ // SPKR
+ _PAD_CFG_STRUCT(GPP_B14, 0x44000600, 0x1000),
+
+ // GSPI0_CS#
+ _PAD_CFG_STRUCT(GPP_B15, 0x44000200, 0x0),
+
+ // GSPI0_CLK
+ _PAD_CFG_STRUCT(GPP_B16, 0x44000200, 0x0),
+
+ // GSPI0_MISO
+ _PAD_CFG_STRUCT(GPP_B17, 0x44000200, 0x0),
+
+ // GSPI0_MOSI
+ _PAD_CFG_STRUCT(GPP_B18, 0x44000600, 0x3000),
+
+ // GSPI1_CS#
+ _PAD_CFG_STRUCT(GPP_B19, 0x44000200, 0x0),
+
+ // GSPI1_CLK
+ _PAD_CFG_STRUCT(GPP_B20, 0x44000200, 0x0),
+
+ // GSPI1_MISO
+ _PAD_CFG_STRUCT(GPP_B21, 0x44000200, 0x0),
+
+ // GSPI1_MOSI
+ _PAD_CFG_STRUCT(GPP_B22, 0x44000700, 0x1000),
+
+ // SML1ALERT#/PCHHOT#
+ _PAD_CFG_STRUCT(GPP_B23, 0x44000200, 0x0),
+
+ // SMBCLK
+ _PAD_CFG_STRUCT(GPP_C0, 0x44000702, 0x0),
+
+ // SMBDATA
+ _PAD_CFG_STRUCT(GPP_C1, 0x44000702, 0x1000),
+
+ // SMBALERT#
+ _PAD_CFG_STRUCT(GPP_C2, 0x44000201, 0x1000),
+
+ // SML0CLK
+ _PAD_CFG_STRUCT(GPP_C3, 0x44000200, 0x0),
+
+ // SML0DATA
+ _PAD_CFG_STRUCT(GPP_C4, 0x44000200, 0x0),
+
+ // SML0ALERT#
+ _PAD_CFG_STRUCT(GPP_C5, 0x44000200, 0x0),
+
+ // SML1CLK
+// _PAD_CFG_STRUCT(GPP_C6, 0xffffffff, 0xffffff00),
+
+ // SML1DATA
+// _PAD_CFG_STRUCT(GPP_C7, 0xffffffff, 0xffffff00),
+
+ // UART0_RXD
+ _PAD_CFG_STRUCT(GPP_C8, 0x44000700, 0x0),
+
+ // UART0_TXD
+ _PAD_CFG_STRUCT(GPP_C9, 0x44000700, 0x0),
+
+ // UART0_RTS#
+ _PAD_CFG_STRUCT(GPP_C10, 0x44000700, 0x0),
+
+ // UART0_CTS#
+ _PAD_CFG_STRUCT(GPP_C11, 0x44000700, 0x0),
+
+ // UART1_RXD
+ _PAD_CFG_STRUCT(GPP_C12, 0x44000702, 0x0),
+
+ // UART1_TXD
+ _PAD_CFG_STRUCT(GPP_C13, 0x82880102, 0x0),
+
+ // UART1_RTS#
+ _PAD_CFG_STRUCT(GPP_C14, 0x44000700, 0x0),
+
+ // UART1_CTS#
+ _PAD_CFG_STRUCT(GPP_C15, 0x44000700, 0x0),
+
+ // I2C0_SDA
+ _PAD_CFG_STRUCT(GPP_C16, 0x44000200, 0x0),
+
+ // I2C0_SCL
+ _PAD_CFG_STRUCT(GPP_C17, 0x44000200, 0x0),
+
+ // I2C1_SDA
+ _PAD_CFG_STRUCT(GPP_C18, 0x44000200, 0x0),
+
+ // I2C1_SCL
+ _PAD_CFG_STRUCT(GPP_C19, 0x40880102, 0x0),
+
+ // UART2_RXD
+ _PAD_CFG_STRUCT(GPP_C20, 0x44000702, 0x0),
+
+ // UART2_TXD
+ _PAD_CFG_STRUCT(GPP_C21, 0x44000700, 0x0),
+
+ // UART2_RTS#
+ _PAD_CFG_STRUCT(GPP_C22, 0x44000700, 0x0),
+
+ // UART2_CTS#
+ _PAD_CFG_STRUCT(GPP_C23, 0x44000700, 0x0),
+
+ // SPI1_CS#
+ _PAD_CFG_STRUCT(GPP_D0, 0x44000200, 0x0),
+
+ // SPI1_CLK
+ _PAD_CFG_STRUCT(GPP_D1, 0x44000200, 0x0),
+
+ // SPI1_MISO
+ _PAD_CFG_STRUCT(GPP_D2, 0x44000200, 0x0),
+
+ // SPI1_MOSI
+ _PAD_CFG_STRUCT(GPP_D3, 0x44000200, 0x0),
+
+ // FLASHTRIG
+ _PAD_CFG_STRUCT(GPP_D4, 0x44000200, 0x0),
+
+ // ISH_I2C0_SDA
+ _PAD_CFG_STRUCT(GPP_D5, 0x44000700, 0x0),
+
+ // ISH_I2C0_SCL
+ _PAD_CFG_STRUCT(GPP_D6, 0x44000700, 0x0),
+
+ // ISH_I2C1_SDA
+ _PAD_CFG_STRUCT(GPP_D7, 0x44000700, 0x0),
+
+ // ISH_I2C1_SCL
+ _PAD_CFG_STRUCT(GPP_D8, 0x44000201, 0x0),
+
+ // GPIO
+ _PAD_CFG_STRUCT(GPP_D9, 0x44000200, 0x0),
+
+ // GPIO
+ _PAD_CFG_STRUCT(GPP_D10, 0x44000200, 0x0),
+
+ // GPIO
+ _PAD_CFG_STRUCT(GPP_D11, 0x44000200, 0x0),
+
+ // GPIO
+ _PAD_CFG_STRUCT(GPP_D12, 0x44000200, 0x0),
+
+ // ISH_UART0_RXD
+ _PAD_CFG_STRUCT(GPP_D13, 0x44000200, 0x0),
+
+ // ISH_UART0_TXD
+ _PAD_CFG_STRUCT(GPP_D14, 0x44000200, 0x0),
+
+ // ISH_UART0_RTS#
+ _PAD_CFG_STRUCT(GPP_D15, 0x44000700, 0x0),
+
+ // ISH_UART0_CTS#
+ _PAD_CFG_STRUCT(GPP_D16, 0x44000700, 0x0),
+
+ // DMIC_CLK1
+ _PAD_CFG_STRUCT(GPP_D17, 0x44000700, 0x0),
+
+ // DMIC_DATA1
+ _PAD_CFG_STRUCT(GPP_D18, 0x44000700, 0x0),
+
+ // DMIC_CLK0
+ _PAD_CFG_STRUCT(GPP_D19, 0x44000700, 0x0),
+
+ // DMIC_DATA0
+ _PAD_CFG_STRUCT(GPP_D20, 0x44000700, 0x0),
+
+ // SPI1_IO2
+ _PAD_CFG_STRUCT(GPP_D21, 0x44000102, 0x0),
+
+ // SPI1_IO3
+ _PAD_CFG_STRUCT(GPP_D22, 0x44000700, 0x0),
+
+ // I2S_MCLK
+ _PAD_CFG_STRUCT(GPP_D23, 0x44000700, 0x0),
+
+ // SATAXPCIE0/SATAGP0
+ _PAD_CFG_STRUCT(GPP_E0, 0x42100100, 0x1000),
+
+ // SATAXPCIE1/SATAGP1
+ _PAD_CFG_STRUCT(GPP_E1, 0x44000702, 0x0),
+
+ // SATAXPCIE2/SATAGP2
+ _PAD_CFG_STRUCT(GPP_E2, 0x44000502, 0x0),
+
+ // CPU_GP0
+ _PAD_CFG_STRUCT(GPP_E3, 0x40000000, 0x0),
+
+ // DEVSLP0
+ _PAD_CFG_STRUCT(GPP_E4, 0x4000700, 0x0),
+
+ // DEVSLP1
+ _PAD_CFG_STRUCT(GPP_E5, 0x4000700, 0x0),
+
+ // DEVSLP2
+ _PAD_CFG_STRUCT(GPP_E6, 0x44000200, 0x0),
+
+ // CPU_GP1
+ _PAD_CFG_STRUCT(GPP_E7, 0x44000100, 0x0),
+
+ // SATALED#
+ _PAD_CFG_STRUCT(GPP_E8, 0x44000700, 0x0),
+
+ // USB2_OC0#
+ _PAD_CFG_STRUCT(GPP_E9, 0x44000200, 0x0),
+
+ // USB2_OC1#
+ _PAD_CFG_STRUCT(GPP_E10, 0x44000200, 0x0),
+
+ // USB2_OC2#
+ _PAD_CFG_STRUCT(GPP_E11, 0x44000200, 0x0),
+
+ // USB2_OC3#
+ _PAD_CFG_STRUCT(GPP_E12, 0x44000200, 0x0),
+
+ // DDPB_HPD0
+ _PAD_CFG_STRUCT(GPP_E13, 0x44000700, 0x0),
+
+ // DDPC_HPD1
+ _PAD_CFG_STRUCT(GPP_E14, 0x44000700, 0x0),
+
+ // DDPD_HPD2
+ _PAD_CFG_STRUCT(GPP_E15, 0x42840102, 0x0),
+
+ // DDPE_HPD3
+ _PAD_CFG_STRUCT(GPP_E16, 0x80880102, 0x0),
+
+ // EDP_HPD
+ _PAD_CFG_STRUCT(GPP_E17, 0x44000702, 0x0),
+
+ // DDPB_CTRLCLK
+ _PAD_CFG_STRUCT(GPP_E18, 0x44000700, 0x0),
+
+ // DDPB_CTRLDATA
+ _PAD_CFG_STRUCT(GPP_E19, 0x44000700, 0x1000),
+
+ // DDPC_CTRLCLK
+ _PAD_CFG_STRUCT(GPP_E20, 0x44000702, 0x0),
+
+ // DDPC_CTRLDATA
+ _PAD_CFG_STRUCT(GPP_E21, 0x44000702, 0x1000),
+
+ // DDPD_CTRLCLK
+ _PAD_CFG_STRUCT(GPP_E22, 0x40100000, 0x0),
+
+ // DDPD_CTRLDATA
+ _PAD_CFG_STRUCT(GPP_E23, 0x44000201, 0x1000),
+
+ // BATLOW#
+ _PAD_CFG_STRUCT(GPD0, 0x4000702, 0x0),
+
+ // LANPHYPC
+ _PAD_CFG_STRUCT(GPD1, 0x4000700, 0x0),
+
+ // LAN_WAKE#
+ _PAD_CFG_STRUCT(GPD2, 0x880502, 0x0),
+
+ // PWRBTN#
+ _PAD_CFG_STRUCT(GPD3, 0x4000702, 0x3000),
+
+ // SLP_S3#
+ _PAD_CFG_STRUCT(GPD4, 0x4000700, 0x0),
+
+ // SLP_S4#
+ _PAD_CFG_STRUCT(GPD5, 0x4000700, 0x0),
+
+ // SLP_A#
+ _PAD_CFG_STRUCT(GPD6, 0x4000700, 0x0),
+
+ // RSVD
+ _PAD_CFG_STRUCT(GPD7, 0x4000301, 0x0),
+
+ // SUSCLK
+ _PAD_CFG_STRUCT(GPD8, 0x4000700, 0x0),
+
+ // SLP_WLAN#
+ _PAD_CFG_STRUCT(GPD9, 0x4000700, 0x0),
+
+ // SLP_S5#
+ _PAD_CFG_STRUCT(GPD10, 0x4000700, 0x0),
+
+ // LANPHYPC
+ _PAD_CFG_STRUCT(GPD11, 0x4000500, 0x0),
+
+ // I2S2_SCLK
+ _PAD_CFG_STRUCT(GPP_F0, 0x44000702, 0x0),
+
+ // I2S2_SFRM
+ _PAD_CFG_STRUCT(GPP_F1, 0x44000702, 0x0),
+
+ // I2S2_TXD
+ _PAD_CFG_STRUCT(GPP_F2, 0x44000700, 0x0),
+
+ // I2S2_RXD
+ _PAD_CFG_STRUCT(GPP_F3, 0x44000702, 0x0),
+
+ // I2C2_SDA
+ _PAD_CFG_STRUCT(GPP_F4, 0x44000702, 0x2000000),
+
+ // I2C2_SCL
+ _PAD_CFG_STRUCT(GPP_F5, 0x44000702, 0x2000000),
+
+ // I2C3_SDA
+ _PAD_CFG_STRUCT(GPP_F6, 0x44000702, 0x2000000),
+
+ // I2C3_SCL
+ _PAD_CFG_STRUCT(GPP_F7, 0x44000702, 0x2000000),
+
+ // I2C4_SDA
+ _PAD_CFG_STRUCT(GPP_F8, 0x44000702, 0x2000000),
+
+ // I2C4_SCL
+ _PAD_CFG_STRUCT(GPP_F9, 0x44000702, 0x2000000),
+
+ // I2C5_SDA/ISH_I2C2_SDA
+ _PAD_CFG_STRUCT(GPP_F10, 0x44000b02, 0x2000000),
+
+ // I2C5_SCL/ISH_I2C2_SCL
+ _PAD_CFG_STRUCT(GPP_F11, 0x44000b02, 0x2000000),
+
+ // EMMC_CMD
+ _PAD_CFG_STRUCT(GPP_F12, 0x44000702, 0x0),
+
+ // EMMC_DATA0
+ _PAD_CFG_STRUCT(GPP_F13, 0x44000702, 0x0),
+
+ // EMMC_DATA1
+ _PAD_CFG_STRUCT(GPP_F14, 0x44000702, 0x0),
+
+ // EMMC_DATA2
+ _PAD_CFG_STRUCT(GPP_F15, 0x44000702, 0x0),
+
+ // EMMC_DATA3
+ _PAD_CFG_STRUCT(GPP_F16, 0x44000702, 0x0),
+
+ // EMMC_DATA4
+ _PAD_CFG_STRUCT(GPP_F17, 0x44000702, 0x0),
+
+ // EMMC_DATA5
+ _PAD_CFG_STRUCT(GPP_F18, 0x44000702, 0x0),
+
+ // EMMC_DATA6
+ _PAD_CFG_STRUCT(GPP_F19, 0x44000702, 0x0),
+
+ // EMMC_DATA7
+ _PAD_CFG_STRUCT(GPP_F20, 0x44000702, 0x0),
+
+ // EMMC_RCLK
+ _PAD_CFG_STRUCT(GPP_F21, 0x44000702, 0x0),
+
+ // EMMC_CLK
+ _PAD_CFG_STRUCT(GPP_F22, 0x44000700, 0x0),
+
+ // GPIO
+ _PAD_CFG_STRUCT(GPP_F23, 0x40100100, 0x0),
+
+ // SD_CMD
+ _PAD_CFG_STRUCT(GPP_G0, 0x44000700, 0x0),
+
+ // SD_DATA0
+ _PAD_CFG_STRUCT(GPP_G1, 0x44000102, 0x0),
+
+ // SD_DATA1
+ _PAD_CFG_STRUCT(GPP_G2, 0x44000700, 0x0),
+
+ // SD_DATA2
+ _PAD_CFG_STRUCT(GPP_G3, 0x44000700, 0x0),
+
+ // SD_DATA3
+ _PAD_CFG_STRUCT(GPP_G4, 0x44000700, 0x0),
+
+ // SD_CD#
+ _PAD_CFG_STRUCT(GPP_G5, 0x44000702, 0x0),
+
+ // SD_CLK
+ _PAD_CFG_STRUCT(GPP_G6, 0x44000700, 0x0),
+
+ // SD_WP
+ _PAD_CFG_STRUCT(GPP_G7, 0x44000702, 0x0)
+};
+
+void mainboard_configure_gpios(void)
+{
+ gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
+}
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
new file mode 100644
index 0000000000..00246a42e5
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <mainboard/gpio.h>
+#include <soc/gpio.h>
+
+static const struct pad_config early_gpio_table[] = {
+ // UART2_RXD
+ _PAD_CFG_STRUCT(GPP_C20, 0x44000702, 0x0),
+
+ // UART2_TXD
+ _PAD_CFG_STRUCT(GPP_C21, 0x44000700, 0x0)
+};
+
+void mainboard_configure_gpios(void)
+{
+ gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
+}
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/hda_verb.c b/src/mainboard/clevo/kbl-u/variants/n13xwu/hda_verb.c
new file mode 100644
index 0000000000..05bb273a74
--- /dev/null
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/hda_verb.c
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/azalia_device.h>
+
+const u32 cim_verb_data[] = {
+ /* Realtek ALC269VC */
+ 0x10ec0269,
+ 0x15581314,
+ 11,
+ AZALIA_SUBVENDOR(0, 0x15581314),
+ AZALIA_PIN_CFG(0, 0x12, 0x90a60140),
+ AZALIA_PIN_CFG(0, 0x14, 0x90170120),
+ AZALIA_PIN_CFG(0, 0x15, 0x02211010),
+ AZALIA_PIN_CFG(0, 0x17, 0x40000000),
+ AZALIA_PIN_CFG(0, 0x18, 0x02a11030),
+ AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x1d, 0x40f4a205),
+ AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
+
+ /* Intel iGPU HDMI */
+ 0x8086280b,
+ 0x80860101,
+ 4,
+ AZALIA_SUBVENDOR(2, 0x80860101),
+ AZALIA_PIN_CFG(2, 0x5, 0x18560010),
+ AZALIA_PIN_CFG(2, 0x6, 0x18560010),
+ AZALIA_PIN_CFG(2, 0x7, 0x18560010)
+};
+
+const u32 pc_beep_verbs[] = {};
+
+AZALIA_ARRAY_SIZES;