Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2009-2010 iWave Systems |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
Jonathan A. Kollasch | ec505ad2 | 2015-07-07 12:57:46 -0500 | [diff] [blame] | 16 | #include <device/azalia_device.h> |
| 17 | |
| 18 | const u32 cim_verb_data[] = { |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 19 | /* coreboot specific header */ |
| 20 | 0x111d76d5, // Codec Vendor / Device ID: IDT 92HD81 |
| 21 | 0x00000000, // Subsystem ID |
| 22 | 0x0000000a, // Number of jacks |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 23 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 24 | /* NID 0x0a, Port A (capless headphone) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 25 | 0x0A71C40, |
| 26 | 0x0A71D10, |
| 27 | 0x0A71EA1, |
| 28 | 0x0A71F02, |
| 29 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 30 | /* NID 0x0b, Port B (capless headphone) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 31 | 0x0B71C1F, |
| 32 | 0x0B71D10, |
| 33 | 0x0B71E21, |
| 34 | 0x0B71F02, |
| 35 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 36 | /* |
| 37 | * NID 0x0c, Port C (Line IN/OUT+MIC for YD/UA revisions, and |
| 38 | * Line IN+MIC for TA revision) |
| 39 | */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 40 | 0x0C71CF0, |
| 41 | 0x0C71D00, |
| 42 | 0x0C71E00, |
| 43 | 0x0C71F40, |
| 44 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 45 | /* NID 0x0d, Port D (BTL output - EAPD control) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 46 | 0x0D71C10, |
| 47 | 0x0D71D41, |
| 48 | 0x0D71E10, |
| 49 | 0x0D71F10, |
| 50 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 51 | /* NID 0x0e, Port E (Line IN/OUT) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 52 | 0x0E71CF0, |
| 53 | 0x0E71D00, |
| 54 | 0x0E71E00, |
| 55 | 0x0E71F40, |
| 56 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 57 | /* NID 0x0f, Port F (Line IN/OUT, MIC) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 58 | 0x0F71CF0, |
| 59 | 0x0F71D00, |
| 60 | 0x0F71E00, |
| 61 | 0x0F71F40, |
| 62 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 63 | /* NID 0x10, MonoOut (output-only) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 64 | 0x1071CF0, |
| 65 | 0x1071D00, |
| 66 | 0x1071EF0, |
| 67 | 0x1071F40, |
| 68 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 69 | /* NID 0x10, DigMic0 (Digital Microphone 0) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 70 | 0x1171CF0, |
| 71 | 0x1171D00, |
| 72 | 0x1171E00, |
| 73 | 0x1171F40, |
| 74 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 75 | /* NID 0x1f, Dig0Pin (First Digital Output Pin) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 76 | 0x1F71C50, |
| 77 | 0x1F71D21, |
| 78 | 0x1F71E40, |
| 79 | 0x1F71F10, |
| 80 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 81 | /* NID 0x20, Dig1Pin (Second Digital Output Pin / DMIC Input Pin) */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 82 | 0x2071CF0, |
| 83 | 0x2071D00, |
| 84 | 0x2071E00, |
| 85 | 0x2071F40, |
| 86 | |
Uwe Hermann | 405721d | 2010-12-18 13:22:37 +0000 | [diff] [blame] | 87 | /* BTL Gain */ |
| 88 | 0x017F417, /* Gain = 16.79dB */ |
Patrick Georgi | be61a17 | 2010-12-18 07:48:43 +0000 | [diff] [blame] | 89 | }; |
Jonathan A. Kollasch | ec505ad2 | 2015-07-07 12:57:46 -0500 | [diff] [blame] | 90 | |
| 91 | const u32 pc_beep_verbs[0] = {}; |
| 92 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 93 | AZALIA_ARRAY_SIZES; |