diff options
author | Robert Chen <robert.chen@quanta.corp-partner.google.com> | 2022-03-08 14:34:59 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-14 11:13:58 +0000 |
commit | c7c7d9aa13fde83d8dab0df618f3e47407b4a371 (patch) | |
tree | 4bff340784005874f80a49e5a0096b4f1a5c9b34 | |
parent | 1f5c3e2b225fc82878f933c536a7f3eecd934b97 (diff) | |
download | chrome-ec-c7c7d9aa13fde83d8dab0df618f3e47407b4a371.tar.gz |
lantis: Add SSFC field for 2nd source Audio codec
This patch adds SSFC field to support 2nd source audio codec.
BUG=b:222976965
TEST= emerge-dedede chromeos-ec and make sure works normally on lantis.
Change-Id: Ibd596b46cf2470f07cb8cfd051e86f5c91f683f1
Signed-off-by: Robert Chen <robert.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3509335
Reviewed-by: Henry Sun <henrysun@google.com>
Commit-Queue: Henry Sun <henrysun@google.com>
-rw-r--r-- | board/lantis/cbi_ssfc.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/board/lantis/cbi_ssfc.h b/board/lantis/cbi_ssfc.h index 935049b6ae..1226be292b 100644 --- a/board/lantis/cbi_ssfc.h +++ b/board/lantis/cbi_ssfc.h @@ -33,11 +33,22 @@ enum ec_ssfc_lid_sensor { SSFC_SENSOR_LIS2DWL = 3 }; +/* + * Audio Codec Source(Bit 8-10) + */ +enum ec_ssfc_audio_codec_source { + SSFC_AUDIO_CODEC_DEFAULT = 0, + SSFC_AUDIO_CODEC_VD = 1, + SSFC_ADUIO_CODEC_VS = 2, +}; + union dedede_cbi_ssfc { struct { uint32_t base_sensor : 3; uint32_t lid_sensor : 3; - uint32_t reserved_2 : 26; + uint32_t reserved : 2; + uint32_t audio_codec_source : 3; + uint32_t reserved_2 : 21; }; uint32_t raw_value; }; |