blob: 372f2a13e942222d79aa5dedd2e5385799b4884e [file] [log] [blame]
Iru Cai44d399c2017-03-26 10:25:00 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2017 Iru Cai
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.
14 *
15 */
16
17#ifndef _EC_HP_KBC1126_EC_H
18#define _EC_HP_KBC1126_EC_H
19
20#define KBC1100_PM1 1 /* PM1 */
21#define SMSCSUPERIO_SP1 4 /* Com1 */
22#define SMSCSUPERIO_SP2 5 /* Com2 */
23#define KBC1100_KBC 7 /* Keyboard */
24#define KBC1100_EC0 8 /* EC Channel 0 */
25#define KBC1100_MAILBOX 9 /* Mail Box */
26#define KBC1100_GPIO 0x0A /* GPIO */
27#define KBC1100_SPI 0x0B /* Share flash interface */
28
29#define KBC1100_EC1 0x0D /* EC Channel 1 */
30#define KBC1100_EC2 0x0E /* EC Channel 2 */
31
32/* early init */
33void kbc1126_enter_conf(void);
34void kbc1126_exit_conf(void);
35void kbc1126_mailbox_init(void);
36void kbc1126_kbc_init(void);
37void kbc1126_ec_init(void);
38void kbc1126_com1_init(void);
39void kbc1126_pm1_init(void);
40void kbc1126_disable4e(void);
41
42#endif /* _EC_HP_KBC1126_EC_H */