Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by 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. |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 16 | #include <device/azalia_device.h> |
| 17 | |
| 18 | const u32 cim_verb_data[] = { |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 19 | /* coreboot specific header */ |
| 20 | 0x10ec0283, // Codec Vendor / Device ID: Realtek ALC283 |
| 21 | 0x10ec0283, // Subsystem ID |
| 22 | 0x0000000b, // Number of jacks (NID entries) |
| 23 | |
| 24 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0283 */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 25 | AZALIA_SUBVENDOR(0x0, 0x10ec0283), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 26 | |
| 27 | /* Pin Widget Verb Table */ |
| 28 | |
| 29 | /* Pin Complex (NID 0x12) DMIC - interior mobile lid */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 30 | AZALIA_PIN_CFG(0x0, 0x12, 0xb7a61010), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 31 | |
| 32 | /* Pin Complex (NID 0x14) SPKR-OUT PORTD */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 33 | // group 1, front left/right |
| 34 | // no connector, no jack detect |
| 35 | // speaker out, analog |
| 36 | // fixed function, internal |
| 37 | AZALIA_PIN_CFG(0x0, 0x14, 0x90170110), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 38 | |
| 39 | /* Pin Complex (NID 0x17) */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 40 | AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 41 | |
| 42 | /* Pin Complex (NID 0x18) MIC1 PORTB */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 43 | // group 1, cap 1 |
| 44 | // black, jack detect |
| 45 | // mic in, analog |
| 46 | // connector, left panel |
| 47 | AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 48 | |
| 49 | /* Pin Complex (NID 0x19) MIC2 PORTF */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 50 | AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 51 | |
| 52 | /* Pin Complex (NID 0x1A) LINE1 PORTC */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 53 | AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 54 | |
| 55 | /* Pin Complex (NID 0x1B) LINE2 PORTE */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 56 | AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 57 | |
| 58 | /* Pin Complex (NID 0x1d) PCBeep */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 59 | // eapd low on ex-amp, laptop, custom enable |
| 60 | // mute spkr on hpout |
| 61 | // pcbeep en able, checksum |
| 62 | // no physical, internal |
| 63 | AZALIA_PIN_CFG(0x0, 0x1d, 0x4015812d), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 64 | |
| 65 | /* Pin Complex (NID 0x1E) SPDIF-OUT */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 66 | AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 67 | |
| 68 | /* Pin Complex (NID 0x21) HPOUT PORT-I */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 69 | // group1, |
| 70 | // black, jack detect |
| 71 | // HPOut, 1/8 stereo |
| 72 | // connector, left panel |
| 73 | AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f), |
Duncan Laurie | 3ece50d | 2013-06-24 14:57:40 -0700 | [diff] [blame] | 74 | |
| 75 | }; |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 76 | |
| 77 | const u32 pc_beep_verbs[0] = {}; |
| 78 | |
| 79 | AZALIA_ARRAY_SIZES; |