summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/baytrail
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-10-13 08:30:04 (GMT)
committerBin Meng <bmeng.cn@gmail.com>2017-10-19 03:37:51 (GMT)
commitabddcd52ab4979a57dc90ce1b90f8121b43d91b2 (patch)
tree1c9ce5d225e9a594463049ee48f51b6fa61a56ea /arch/x86/cpu/baytrail
parent3322a8e1a3dd9964b249673f5922a5093bfaf201 (diff)
downloadu-boot-abddcd52ab4979a57dc90ce1b90f8121b43d91b2.tar.xz
x86: fsp: Consolidate Azalia header file
So far there are two copies of Azalia struct defines with one in baytrail and the other one in braswell. This consolidates these two into one, put it in the common place, and remove the prefix pch_ to these structs to make their names more generic. This also corrects reset_wait_timer from us to ms. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/x86/cpu/baytrail')
-rw-r--r--arch/x86/cpu/baytrail/fsp_configs.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/x86/cpu/baytrail/fsp_configs.c b/arch/x86/cpu/baytrail/fsp_configs.c
index 45f9bf9..926f26b 100644
--- a/arch/x86/cpu/baytrail/fsp_configs.c
+++ b/arch/x86/cpu/baytrail/fsp_configs.c
@@ -8,13 +8,12 @@
#include <common.h>
#include <fdtdec.h>
-#include <asm/arch/fsp/azalia.h>
#include <asm/fsp/fsp_support.h>
DECLARE_GLOBAL_DATA_PTR;
/* ALC262 Verb Table - 10EC0262 */
-static const uint32_t verb_table_data13[] = {
+static const u32 verb_table_data13[] = {
/* Pin Complex (NID 0x11) */
0x01171cf0,
0x01171d11,
@@ -94,7 +93,7 @@ static const uint32_t verb_table_data13[] = {
* Codec Address: CAd value (0/1/2)
* Codec Vendor: 0x10EC0262
*/
-static const struct pch_azalia_verb_table azalia_verb_table[] = {
+static const struct azalia_verb_table azalia_verb_table[] = {
{
{
0x10ec0262,
@@ -108,16 +107,16 @@ static const struct pch_azalia_verb_table azalia_verb_table[] = {
}
};
-const struct pch_azalia_config azalia_config = {
+const struct azalia_config azalia_config = {
.pme_enable = 1,
.docking_supported = 1,
.docking_attached = 0,
.hdmi_codec_enable = 1,
.azalia_v_ci_enable = 1,
.rsvdbits = 0,
- .azalia_verb_table_num = 1,
- .azalia_verb_table = azalia_verb_table,
- .reset_wait_timer_us = 300
+ .verb_table_num = 1,
+ .verb_table = azalia_verb_table,
+ .reset_wait_timer_ms = 300
};
/**