summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-11-09 00:24:58 +0800
committerIru Cai <mytbk920423@gmail.com>2020-12-28 21:26:39 +0800
commit5fc74d8d1180d53f6e5ade15528284b073f223d3 (patch)
treecc874210648121f2fb9af9eeb19bd421358c35d5
parent219caf83580a86acf073f73662356a078bd96244 (diff)
downloadcoreboot-5fc74d8d1180d53f6e5ade15528284b073f223d3.tar.xz
[HACK] Add soc/broadwell based hp/folio_9480m code
The laptop still boots with this code. Change-Id: I0d74c59ff8e8f32f49627fb7edc270887ebd5339 Signed-off-by: Iru Cai <mytbk920423@gmail.com>
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/Kconfig48
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/Kconfig.name2
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/Makefile.inc4
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/acpi/ec.asl3
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/acpi/platform.asl14
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/acpi/superio.asl3
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/acpi_tables.c24
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/board_info.txt7
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/data.vbtbin0 -> 4608 bytes
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/devicetree.cb72
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/dsdt.asl28
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/gma-mainboard.ads18
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/gpio.c108
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/hda_verb.c72
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/pei_data.c37
-rw-r--r--src/mainboard/hp/folio_9480m_bdw/romstage.c15
16 files changed, 455 insertions, 0 deletions
diff --git a/src/mainboard/hp/folio_9480m_bdw/Kconfig b/src/mainboard/hp/folio_9480m_bdw/Kconfig
new file mode 100644
index 0000000000..2858d97449
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/Kconfig
@@ -0,0 +1,48 @@
+if BOARD_HP_FOLIO_9480M_BDW
+
+config BOARD_SPECIFIC_OPTIONS
+ def_bool y
+ # The board has a 16MB flash, but the end of the flash needs
+ # to be reserved, so we use 12MB as default
+ select BOARD_ROMSIZE_KB_12288
+ select EC_HP_KBC1126
+ select HAVE_ACPI_RESUME
+ select HAVE_ACPI_TABLES
+ select INTEL_GMA_HAVE_VBT
+ select MAINBOARD_HAS_LIBGFXINIT
+ select MAINBOARD_HAS_LPC_TPM
+ select MAINBOARD_HAS_TPM1
+ select MAINBOARD_USES_IFD_GBE_REGION
+ select SERIRQ_CONTINUOUS_MODE
+ select SOC_INTEL_BROADWELL
+ select SYSTEM_TYPE_LAPTOP
+
+config MAINBOARD_DIR
+ string
+ default "hp/folio_9480m_bdw"
+
+config MAINBOARD_PART_NUMBER
+ string
+ default "HP EliteBook Folio 9480m"
+
+config VGA_BIOS_FILE
+ string
+ default "pci8086,0a16.rom"
+
+config VGA_BIOS_ID
+ string
+ default "8086,0a16"
+
+config EC_HP_KBC1126_ECFW_IN_CBFS
+ bool
+ default n
+
+config EC_HP_KBC1126_GPE
+ hex
+ default 0x6
+
+config MAX_CPUS
+ int
+ default 4
+
+endif
diff --git a/src/mainboard/hp/folio_9480m_bdw/Kconfig.name b/src/mainboard/hp/folio_9480m_bdw/Kconfig.name
new file mode 100644
index 0000000000..922552b644
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/Kconfig.name
@@ -0,0 +1,2 @@
+config BOARD_HP_FOLIO_9480M_BDW
+ bool "EliteBook Folio 9480m (using Broadwell SoC code)"
diff --git a/src/mainboard/hp/folio_9480m_bdw/Makefile.inc b/src/mainboard/hp/folio_9480m_bdw/Makefile.inc
new file mode 100644
index 0000000000..2543ee70da
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/Makefile.inc
@@ -0,0 +1,4 @@
+romstage-y += gpio.c
+romstage-y += pei_data.c
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
+ramstage-y += pei_data.c
diff --git a/src/mainboard/hp/folio_9480m_bdw/acpi/ec.asl b/src/mainboard/hp/folio_9480m_bdw/acpi/ec.asl
new file mode 100644
index 0000000000..baa17a4181
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/acpi/ec.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <ec/hp/kbc1126/acpi/ec.asl>
diff --git a/src/mainboard/hp/folio_9480m_bdw/acpi/platform.asl b/src/mainboard/hp/folio_9480m_bdw/acpi/platform.asl
new file mode 100644
index 0000000000..8023ae826c
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/acpi/platform.asl
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Method(_WAK,1)
+{
+ \_SB.PCI0.LPCB.EC0.ACPI = 1
+ \_SB.PCI0.LPCB.EC0.SLPT = 0
+
+ Return(Package(){0,0})
+}
+
+Method(_PTS,1)
+{
+ \_SB.PCI0.LPCB.EC0.SLPT = Arg0
+}
diff --git a/src/mainboard/hp/folio_9480m_bdw/acpi/superio.asl b/src/mainboard/hp/folio_9480m_bdw/acpi/superio.asl
new file mode 100644
index 0000000000..55b1db5b11
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/acpi/superio.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <drivers/pc80/pc/ps2_controller.asl>
diff --git a/src/mainboard/hp/folio_9480m_bdw/acpi_tables.c b/src/mainboard/hp/folio_9480m_bdw/acpi_tables.c
new file mode 100644
index 0000000000..ca6f64b089
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/acpi_tables.c
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <acpi/acpi.h>
+#include <acpi/acpi_gnvs.h>
+#include <arch/ioapic.h>
+#include <soc/acpi.h>
+#include <soc/nvs.h>
+
+void acpi_create_gnvs(struct global_nvs *gnvs)
+{
+ acpi_init_gnvs(gnvs);
+}
+
+unsigned long acpi_fill_madt(unsigned long current)
+{
+ /* Local APICs */
+ current = acpi_create_madt_lapics(current);
+
+ /* IOAPIC */
+ current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current,
+ 2, IO_APIC_ADDR, 0);
+
+ return acpi_madt_irq_overrides(current);
+}
diff --git a/src/mainboard/hp/folio_9480m_bdw/board_info.txt b/src/mainboard/hp/folio_9480m_bdw/board_info.txt
new file mode 100644
index 0000000000..fdd0d60142
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/board_info.txt
@@ -0,0 +1,7 @@
+Category: laptop
+Board URL: https://support.hp.com/us-en/product/hp-elitebook-folio-9480m-notebook-pc/7089926
+ROM protocol: SPI
+ROM package: SOIC-8
+ROM socketed: n
+Flashrom support: y
+Release year: 2014
diff --git a/src/mainboard/hp/folio_9480m_bdw/data.vbt b/src/mainboard/hp/folio_9480m_bdw/data.vbt
new file mode 100644
index 0000000000..1a62a07a93
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/data.vbt
Binary files differ
diff --git a/src/mainboard/hp/folio_9480m_bdw/devicetree.cb b/src/mainboard/hp/folio_9480m_bdw/devicetree.cb
new file mode 100644
index 0000000000..02ba69fba4
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/devicetree.cb
@@ -0,0 +1,72 @@
+chip soc/intel/broadwell
+ register "gfx" = "GMA_STATIC_DISPLAYS(0)"
+ register "gpu_dp_b_hotplug" = "4"
+ register "gpu_dp_c_hotplug" = "4"
+ register "gpu_panel_power_backlight_off_delay" = "1"
+ register "gpu_panel_power_backlight_on_delay" = "1"
+ register "gpu_panel_power_cycle_delay" = "6"
+ register "gpu_panel_power_down_delay" = "500"
+ register "gpu_panel_power_up_delay" = "2000"
+ register "gpu_pch_backlight_pwm_hz" = "200"
+ device cpu_cluster 0 on
+ device lapic 0 on end
+ end
+ device domain 0x0 on
+ subsystemid 0x103c 0x22da inherit
+ device pci 00.0 on end # Host bridge
+ device pci 02.0 on end # Internal graphics VGA controller
+ device pci 03.0 on end # Mini-HD audio
+
+ chip soc/intel/broadwell/pch
+ register "gen1_dec" = "0x007c0201"
+ register "gen2_dec" = "0x000c0101"
+ register "gen4_dec" = "0x000402e9"
+ register "sata_port1_gen3_dtle" = "0x6"
+ # SATA(1), M.2(3)
+ register "sata_port_map" = "0xa"
+ device pci 13.0 off end # Intel Smart Sound DSP
+ device pci 14.0 on end # xHCI Controller
+ device pci 15.0 off end # Serial I/O DMA
+ device pci 15.1 off end # I2C0
+ device pci 15.2 off end # I2C1
+ device pci 15.3 off end # GSPI0
+ device pci 15.4 off end # GSPI1
+ device pci 15.5 off end # UART0
+ device pci 15.6 off end # UART1
+ device pci 16.0 on end # Management Engine Interface 1
+ 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
+ device pci 17.0 off end # SDIO
+ device pci 19.0 on end # Intel Gigabit Ethernet
+ device pci 1b.0 on end # High Definition Audio
+ device pci 1c.0 on end # PCIe Port #1
+ device pci 1c.1 on end # PCIe Port #2, Realtek Card Reader
+ device pci 1c.2 off end # PCIe Port #3
+ device pci 1c.3 on # PCIe Port #4, WLAN
+ smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther"
+ "M.2 2230" "SlotDataBusWidth1X"
+ end
+ device pci 1c.4 off end # PCIe Port #5
+ device pci 1c.5 off end # PCIe Port #6
+ device pci 1d.0 on end # USB2 EHCI #1
+ device pci 1f.0 on # LPC bridge
+ chip drivers/pc80/tpm
+ device pnp 0c31.0 on end
+ end
+ # This laptop uses MEC1322, but it has the same interface
+ # as the KBC1126 laptops
+ chip ec/hp/kbc1126
+ register "ec_data_port" = "0x62"
+ register "ec_cmd_port" = "0x66"
+ register "ec_ctrl_reg" = "0x81"
+ register "ec_fan_ctrl_value" = "0x6b"
+ device pnp ff.1 off end
+ end
+ end
+ device pci 1f.2 on end # SATA Controller (AHCI)
+ device pci 1f.3 on end # SMBus
+ device pci 1f.6 off end # Thermal
+ end
+ end
+end
diff --git a/src/mainboard/hp/folio_9480m_bdw/dsdt.asl b/src/mainboard/hp/folio_9480m_bdw/dsdt.asl
new file mode 100644
index 0000000000..895d639840
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/dsdt.asl
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+
+#include <acpi/acpi.h>
+
+DefinitionBlock(
+ "dsdt.aml",
+ "DSDT",
+ ACPI_DSDT_REV_2,
+ OEM_ID,
+ ACPI_TABLE_CREATOR,
+ 0x20141018 /* OEM revision */
+)
+{
+ #include <soc/intel/broadwell/acpi/platform.asl>
+ #include <soc/intel/broadwell/pch/acpi/globalnvs.asl>
+ #include <cpu/intel/common/acpi/cpu.asl>
+ #include <southbridge/intel/common/acpi/sleepstates.asl>
+
+ Device (\_SB.PCI0)
+ {
+ #include <soc/intel/broadwell/acpi/systemagent.asl>
+ #include <soc/intel/broadwell/pch/acpi/pch.asl>
+ }
+
+ /* FIXME: We cannot override the default _WAK and _PTS in soc/broadwell */
+ /* #include "acpi/platform.asl" */
+}
diff --git a/src/mainboard/hp/folio_9480m_bdw/gma-mainboard.ads b/src/mainboard/hp/folio_9480m_bdw/gma-mainboard.ads
new file mode 100644
index 0000000000..85e9ded77b
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/gma-mainboard.ads
@@ -0,0 +1,18 @@
+-- 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 :=
+ (DP1, -- DP1/HDMI1: DisplayPorts on board and dock
+ HDMI1,
+ DP2, -- DP2: VGA ports on board and dock
+ eDP,
+ others => Disabled);
+
+end GMA.Mainboard;
diff --git a/src/mainboard/hp/folio_9480m_bdw/gpio.c b/src/mainboard/hp/folio_9480m_bdw/gpio.c
new file mode 100644
index 0000000000..d08713cc5d
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/gpio.c
@@ -0,0 +1,108 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/gpio.h>
+
+const struct gpio_config mainboard_gpio_config[] = {
+ [0] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [1] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [2] = PCH_GPIO_OUT_LOW,
+ [3] = PCH_GPIO_OUT_HIGH,
+ [4] = PCH_GPIO_OUT_HIGH,
+ [5] = PCH_GPIO_OUT_HIGH,
+ [6] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [7] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [8] = PCH_GPIO_OUT_HIGH,
+ [9] = PCH_GPIO_OUT_HIGH,
+ [10] = PCH_GPIO_OUT_HIGH,
+ [11] = PCH_GPIO_OUT_HIGH,
+ [12] = PCH_GPIO_NATIVE,
+ [13] = PCH_GPIO_OUT_HIGH,
+ [14] = PCH_GPIO_OUT_HIGH,
+ [15] = PCH_GPIO_OUT_HIGH,
+ [16] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL,
+ .route = GPIO_ROUTE_SMI },
+ [17] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [18] = PCH_GPIO_OUT_HIGH,
+ [19] = PCH_GPIO_NATIVE,
+ [20] = PCH_GPIO_NATIVE,
+ [21] = PCH_GPIO_NATIVE,
+ [22] = PCH_GPIO_OUT_HIGH,
+ [23] = PCH_GPIO_OUT_HIGH,
+ [24] = PCH_GPIO_OUT_HIGH,
+ [25] = PCH_GPIO_OUT_HIGH,
+ [26] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [27] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [28] = PCH_GPIO_OUT_HIGH,
+ [29] = PCH_GPIO_OUT_HIGH,
+ [30] = PCH_GPIO_NATIVE,
+ [31] = PCH_GPIO_NATIVE,
+ [32] = PCH_GPIO_NATIVE,
+ [33] = PCH_GPIO_NATIVE,
+ [34] = PCH_GPIO_OUT_HIGH,
+ [35] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [36] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL,
+ .route = GPIO_ROUTE_SMI },
+ [37] = PCH_GPIO_NATIVE,
+ [38] = PCH_GPIO_NATIVE,
+ [39] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL,
+ .route = GPIO_ROUTE_SMI },
+ [40] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL,
+ .route = GPIO_ROUTE_SMI },
+ [41] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [42] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [43] = PCH_GPIO_OUT_HIGH,
+ [44] = PCH_GPIO_OUT_LOW,
+ [45] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_INVERT | GPIO_IRQ_LEVEL },
+ [46] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [47] = PCH_GPIO_OUT_HIGH,
+ [48] = PCH_GPIO_OUT_LOW,
+ [49] = PCH_GPIO_OUT_HIGH,
+ [50] = PCH_GPIO_OUT_HIGH,
+ [51] = PCH_GPIO_OUT_HIGH,
+ [52] = PCH_GPIO_OUT_HIGH,
+ [53] = PCH_GPIO_OUT_HIGH,
+ [54] = PCH_GPIO_OUT_LOW,
+ [55] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL,
+ .pirq = GPIO_PIRQ_APIC_ROUTE },
+ [56] = PCH_GPIO_OUT_HIGH,
+ [57] = PCH_GPIO_OUT_LOW,
+ [58] = PCH_GPIO_OUT_HIGH,
+ [59] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [60] = PCH_GPIO_OUT_HIGH,
+ [61] = PCH_GPIO_OUT_LOW,
+ [62] = PCH_GPIO_NATIVE,
+ [63] = PCH_GPIO_NATIVE,
+ [64] = PCH_GPIO_OUT_HIGH,
+ [65] = PCH_GPIO_OUT_LOW,
+ [66] = PCH_GPIO_OUT_HIGH,
+ [67] = PCH_GPIO_OUT_HIGH,
+ [68] = PCH_GPIO_OUT_HIGH,
+ [69] = PCH_GPIO_OUT_HIGH,
+ [70] = PCH_GPIO_OUT_LOW,
+ [71] = PCH_GPIO_NATIVE,
+ [72] = PCH_GPIO_NATIVE,
+ [73] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [74] = PCH_GPIO_NATIVE,
+ [75] = PCH_GPIO_NATIVE,
+ [76] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [77] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [78] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL,
+ .route = GPIO_ROUTE_SMI },
+ [79] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [80] = PCH_GPIO_OUT_LOW,
+ [81] = PCH_GPIO_NATIVE,
+ [82] = PCH_GPIO_OUT_HIGH,
+ [83] = PCH_GPIO_OUT_HIGH,
+ [84] = PCH_GPIO_OUT_HIGH,
+ [85] = PCH_GPIO_OUT_HIGH,
+ [86] = PCH_GPIO_OUT_HIGH,
+ [87] = PCH_GPIO_OUT_HIGH,
+ [88] = PCH_GPIO_OUT_HIGH,
+ [89] = PCH_GPIO_OUT_HIGH,
+ [90] = PCH_GPIO_OUT_HIGH,
+ [91] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [92] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [93] = { .conf0 = GPIO_MODE_GPIO | GPIO_DIR_INPUT | GPIO_IRQ_LEVEL },
+ [94] = PCH_GPIO_OUT_HIGH,
+ PCH_GPIO_END
+};
diff --git a/src/mainboard/hp/folio_9480m_bdw/hda_verb.c b/src/mainboard/hp/folio_9480m_bdw/hda_verb.c
new file mode 100644
index 0000000000..9ee6de01a8
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/hda_verb.c
@@ -0,0 +1,72 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/azalia_device.h>
+
+const u32 cim_verb_data[] = {
+ 0x10ec0280, /* Codec Vendor / Device ID: Realtek */
+ 0x103c22db, /* Subsystem ID */
+ 57, /* Number of 4 dword sets */
+ AZALIA_SUBVENDOR(0, 0x103c22db),
+ AZALIA_RESET(1),
+ AZALIA_PIN_CFG(0, 0x12, 0x90a60130),
+ AZALIA_PIN_CFG(0, 0x13, 0x40000000),
+ AZALIA_PIN_CFG(0, 0x14, 0x90170110),
+ AZALIA_PIN_CFG(0, 0x15, 0x0321101f),
+ AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x18, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x1a, 0x03a11020),
+ AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
+ AZALIA_PIN_CFG(0, 0x1d, 0x40738105),
+ AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
+
+ /* The following is from the OEM firmware */
+ 0x02050007, 0x0204c200, 0x02050063, 0x02044800,
+ 0x02050066, 0x02040809, 0x02050015, 0x02048842,
+ 0x0205000f, 0x0204cccc, 0x02050010, 0x0204ccdd,
+ 0x02050065, 0x02042000, 0x0205001c, 0x0204c900,
+ 0x02050018, 0x02043788, 0x02050008, 0x02048210,
+ 0x02050068, 0x02043022, 0x02050006, 0x02040800,
+ 0x02050061, 0x02040403, 0x02050061, 0x02040403,
+ 0x0205005f, 0x02040800, 0x02050060, 0x02040800,
+ 0x0205002c, 0x02044002, 0x0205002e, 0x02041ec4,
+ 0x0205002f, 0x02040000, 0x02050033, 0x0204c5e8,
+ 0x02050034, 0x02041a98, 0x02050035, 0x0204f5ad,
+ 0x02050036, 0x0204cbd2, 0x02050037, 0x02041605,
+ 0x02050038, 0x0204f5ad, 0x02050039, 0x0204ea5f,
+ 0x0205003a, 0x02040b42, 0x0205003b, 0x0204fb54,
+ 0x0205003c, 0x0204fcd9, 0x0205003d, 0x02040000,
+ 0x02050030, 0x02041f5c, 0x02050031, 0x02040111,
+ 0x02050032, 0x02041f5f, 0x0205003e, 0x02041ea9,
+ 0x0205002f, 0x02040000, 0x02050042, 0x0204c66e,
+ 0x02050043, 0x02041a29, 0x02050035, 0x0204f5ad,
+ 0x02050044, 0x0204ccdd, 0x02050045, 0x02041549,
+ 0x02050038, 0x0204f5ad, 0x02050046, 0x0204ee79,
+ 0x02050047, 0x020409f4, 0x0205003b, 0x0204fb54,
+ 0x02050048, 0x0204fa4c, 0x0205003d, 0x02040000,
+ 0x0205003f, 0x02041f4d, 0x02050040, 0x02040129,
+ 0x02050041, 0x02041f51, 0x02050049, 0x02041f61,
+ 0x0205002f, 0x02040000, 0x0205004d, 0x0204c2f4,
+ 0x0205004e, 0x02041d2e, 0x02050035, 0x0204f5ad,
+ 0x0205004f, 0x0204c5e8, 0x02050050, 0x02041a98,
+ 0x02050038, 0x0204f5ad, 0x02050051, 0x0204d30e,
+ 0x02050052, 0x020413e6, 0x0205003b, 0x0204fb54,
+ 0x02050053, 0x02040b73, 0x0205003d, 0x02040000,
+ 0x0205004a, 0x02041faf, 0x0205004b, 0x0204008a,
+ 0x0205004c, 0x02041fb0, 0x02050054, 0x02041fb0,
+ 0x0205002f, 0x02040000, 0x02050058, 0x0204c17a,
+ 0x02050059, 0x02041e8f, 0x02050035, 0x0204f5ad,
+ 0x0205005a, 0x0204c2f4, 0x0205005b, 0x02041d2e,
+ 0x02050038, 0x0204f5ad, 0x0205005c, 0x0204c899,
+ 0x0205005d, 0x0204195b, 0x0205003b, 0x0204fb54,
+ 0x0205005e, 0x02041444, 0x0205003d, 0x02040000,
+ 0x02050055, 0x02041fd8, 0x02050056, 0x02040045,
+ 0x02050057, 0x02041fd8, 0x0205002c, 0x0204ffc2,
+ 0x02050026, 0x02042828, 0x02050029, 0x02040250,
+ 0x02050004, 0x0204c09e, 0x0205000e, 0x02045001,
+};
+
+const u32 pc_beep_verbs[0] = {};
+
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/hp/folio_9480m_bdw/pei_data.c b/src/mainboard/hp/folio_9480m_bdw/pei_data.c
new file mode 100644
index 0000000000..9d2659c76a
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/pei_data.c
@@ -0,0 +1,37 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/pei_data.h>
+#include <soc/pei_wrapper.h>
+
+void mainboard_fill_pei_data(struct pei_data *pei_data)
+{
+ pei_data->ec_present = 1;
+
+ pei_data->dimm_channel0_disabled = 2;
+ pei_data->dimm_channel1_disabled = 2;
+ pei_data->spd_addresses[0] = 0xa0;
+ pei_data->spd_addresses[2] = 0xa4;
+ pei_data->dq_pins_interleaved = 1;
+
+ pei_data_usb2_port(pei_data, 0, 0x0080, 1, USB_OC_PIN_SKIP,
+ USB_PORT_BACK_PANEL);
+ pei_data_usb2_port(pei_data, 1, 0x0040, 1, USB_OC_PIN_SKIP,
+ USB_PORT_BACK_PANEL);
+ pei_data_usb2_port(pei_data, 2, 0x0040, 1, USB_OC_PIN_SKIP,
+ USB_PORT_BACK_PANEL);
+ pei_data_usb2_port(pei_data, 3, 0x0080, 1, USB_OC_PIN_SKIP,
+ USB_PORT_MINI_PCIE);
+ pei_data_usb2_port(pei_data, 4, 0x0110, 1, USB_OC_PIN_SKIP,
+ USB_PORT_BACK_PANEL);
+ pei_data_usb2_port(pei_data, 5, 0x0080, 1, USB_OC_PIN_SKIP,
+ USB_PORT_MINI_PCIE);
+ pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP,
+ USB_PORT_BACK_PANEL);
+ pei_data_usb2_port(pei_data, 7, 0x0040, 1, USB_OC_PIN_SKIP,
+ USB_PORT_BACK_PANEL);
+
+ pei_data_usb3_port(pei_data, 0, 1, USB_OC_PIN_SKIP, 0);
+ pei_data_usb3_port(pei_data, 1, 1, USB_OC_PIN_SKIP, 0);
+ pei_data_usb3_port(pei_data, 2, 1, USB_OC_PIN_SKIP, 0);
+ pei_data_usb3_port(pei_data, 3, 0, USB_OC_PIN_SKIP, 0);
+}
diff --git a/src/mainboard/hp/folio_9480m_bdw/romstage.c b/src/mainboard/hp/folio_9480m_bdw/romstage.c
new file mode 100644
index 0000000000..8fc2f9eaf7
--- /dev/null
+++ b/src/mainboard/hp/folio_9480m_bdw/romstage.c
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/pei_data.h>
+#include <soc/pei_wrapper.h>
+#include <soc/romstage.h>
+
+void mainboard_pre_raminit(struct romstage_params *rp)
+{
+ /* Fill out PEI DATA */
+ mainboard_fill_pei_data(&rp->pei_data);
+}
+
+void mainboard_post_raminit(struct romstage_params *rp)
+{
+}