diff options
author | Malik_Hsu <malik_hsu@wistron.corp-partner.google.com> | 2021-12-15 10:32:20 +0800 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-12-23 15:34:33 +0000 |
commit | a9796ce010efe31172eaa9677fd7ad1de313a257 (patch) | |
tree | 131bc1f4e357ef78ad3ef42aaad166e3f344eeaf /src | |
parent | 8402c421b1e607164297d3d3e93225a205893610 (diff) |
mb/google/brya/variants/primus: remove board_id check for ALC5682I-VS
The board ID check for audio codec is no longer required, therefore
remove it.
BUG=b:210705216
TEST=emerge-brya coreboot chromeos-bootimage and check audio function
Signed-off-by: Malik_Hsu <malik_hsu@wistron.corp-partner.google.com>
Change-Id: Ifbe838186da2e64737a9ffb557cf324124e79a9d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60128
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: YH Lin <yueherngl@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/brya/variants/primus/variant.c | 7 | ||||
-rw-r--r-- | src/mainboard/google/brya/variants/primus4es/variant.c | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/mainboard/google/brya/variants/primus/variant.c b/src/mainboard/google/brya/variants/primus/variant.c index 4c2458acf7..90999ec223 100644 --- a/src/mainboard/google/brya/variants/primus/variant.c +++ b/src/mainboard/google/brya/variants/primus/variant.c @@ -17,14 +17,11 @@ static void devtree_update_emmc_rtd3(uint32_t board_ver) emmc_rtd3->enabled = 0; } -static void devtree_update_audio_codec(uint32_t board_ver) +static void devtree_update_audio_codec(void) { struct device *audio_codec = DEV_PTR(audio_codec); struct drivers_i2c_generic_config *config = audio_codec->chip_info; - if (board_ver <= 1) - return; - if (fw_config_probe(FW_CONFIG(AUDIO, MAX98360_ALC5682I_VS_I2S))) config->hid = "RTL5682"; } @@ -58,5 +55,5 @@ void variant_devtree_update(void) uint32_t board_ver = board_id(); disable_unused_gpios(); devtree_update_emmc_rtd3(board_ver); - devtree_update_audio_codec(board_ver); + devtree_update_audio_codec(); } diff --git a/src/mainboard/google/brya/variants/primus4es/variant.c b/src/mainboard/google/brya/variants/primus4es/variant.c index 4c2458acf7..90999ec223 100644 --- a/src/mainboard/google/brya/variants/primus4es/variant.c +++ b/src/mainboard/google/brya/variants/primus4es/variant.c @@ -17,14 +17,11 @@ static void devtree_update_emmc_rtd3(uint32_t board_ver) emmc_rtd3->enabled = 0; } -static void devtree_update_audio_codec(uint32_t board_ver) +static void devtree_update_audio_codec(void) { struct device *audio_codec = DEV_PTR(audio_codec); struct drivers_i2c_generic_config *config = audio_codec->chip_info; - if (board_ver <= 1) - return; - if (fw_config_probe(FW_CONFIG(AUDIO, MAX98360_ALC5682I_VS_I2S))) config->hid = "RTL5682"; } @@ -58,5 +55,5 @@ void variant_devtree_update(void) uint32_t board_ver = board_id(); disable_unused_gpios(); devtree_update_emmc_rtd3(board_ver); - devtree_update_audio_codec(board_ver); + devtree_update_audio_codec(); } |