diff options
author | Eric Lai <ericr_lai@compal.corp-partner.google.com> | 2021-04-15 11:43:02 +0800 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-04-23 14:56:55 +0000 |
commit | 598f2babdcff16698b5928126f7cd8203120a8ea (patch) | |
tree | 5814bc44b7458d28ebc755880e8bc337a3024195 /src/mainboard/google/octopus/mainboard.c | |
parent | 411364564ac2493fd842ad3f877e5ac0e8c3fed1 (diff) |
mb/google/octopus/var/fleex: Add ssfc codec cs42l42 support
Add cs42l42 codec support in fleex.
BUG=b:184103445
TEST=boot to check cs42l42 is functional.
Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: I1571003f8b272a573e6ab9fb525f17659bae8c4c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52363
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/octopus/mainboard.c')
-rw-r--r-- | src/mainboard/google/octopus/mainboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index 5bf87e23f5..65bf286f08 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -25,6 +25,7 @@ #include <variant/gpio.h> extern struct chip_operations drivers_i2c_generic_ops; +extern struct chip_operations drivers_i2c_cs42l42_ops; extern struct chip_operations drivers_i2c_da7219_ops; static bool is_cnvi_held_in_reset(void) @@ -201,6 +202,13 @@ static void audio_codec_device_update(void) continue; } } + + if ((audio_dev->chip_ops == &drivers_i2c_cs42l42_ops) && + (codec == SSFC_AUDIO_CODEC_CS42L42)) { + printk(BIOS_INFO, "enable CS42L42.\n"); + continue; + } + printk(BIOS_INFO, "%s has been disabled\n", audio_dev->chip_ops->name); audio_dev->enabled = 0; } |