summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorTyler Wang <tyler.wang@quanta.corp-partner.google.com>2024-11-26 16:40:10 +0800
committerSubrata Banik <subratabanik@google.com>2024-11-28 09:10:05 +0000
commit57346fadf56803f0163f2086f9e7f0b521aa42bc (patch)
treecd5ab58748587b97373679c181383df8c9ee23e2 /src/mainboard/google
parent39237534851cbb49c3438e8f070e964ddfa211c4 (diff)
mb/google/rex/var/kanix: Add LAN RTL8125BG related settings
Add LAN RTL8125BG related settings based on schematic(ver.1122A). BUG=b:380218793, b:366291025 TEST=emerge-rex coreboot pass Change-Id: Icc24f00406d5f91e38725588109c61b7bad099c3 Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85322 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/rex/Kconfig3
-rw-r--r--src/mainboard/google/rex/variants/kanix/gpio.c4
-rw-r--r--src/mainboard/google/rex/variants/kanix/overridetree.cb17
3 files changed, 22 insertions, 2 deletions
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig
index e98471a394..73f28f335f 100644
--- a/src/mainboard/google/rex/Kconfig
+++ b/src/mainboard/google/rex/Kconfig
@@ -71,6 +71,9 @@ config BOARD_GOOGLE_MODEL_KANIX
def_bool n
select BOARD_GOOGLE_BASEBOARD_REX
select DRIVERS_GENERIC_ALC1015
+ select RT8168_GEN_ACPI_POWER_RESOURCE
+ select RT8168_GET_MAC_FROM_VPD
+ select RT8168_SET_LED_MODE
select SOC_INTEL_CSE_LITE_SKU
select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
select SOC_INTEL_CSE_SEND_EOP_ASYNC
diff --git a/src/mainboard/google/rex/variants/kanix/gpio.c b/src/mainboard/google/rex/variants/kanix/gpio.c
index a319429d66..d9a02f797b 100644
--- a/src/mainboard/google/rex/variants/kanix/gpio.c
+++ b/src/mainboard/google/rex/variants/kanix/gpio.c
@@ -195,8 +195,8 @@ static const struct pad_config gpio_table[] = {
PAD_CFG_GPI_LOCK(GPP_E02, NONE, LOCK_CONFIG),
/* GPP_E03 : [] ==> GSC_SOC_INT_ODL */
PAD_CFG_GPI_APIC_LOCK(GPP_E03, NONE, LEVEL, INVERT, LOCK_CONFIG),
- /* GPP_E04 : [] ==> SOC_PEN_DETECT, test point */
- PAD_NC(GPP_E04, NONE),
+ /* GPP_E04 : [] ==> SOC_WAKE_L ==> LAN_WAKE_ODL */
+ PAD_CFG_GPI_SCI_LOW(GPP_E04, NONE, DEEP, EDGE_SINGLE),
/* GPP_E05 : [] ==> USB_A0_RT_RST_ODL */
PAD_CFG_GPO(GPP_E05, 1, DEEP),
/* GPP_E06 : GPP_E06_STRAP ==> Component NC */
diff --git a/src/mainboard/google/rex/variants/kanix/overridetree.cb b/src/mainboard/google/rex/variants/kanix/overridetree.cb
index bddabdfb08..d23589b776 100644
--- a/src/mainboard/google/rex/variants/kanix/overridetree.cb
+++ b/src/mainboard/google/rex/variants/kanix/overridetree.cb
@@ -552,6 +552,23 @@ chip soc/intel/meteorlake
device generic 0 on end
end
end #PCIE5 WLAN card
+ device ref pcie_rp6 on
+ chip drivers/net
+ register "wake" = "GPE0_DW1_04"
+ register "led_feature" = "0xe0"
+ register "customized_led0" = "0x23f"
+ register "customized_led2" = "0x028"
+ register "enable_aspm_l1_2" = "1"
+ register "add_acpi_dma_property" = "true"
+ device pci 00.0 on end
+ end
+ # Enable PCIE 6 using clk 6
+ register "pcie_rp[PCH_RP(6)]" = "{
+ .clk_src = 6,
+ .clk_req = 6,
+ .flags = PCIE_RP_LTR | PCIE_RP_AER,
+ }"
+ end # RTL8125 Ethernet NIC
device ref gspi1 on
chip drivers/spi/acpi
register "name" = ""CRFP""