1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef _EC_DELL_MEC5035_H_ 4 #define _EC_DELL_MEC5035_H_ 5 6 #include <stdint.h> 7 8 #define NUM_REGISTERS 32 9 10 /* Touchpad (TP) and mouse related. The EC seems to 11 default to 0 which results in the TP not working. */ 12 #define CMD_MOUSE_TP 0x1a 13 #define SERIAL_MOUSE 0 /* Disable TP, force use of a serial mouse */ 14 #define PS2_MOUSE 1 /* Disable TP when using a PS/2 mouse */ 15 #define TP_PS2_MOUSE 2 /* Leave TP enabled when using a PS/2 mouse */ 16 17 #define CMD_CPU_OK 0xc2 18 19 #define CMD_RADIO_CTRL 0x2b 20 #define RADIO_CTRL_NUM_ARGS 3 21 enum ec_radio_dev { 22 RADIO_WLAN = 0, 23 RADIO_WWAN, 24 RADIO_BT 25 }; 26 27 enum ec_radio_state { 28 RADIO_OFF = 0, 29 RADIO_ON 30 }; 31 32 u8 mec5035_mouse_touchpad(u8 setting); 33 void mec5035_cpu_ok(void); 34 void mec5035_early_init(void); 35 void mec5035_control_radio(enum ec_radio_dev device, enum ec_radio_state state); 36 37 #endif /* _EC_DELL_MEC5035_H_ */ 38