blob: 9ac3c3be6ee2840b2ff8784eec9185f351989f88 [file] [log] [blame]
Samuel Holland82651462017-06-03 03:53:33 -05001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2015 Damien Zammit <damien@zamaudio.com>
5 * Copyright (C) 2017 Samuel Holland <samuel@sholland.org>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17
18#include <device/azalia_device.h>
19
Arthur Heymansf3e50fc2018-12-15 21:38:39 +010020#if IS_ENABLED(CONFIG_BOARD_FOXCONN_G41S_K)
Samuel Holland82651462017-06-03 03:53:33 -050021const u32 cim_verb_data[] = {
22 /* coreboot specific header */
23 0x10ec0888, /* Vendor ID */
24 0x105b0dda, /* Subsystem ID */
25 0x0000000e, /* Number of entries */
26
27 /* Pin Widget Verb Table */
28
29 AZALIA_PIN_CFG(0, 0x11, 0x99430140),
30 AZALIA_PIN_CFG(0, 0x12, 0x411111f0),
31 AZALIA_PIN_CFG(0, 0x14, 0x01014410),
32 AZALIA_PIN_CFG(0, 0x15, 0x411111f0),
33 AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
34 AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
35 AZALIA_PIN_CFG(0, 0x18, 0x01a19c50),
36 AZALIA_PIN_CFG(0, 0x19, 0x02a19c60),
37 AZALIA_PIN_CFG(0, 0x1a, 0x0181345f),
38 AZALIA_PIN_CFG(0, 0x1b, 0x02214c20),
39 AZALIA_PIN_CFG(0, 0x1c, 0x411111f0),
40 AZALIA_PIN_CFG(0, 0x1d, 0x4004c601),
41 AZALIA_PIN_CFG(0, 0x1e, 0x01441130),
42 AZALIA_PIN_CFG(0, 0x1f, 0x411111f0),
43};
Arthur Heymansf3e50fc2018-12-15 21:38:39 +010044#else /* CONFIG_BOARD_FOXCONN_G41M */
45const u32 cim_verb_data[] = {
46 /* coreboot specific header */
47 0x10ec0888, /* Vendor ID */
48 0x105b0dc0, /* Subsystem ID */
49 0x0000000e, /* Number of entries */
50
51 /* Pin Widget Verb Table */
52
53 AZALIA_PIN_CFG(2, 0x11, 0x01441140),
54 AZALIA_PIN_CFG(2, 0x12, 0x411111f0),
55 AZALIA_PIN_CFG(2, 0x14, 0x01014410),
56 AZALIA_PIN_CFG(2, 0x15, 0x01011412),
57 AZALIA_PIN_CFG(2, 0x16, 0x01016411),
58 AZALIA_PIN_CFG(2, 0x17, 0x01012414),
59 AZALIA_PIN_CFG(2, 0x18, 0x01a19c50),
60 AZALIA_PIN_CFG(2, 0x19, 0x02a19c60),
61 AZALIA_PIN_CFG(2, 0x1a, 0x0181345f),
62 AZALIA_PIN_CFG(2, 0x1b, 0x02014c20),
63 AZALIA_PIN_CFG(2, 0x1c, 0x593301f0),
64 AZALIA_PIN_CFG(2, 0x1d, 0x4007f603),
65 AZALIA_PIN_CFG(2, 0x1e, 0x99430130),
66 AZALIA_PIN_CFG(2, 0x1f, 0x411111f0),
67};
68#endif
Samuel Holland82651462017-06-03 03:53:33 -050069
70const u32 pc_beep_verbs[0] = {};
71
72const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
73const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);