John Su has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85583?usp=email )
Change subject: mb/trulo/var/uldrenite: Configuration Network and Audio ......................................................................
mb/trulo/var/uldrenite: Configuration Network and Audio
1. Configuration WLAN, WWAN and audio 2. Enable WWAN driver 3. Enable HDA driver
BUG=b:380789023 TEST=emerge-nissa coreboot
Change-Id: I2fd292550700817f15813dabfbaf9ccab3a907d8 Signed-off-by: John Su john_su@compal.corp-partner.google.com --- M src/mainboard/google/brya/Kconfig M src/mainboard/google/brya/variants/uldrenite/Makefile.mk M src/mainboard/google/brya/variants/uldrenite/include/variant/gpio.h M src/mainboard/google/brya/variants/uldrenite/overridetree.cb 4 files changed, 63 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/85583/1
diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index d76ec41..8a5bf5f 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -614,6 +614,10 @@ select BOARD_GOOGLE_BASEBOARD_TRULO select SOC_INTEL_TWINLAKE select SOC_INTEL_TCSS_USE_PDC_PMC_USBC_MUX_CONFIGURATION + select SOC_INTEL_COMMON_BLOCK_HDA_VERB + select HAVE_PCIE_WWAN + select HAVE_WWAN_POWER_SEQUENCE + select DRIVERS_WWAN_FM350GL
config BOARD_GOOGLE_VELL select BOARD_GOOGLE_BASEBOARD_BRYA diff --git a/src/mainboard/google/brya/variants/uldrenite/Makefile.mk b/src/mainboard/google/brya/variants/uldrenite/Makefile.mk index 91f031e..c3c135b 100644 --- a/src/mainboard/google/brya/variants/uldrenite/Makefile.mk +++ b/src/mainboard/google/brya/variants/uldrenite/Makefile.mk @@ -3,3 +3,5 @@ bootblock-y += gpio.c romstage-y += gpio.c ramstage-y += gpio.c + +ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_HDA_VERB) += hda_verb.c diff --git a/src/mainboard/google/brya/variants/uldrenite/include/variant/gpio.h b/src/mainboard/google/brya/variants/uldrenite/include/variant/gpio.h index c4fe342..25edb0c 100644 --- a/src/mainboard/google/brya/variants/uldrenite/include/variant/gpio.h +++ b/src/mainboard/google/brya/variants/uldrenite/include/variant/gpio.h @@ -5,4 +5,10 @@
#include <baseboard/gpio.h>
+#define WWAN_FCPO GPP_H23 +#define WWAN_RST GPP_F12 +#define WWAN_PERST GPP_H13 +#define T1_OFF_MS 20 +#define T2_OFF_MS 10 + #endif diff --git a/src/mainboard/google/brya/variants/uldrenite/overridetree.cb b/src/mainboard/google/brya/variants/uldrenite/overridetree.cb index bc8850d..f71f659 100644 --- a/src/mainboard/google/brya/variants/uldrenite/overridetree.cb +++ b/src/mainboard/google/brya/variants/uldrenite/overridetree.cb @@ -9,6 +9,9 @@
register "tcc_offset" = "5" # TCC of 100
+ # Enable CNVi BT + register "cnvi_bt_core" = "true" + # eMMC HS400 register "emmc_enable_hs400_mode" = "true"
@@ -75,6 +78,13 @@ # Bit 1,3 - AUX lines are not swapped on the motherboard for either C0 or C1. register "tcss_aux_ori" = "0"
+ # HD Audio + register "pch_hda_dsp_enable" = "1" + register "pch_hda_audio_link_hda_enable" = "1" + register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T" + register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ" + register "pch_hda_idisp_codec_enable" = "1" + # Configure external V1P05/Vnn/VnnSx Rails register "ext_fivr_settings" = "{ .configure_ext_fivr = 1, @@ -290,6 +300,14 @@ end end device ref shared_sram on end + device ref cnvi_wifi on + chip drivers/wifi/generic + register "wake" = "GPE0_PME_B0" + register "enable_cnvi_ddr_rfim" = "true" + register "add_acpi_dma_property" = "true" + device generic 0 on end + end + end device ref i2c0 on chip drivers/i2c/tpm register "hid" = ""GOOG0005"" @@ -395,6 +413,31 @@ device i2c 40 on end end #GTCH7502 end #I2C5 + device ref pcie_rp2 on + # Enable WWAN Card PCIE 2 using clk 2 + register "pch_pcie_rp[PCH_RP(2)]" = "{ + .clk_src = 2, + .clk_req = 2, + .flags = PCIE_RP_LTR | PCIE_RP_AER, + }" + chip soc/intel/common/block/pcie/rtd3 + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F13)" + register "reset_off_delay_ms" = "20" + register "srcclk_pin" = "2" + register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL" + register "skip_on_off_support" = "true" + device generic 0 alias rp2_rtd3 on end + end + chip drivers/wwan/fm + register "fcpo_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H23)" + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F12)" + register "perst_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F13)" + register "wake_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E16)" + register "add_acpi_dma_property" = "true" + use rp2_rtd3 as rtd3dev + device generic 0 alias rp2_wwan on end + end + end #PCIE2 WWAN card device ref heci1 on end device ref emmc on end device ref uart0 on end @@ -404,5 +447,13 @@ end end device ref pmc hidden end + device ref hda on + chip drivers/sof + register "spkr_tplg" = "max98360a" + register "jack_tplg" = "rt5682" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on end + end + end end end