blob: d18d8d29c8aced495d53c64095993c42e0514981 [file] [log] [blame]
Angel Ponsd32b6de2020-04-03 01:23:13 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer155e9b52012-04-27 23:19:58 +02002
Vladimir Serbinenko75c83872014-09-05 01:01:31 +02003#include <device/azalia_device.h>
4
5const u32 cim_verb_data[] = {
Stefan Reinauer155e9b52012-04-27 23:19:58 +02006 /* coreboot specific header */
Matt DeVillierb3d4abe2017-07-06 17:17:04 -05007 0x10134210, // Codec Vendor / Device ID: Cirrus Logic CS4210
Matt DeVillier99acf272017-07-06 22:21:14 -05008 0x152D0924, // Subsystem ID
Stefan Reinauer155e9b52012-04-27 23:19:58 +02009 0x00000007, // Number of jacks
10
Matt DeVillier99acf272017-07-06 22:21:14 -050011 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x152D0924 */
Angel Ponsec211702019-12-19 19:37:21 +010012 AZALIA_SUBVENDOR(0, 0x152D0924),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020013
14 0x00170500,
15
16 /* Pin Widget Verb Table */
17
18 /* Pin Complex (NID 0x05) */
Angel Ponsec211702019-12-19 19:37:21 +010019 AZALIA_PIN_CFG(0, 0x05, 0x022110f0),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020020
21 /* Pin Complex (NID 0x06) */
Angel Ponsec211702019-12-19 19:37:21 +010022 AZALIA_PIN_CFG(0, 0x06, 0x901700f0),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020023
24 /* Pin Complex (NID 0x07) */
Angel Ponsec211702019-12-19 19:37:21 +010025 AZALIA_PIN_CFG(0, 0x07, 0x02a110f0),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020026
27 /* Pin Complex (NID 0x08) */
Angel Ponsec211702019-12-19 19:37:21 +010028 AZALIA_PIN_CFG(0, 0x08, 0x77a70037),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020029
30 /* Pin Complex (NID 0x09) */
Angel Ponsec211702019-12-19 19:37:21 +010031 AZALIA_PIN_CFG(0, 0x09, 0xb7a6003e),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020032
33 /* Pin Complex (NID 0x0a) */
Angel Ponsec211702019-12-19 19:37:21 +010034 AZALIA_PIN_CFG(0, 0x0a, 0x434510f0),
Stefan Reinauer155e9b52012-04-27 23:19:58 +020035};
Dylan Reidb98d0782012-04-27 11:37:33 -070036
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020037const u32 pc_beep_verbs[] = {
Dylan Reidb98d0782012-04-27 11:37:33 -070038 0x00170500, /* power up codec */
39 0x00270500, /* power up DAC */
40 0x00670500, /* power up speaker */
41 0x00670740, /* enable speaker output */
42 0x0023B04B, /* set DAC gain */
43};
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020044AZALIA_ARRAY_SIZES;