mb/starlabs/starlite_adl: Configure CNVi Bluetooth I2S GPIOs
[coreboot.git] / src / ec / dell / mec5035 / mec5035.h
blob32f791cb01150401523cfc4077b8b2807a1243b8
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _EC_DELL_MEC5035_H_
4 #define _EC_DELL_MEC5035_H_
6 #include <stdint.h>
8 #define NUM_REGISTERS 32
10 enum mec5035_cmd {
11 CMD_MOUSE_TP = 0x1a,
12 CMD_RADIO_CTRL = 0x2b,
13 CMD_CPU_OK = 0xc2,
16 /* Touchpad (TP) and mouse related. The EC seems to
17 default to 0 which results in the TP not working. */
18 enum ec_mouse_setting {
19 SERIAL_MOUSE = 0, /* Disable TP, force use of a serial mouse */
20 PS2_MOUSE, /* Disable TP when using a PS/2 mouse */
21 TP_PS2_MOUSE /* Leave TP enabled when using a PS/2 mouse */
24 #define RADIO_CTRL_NUM_ARGS 3
25 enum ec_radio_dev {
26 RADIO_WLAN = 0,
27 RADIO_WWAN,
28 RADIO_BT
31 enum ec_radio_state {
32 RADIO_OFF = 0,
33 RADIO_ON
36 u8 mec5035_mouse_touchpad(enum ec_mouse_setting setting);
37 void mec5035_cpu_ok(void);
38 void mec5035_early_init(void);
39 void mec5035_control_radio(enum ec_radio_dev device, enum ec_radio_state state);
41 #endif /* _EC_DELL_MEC5035_H_ */