coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbi_ssfc.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _OCTOPUS_CBI_SSFC__H_
4 #define _OCTOPUS_CBI_SSFC__H_
5 
6 #include <inttypes.h>
7 
8 /****************************************************************************
9  * Octopus CBI Second Source Factory Cache
10  *
11  * SSFC was introduced after variants were MPed already so we can expect there
12  * can be devices in the field without SSFC field in the CBI. For devices
13  * without SSFC field in the CBI, the value of SSFC will be 0 set by get_ssfc()
14  * in the cbi_ssfc.c.
15  *
16  * On the other hand, taking audio codec as the example there are two sources -
17  * DA7219 and RT5682 used in the MPed devices before introducing SSFC. As a
18  * result, the value 0 of each bits group for a specific component is defined as
19  * DEFAULT and different variants should transform this DEFAULT to one of
20  * sources they used as the first sources. In the example here, either DA7219 or
21  * RT5682 should be transformed.
22  */
23 
24 /*
25  * Audio Codec (Bits 9-11)
26  *
27  */
34 };
35 #define SSFC_AUDIO_CODEC_OFFSET 9
36 #define SSFC_AUDIO_CODEC_MASK 0x7
37 
39 
40 #endif /* _OCTOPUS_CBI_SSFC__H_ */
ssfc_audio_codec
Definition: cbi_ssfc.h:28
@ SSFC_AUDIO_CODEC_RT5682_VS
Definition: cbi_ssfc.h:33
@ SSFC_AUDIO_CODEC_CS42L42
Definition: cbi_ssfc.h:32
@ SSFC_AUDIO_CODEC_DEFAULT
Definition: cbi_ssfc.h:29
@ SSFC_AUDIO_CODEC_DA7219
Definition: cbi_ssfc.h:30
@ SSFC_AUDIO_CODEC_RT5682
Definition: cbi_ssfc.h:31
enum ssfc_audio_codec ssfc_get_audio_codec(void)
Definition: cbi_ssfc.c:61