Angel Pons | d32b6de | 2020-04-03 01:23:13 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 2 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 3 | #include <device/azalia_device.h> |
| 4 | |
| 5 | const u32 cim_verb_data[] = { |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 6 | /* coreboot specific header */ |
Matt DeVillier | b3d4abe | 2017-07-06 17:17:04 -0500 | [diff] [blame] | 7 | 0x10134210, // Codec Vendor / Device ID: Cirrus Logic CS4210 |
Matt DeVillier | 99acf27 | 2017-07-06 22:21:14 -0500 | [diff] [blame] | 8 | 0x152D0924, // Subsystem ID |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 9 | 0x00000007, // Number of jacks |
| 10 | |
Matt DeVillier | 99acf27 | 2017-07-06 22:21:14 -0500 | [diff] [blame] | 11 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x152D0924 */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 12 | AZALIA_SUBVENDOR(0, 0x152D0924), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 13 | |
| 14 | 0x00170500, |
| 15 | |
| 16 | /* Pin Widget Verb Table */ |
| 17 | |
| 18 | /* Pin Complex (NID 0x05) */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 19 | AZALIA_PIN_CFG(0, 0x05, 0x022110f0), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 20 | |
| 21 | /* Pin Complex (NID 0x06) */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 22 | AZALIA_PIN_CFG(0, 0x06, 0x901700f0), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 23 | |
| 24 | /* Pin Complex (NID 0x07) */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 25 | AZALIA_PIN_CFG(0, 0x07, 0x02a110f0), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 26 | |
| 27 | /* Pin Complex (NID 0x08) */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 28 | AZALIA_PIN_CFG(0, 0x08, 0x77a70037), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 29 | |
| 30 | /* Pin Complex (NID 0x09) */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 31 | AZALIA_PIN_CFG(0, 0x09, 0xb7a6003e), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 32 | |
| 33 | /* Pin Complex (NID 0x0a) */ |
Angel Pons | ec21170 | 2019-12-19 19:37:21 +0100 | [diff] [blame] | 34 | AZALIA_PIN_CFG(0, 0x0a, 0x434510f0), |
Stefan Reinauer | 155e9b5 | 2012-04-27 23:19:58 +0200 | [diff] [blame] | 35 | }; |
Dylan Reid | b98d078 | 2012-04-27 11:37:33 -0700 | [diff] [blame] | 36 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 37 | const u32 pc_beep_verbs[] = { |
Dylan Reid | b98d078 | 2012-04-27 11:37:33 -0700 | [diff] [blame] | 38 | 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 Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 44 | AZALIA_ARRAY_SIZES; |