blob: 5c728077da4ff2a72eb2857ee4fc26b9ab3ea0b2 [file] [log] [blame]
Andrew Wu81c70fb2013-08-13 16:37:56 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 DMP Electronics Inc.
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.
Andrew Wu81c70fb2013-08-13 16:37:56 +080014 */
15
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020016#include <device/azalia_device.h>
17
18const u32 cim_verb_data[] = {
Andrew Wu81c70fb2013-08-13 16:37:56 +080019 /* coreboot specific header */
20 0x10ec0262, // Codec Vendor / Device ID: Realtek ALC262
21 0x10714700, // Subsystem ID
22 0x0000000f, // Number of jacks
23
24 /* ===== HDA Codec Subsystem ID Verb-table ===== */
25 /* HDA Codec Subsystem ID : 0x10EC0000 */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020026 AZALIA_SUBVENDOR(0x0, 0x10ec0000),
Andrew Wu81c70fb2013-08-13 16:37:56 +080027
28 /* ===== Pin Widget Verb-table ===== */
29 /* Widget node 0x01 : */
30 0x0017ff00,
31 0x0017ff00,
32 0x0017ff00,
33 0x0017ff00,
34 /* Pin widget 0x11 - S/PDIF-OUT2 */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020035 AZALIA_PIN_CFG(0x0, 0x11, 0x40000000),
Andrew Wu81c70fb2013-08-13 16:37:56 +080036 /* Pin widget 0x12 - DMIC */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020037 AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080038 /* Pin widget 0x14 - LINE-OUT (Port-D) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020039 AZALIA_PIN_CFG(0x0, 0x14, 0x01014110),
Andrew Wu81c70fb2013-08-13 16:37:56 +080040 /* Pin widget 0x15 - HP-OUT (Port-A) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020041 AZALIA_PIN_CFG(0x0, 0x15, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080042 /* Pin widget 0x16 - MONO-OUT */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020043 AZALIA_PIN_CFG(0x0, 0x16, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080044 /* Pin widget 0x18 - MIC1 (Port-B) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020045 AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080046 /* Pin widget 0x19 - MIC2 (Port-F) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020047 AZALIA_PIN_CFG(0x0, 0x19, 0x02a19130),
Andrew Wu81c70fb2013-08-13 16:37:56 +080048 /* Pin widget 0x1A - LINE1 (Port-C) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020049 AZALIA_PIN_CFG(0x0, 0x1a, 0x01813140),
Andrew Wu81c70fb2013-08-13 16:37:56 +080050 /* Pin widget 0x1B - LINE2 (Port-E) */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020051 AZALIA_PIN_CFG(0x0, 0x1b, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080052 /* Pin widget 0x1C - CD-IN */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020053 AZALIA_PIN_CFG(0x0, 0x1c, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080054 /* Pin widget 0x1D - BEEP-IN */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020055 AZALIA_PIN_CFG(0x0, 0x1d, 0x40354629),
Andrew Wu81c70fb2013-08-13 16:37:56 +080056 /* Pin widget 0x1E - S/PDIF-OUT */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020057 AZALIA_PIN_CFG(0x0, 0x1e, 0x18561120),
Andrew Wu81c70fb2013-08-13 16:37:56 +080058 /* Pin widget 0x1F - S/PDIF-IN */
Vladimir Serbinenko02d674a2014-09-04 22:04:11 +020059 AZALIA_PIN_CFG(0x0, 0x1f, 0x411111f0),
Andrew Wu81c70fb2013-08-13 16:37:56 +080060};
Vladimir Serbinenko75c83872014-09-05 01:01:31 +020061
62const u32 pc_beep_verbs[0] = {};
63
64AZALIA_ARRAY_SIZES;