Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2014 Vladimir Serbinenko. |
| 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 | * or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 15 | */ |
| 16 | |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 17 | #include <device/azalia_device.h> |
| 18 | |
| 19 | const u32 cim_verb_data[] = { |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 20 | /* coreboot specific header */ |
| 21 | 0x10ec0272, /* Codec Vendor / Device ID: Realtek ALC272X */ |
| 22 | 0x10250379, /* Subsystem ID */ |
| 23 | 0x00000006, /* Number of 4 dword sets */ |
| 24 | |
| 25 | /* NID 0x01: Subsystem ID. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 26 | AZALIA_SUBVENDOR(0x0, 0x10250379), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 27 | |
| 28 | /* NID 0x14. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 29 | AZALIA_PIN_CFG(0x0, 0x14, 0x99130110), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 30 | |
| 31 | /* NID 0x18. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 32 | AZALIA_PIN_CFG(0x0, 0x18, 0x03A11830), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 33 | |
| 34 | /* NID 0x19. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 35 | AZALIA_PIN_CFG(0x0, 0x19, 0x99A30920), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 36 | |
| 37 | /* NID 0x1D. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 38 | AZALIA_PIN_CFG(0x0, 0x1D, 0x4017992D), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 39 | |
| 40 | /* NID 0x21. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 41 | AZALIA_PIN_CFG(0x0, 0x21, 0x0321101F), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 42 | |
| 43 | 0x80862804, /* Codec Vendor / Device ID: Intel Ibexpeak HDMI. */ |
| 44 | 0x80860101, /* Subsystem ID */ |
| 45 | 0x00000004, /* Number of 4 dword sets */ |
| 46 | |
| 47 | /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21b5 */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 48 | AZALIA_SUBVENDOR(0x3, 0x80860101), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 49 | |
| 50 | /* NID 0x04. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 51 | AZALIA_PIN_CFG(0x3, 0x04, 0x18560010), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 52 | |
| 53 | /* NID 0x05. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 54 | AZALIA_PIN_CFG(0x3, 0x05, 0x58560020), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 55 | |
| 56 | /* NID 0x06. */ |
Vladimir Serbinenko | 02d674a | 2014-09-04 22:04:11 +0200 | [diff] [blame] | 57 | AZALIA_PIN_CFG(0x3, 0x06, 0x58560030), |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 58 | }; |
Vladimir Serbinenko | 75c8387 | 2014-09-05 01:01:31 +0200 | [diff] [blame] | 59 | |
| 60 | const u32 pc_beep_verbs[0] = {}; |
| 61 | |
| 62 | AZALIA_ARRAY_SIZES; |