mb/google/ruby: Migrate to UFSC
Enable Unified Firmware and Secondary Source Configuration (UFSC) support for Ruby. UFSC standardizes the bitfields and bitmap definitions for firmware configuration. Update overridetree.cb with new UFSC definitions and enable EC_GOOGLE_CHROMEEC_FW_CONFIG_FROM_UFSC. BUG=b:460231264 TEST=util/abuild/abuild -x -t GOOGLE_RUBY -a BRANCH=none Change-Id: If992b89e1c6563404c71af2f77b6170d15c92d61 Signed-off-by: Aamir Bohra <aamirbohra@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90177 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: YH Lin <yueherngl@google.com> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
parent
47101fc224
commit
8575232317
3 changed files with 13 additions and 8 deletions
|
|
@ -155,6 +155,7 @@ config BOARD_GOOGLE_MODEL_RUBY
|
|||
def_bool n
|
||||
select BOARD_GOOGLE_BASEBOARD_FATCAT
|
||||
select DRIVERS_I2C_TAS2563
|
||||
select EC_GOOGLE_CHROMEEC_FW_CONFIG_FROM_UFSC
|
||||
select HAVE_SLP_S0_GATE
|
||||
select MAINBOARD_HAS_GOOGLE_STRAUSS_KEYBOARD
|
||||
|
||||
|
|
|
|||
|
|
@ -107,11 +107,11 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
|
|||
return;
|
||||
}
|
||||
|
||||
if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_NONE))) {
|
||||
if (fw_config_probe(FW_CONFIG(AUDIO_CODEC, AUDIO_CODEC_UNKNOWN))) {
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, audio_disable_pads);
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, bt_i2s_disable_pads);
|
||||
} else if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_TAS2563_ALC5682I_I2S))) {
|
||||
printk(BIOS_INFO, "Configure GPIOs for I2S TAS2563 ALC5682 audio.\n");
|
||||
} else if (fw_config_probe(FW_CONFIG(AUDIO_CODEC, AUDIO_CODEC_ALC5682IVS))) {
|
||||
printk(BIOS_INFO, "Configure GPIOs for I2S ALC5682IVS audio.\n");
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, i2s_enable_pads);
|
||||
printk(BIOS_INFO, "Configure GPIOs for BT offload mode.\n");
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, bt_i2s_enable_pads);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
fw_config
|
||||
field AUDIO 0 1
|
||||
option AUDIO_NONE 0
|
||||
option AUDIO_TAS2563_ALC5682I_I2S 1
|
||||
field AUDIO_CODEC 0 2
|
||||
option AUDIO_CODEC_UNKNOWN 0
|
||||
option AUDIO_CODEC_ALC5682IVS 1
|
||||
end
|
||||
field AUDIO_AMPLIFIER 3 5
|
||||
option AUDIO_AMPLIFIER_UNKNOWN 0
|
||||
option AUDIO_AMPLIFIER_TAS2563 1
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -249,7 +253,7 @@ chip soc/intel/pantherlake
|
|||
register "property_list[0].name" = ""realtek,jd-src""
|
||||
register "property_list[0].integer" = "1"
|
||||
device i2c 1a on
|
||||
probe AUDIO AUDIO_TAS2563_ALC5682I_I2S
|
||||
probe AUDIO_CODEC AUDIO_CODEC_ALC5682IVS
|
||||
end
|
||||
end
|
||||
chip drivers/i2c/tas2563
|
||||
|
|
@ -260,7 +264,7 @@ chip soc/intel/pantherlake
|
|||
register "audio_slots[2]" = "0x4c"
|
||||
register "audio_slots[3]" = "0x4d"
|
||||
device i2c 4a on
|
||||
probe AUDIO AUDIO_TAS2563_ALC5682I_I2S
|
||||
probe AUDIO_AMPLIFIER AUDIO_AMPLIFIER_TAS2563
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue