blob: bf1129eae5aa42e654b19ab432f81df7241345fc [file] [log] [blame]
Duncan Laurie3ece50d2013-06-24 14:57:40 -07001/*
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 Laurie3ece50d2013-06-24 14:57:40 -070014 */
15
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020016#include <device/azalia_device.h>
17
18const u32 cim_verb_data[] = {
Duncan Laurie3ece50d2013-06-24 14:57:40 -070019 /* 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 Serbinenko02d674a2014-09-04 22:04:11 +020025 AZALIA_SUBVENDOR(0x0, 0x10ec0283),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070026
27 /* Pin Widget Verb Table */
28
29 /* Pin Complex (NID 0x12) DMIC - interior mobile lid */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020030 AZALIA_PIN_CFG(0x0, 0x12, 0xb7a61010),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070031
32 /* Pin Complex (NID 0x14) SPKR-OUT PORTD */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020033 // 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 Laurie3ece50d2013-06-24 14:57:40 -070038
39 /* Pin Complex (NID 0x17) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020040 AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070041
42 /* Pin Complex (NID 0x18) MIC1 PORTB */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020043 // group 1, cap 1
44 // black, jack detect
45 // mic in, analog
46 // connector, left panel
47 AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070048
49 /* Pin Complex (NID 0x19) MIC2 PORTF */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020050 AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070051
52 /* Pin Complex (NID 0x1A) LINE1 PORTC */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020053 AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070054
55 /* Pin Complex (NID 0x1B) LINE2 PORTE */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020056 AZALIA_PIN_CFG(0x0, 0x1a, 0x411111f0),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070057
58 /* Pin Complex (NID 0x1d) PCBeep */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020059 // 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 Laurie3ece50d2013-06-24 14:57:40 -070064
65 /* Pin Complex (NID 0x1E) SPDIF-OUT */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020066 AZALIA_PIN_CFG(0x0, 0x1e, 0x411111f0),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070067
68 /* Pin Complex (NID 0x21) HPOUT PORT-I */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020069 // group1,
70 // black, jack detect
71 // HPOut, 1/8 stereo
72 // connector, left panel
73 AZALIA_PIN_CFG(0x0, 0x21, 0x0321101f),
Duncan Laurie3ece50d2013-06-24 14:57:40 -070074
75};
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020076
77const u32 pc_beep_verbs[0] = {};
78
79AZALIA_ARRAY_SIZES;