aboutsummaryrefslogtreecommitdiff
path: root/src/ec/hp/kbc1126/ec.h
blob: 2a7cc531c682f7159ea1d71621497b6e0fb7d11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * This file is part of the coreboot project.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef _EC_HP_KBC1126_EC_H
#define _EC_HP_KBC1126_EC_H

#define KBC1100_PM1              1            /* PM1 */
#define SMSCSUPERIO_SP1          4            /* Com1 */
#define SMSCSUPERIO_SP2          5            /* Com2 */
#define KBC1100_KBC              7            /* Keyboard */
#define KBC1100_EC0              8            /* EC Channel 0 */
#define KBC1100_MAILBOX          9            /* Mail Box */
#define KBC1100_GPIO             0x0A         /* GPIO */
#define KBC1100_SPI              0x0B         /* Share flash interface */

#define KBC1100_EC1              0x0D         /* EC Channel 1 */
#define KBC1100_EC2              0x0E         /* EC Channel 2 */

/* early init */
void kbc1126_enter_conf(void);
void kbc1126_exit_conf(void);
void kbc1126_mailbox_init(void);
void kbc1126_kbc_init(void);
void kbc1126_ec_init(void);
void kbc1126_com1_init(void);
void kbc1126_pm1_init(void);
void kbc1126_disable4e(void);

#endif /* _EC_HP_KBC1126_EC_H */