coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sch5545_ec.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SCH5545_BOARD_EC_H
4 #define SCH5545_BOARD_EC_H
5 
6 #include <stdint.h>
7 
8 #define READ_OP 0
9 #define WRITE_OP 1
10 
11 #define EC_HWM_LDN 1
12 #define EC_GPIO_LDN 2
13 
14 /* EC GPIO configuration */
15 #define EC_GPIO_PP (0 << 0)
16 #define EC_GPIO_OD (1 << 0)
17 #define EC_GPIO_FUNC0 (0 << 4)
18 #define EC_GPIO_FUNC1 (1 << 4)
19 #define EC_GPIO_FUNC2 (2 << 4)
20 #define EC_GPIO_FUNC3 (3 << 4)
21 
22 struct ec_val_reg {
25 };
26 
27 enum {
28  TDP_16 = 0x10,
29  TDP_32 = 0x20,
30  TDP_COMMON = 0xff,
31 };
32 
33 typedef struct ec_val_reg_tdp {
38 
40 void sch5545_update_ec_firmware(uint16_t ec_version);
41 void sch5545_ec_early_init(void);
42 void sch5545_ec_hwm_early_init(void);
43 void sch5545_ec_hwm_init(void *unused);
44 
45 #endif // SCH5545_BOARD_EC_H
void sch5545_ec_early_init(void)
@ TDP_COMMON
Definition: sch5545_ec.h:30
@ TDP_16
Definition: sch5545_ec.h:28
@ TDP_32
Definition: sch5545_ec.h:29
uint16_t sch5545_get_ec_fw_version(void)
Definition: sch5545_ec.c:182
void sch5545_ec_hwm_early_init(void)
Definition: sch5545_ec.c:259
void sch5545_ec_hwm_init(void *unused)
Definition: sch5545_ec.c:366
void sch5545_update_ec_firmware(uint16_t ec_version)
Definition: sch5545_ec.c:199
struct ec_val_reg_tdp ec_chassis_tdp_t
unsigned short uint16_t
Definition: stdint.h:11
unsigned char uint8_t
Definition: stdint.h:8
uint8_t tdp
Definition: sch5545_ec.h:36
uint8_t val
Definition: sch5545_ec.h:34
uint16_t reg
Definition: sch5545_ec.h:35
uint8_t val
Definition: sch5545_ec.h:23
uint16_t reg
Definition: sch5545_ec.h:24