touch: Request firmware from userspace

Add upgrade mode with request firmware file from userspace.

Change-Id: Ifb4329d39eb8e80c11e6738d173870be94a63ea3
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Esse commit está contido em:
Srikanth Katteboina
2022-09-16 23:05:38 +05:30
commit de ppadasal
commit 447a6d32fc
4 arquivos alterados com 149 adições e 39 exclusões

Ver arquivo

@@ -204,6 +204,7 @@
#define RAD_FW_3X_SIZE 0x7300
#define RAD_PARA_3X_SIZE 0x174
#define RAD_TESTFW_3X_SIZE (RAD_FW_3X_SIZE + RAD_PARA_3X_SIZE + 4)
#define RAD_ALLFW_3X_SIZE 0xF170
#define RAD_CMD_UPDATE_BIN 0x80
#define RAD_CMD_UPDATE_END 0x81
@@ -243,6 +244,9 @@
#define RAD_SELFTEST
#define PARA_FW_VERSION_OFFSET 4
#define ENABLE_FW_LOADER 1
#define FW_NAME "RM6D030.bin"
#define PINCTRL_STATE_ACTIVE "pmx_ts_active"
#define PINCTRL_STATE_SUSPEND "pmx_ts_suspend"
#define PINCTRL_STATE_RELEASE "pmx_ts_release"
@@ -399,7 +403,8 @@ extern int raydium_burn_comp(struct i2c_client *client);
extern int raydium_burn_fw(struct i2c_client *client);
extern int raydium_load_test_fw(struct i2c_client *client);
extern int raydium_fw_update_check(unsigned short u16_i2c_data);
extern int raydium_fw_update_init(unsigned short u16_i2c_data);
extern int raydium_fw_update_check(unsigned int u32_check_version);
extern int raydium_i2c_pda_set_address(unsigned int u32_address,
unsigned char u8_mode);
extern void raydium_mem_table_init(unsigned short u16_id);