blob: b1b538e2b94a38565b08f11406c899e049284bf9 [file] [log] [blame]
Lee Leahy32471722015-04-20 15:20:28 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google Inc.
5 * Copyright (C) 2015 Intel Corp.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
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.
Lee Leahy32471722015-04-20 15:20:28 -070015 */
16
17#ifndef _SOC_HDA_H_
18#define _SOC_HDA_H_
19
20/*
21 * PCI config registers.
22 */
23
24#define HDA_DCKSTS 0x4d
25# define HDA_DCKSTS_DS (1 << 7)
26# define HDA_DCKSTS_DM (1 << 0)
27
28#define HDA_DEVC 0x78
29# define HDA_DEVC_MRRS 0x7000
30# define HDA_DEVC_NSNPEN (1 << 11)
31# define HDA_DEVC_AUXPEN (1 << 10)
32# define HDA_DEVC_PEEN (1 << 9)
33# define HDA_DEVC_ETEN (1 << 8)
34# define HDA_DEVC_MAXPAY 0x00e0
35# define HDA_DEVC_ROEN (1 << 4)
36# define HDA_DEVC_URREN (1 << 3)
37# define HDA_DEVC_FEREN (1 << 2)
38# define HDA_DEVC_NFEREN (1 << 1)
39# define HDA_DEVC_CEREN (1 << 0)
40
41#endif /* _SOC_HDA_H_ */