mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-19 07:39:54 +02:00
mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU
MT8195 System Companion Processors(SCP) is a dual-core RISC-V MCU. Add a new CrOS feature ID to represent the SCP's 2nd core. The 1st core is referred to as 'core 0', and the 2nd core is referred to as 'core 1'. Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220601112201.15510-16-tinghan.shen@mediatek.com
This commit is contained in:
parent
738654be3c
commit
66ee379d74
|
@ -64,6 +64,11 @@ static const struct cros_feature_to_name cros_mcu_devices[] = {
|
||||||
.name = CROS_EC_DEV_SCP_NAME,
|
.name = CROS_EC_DEV_SCP_NAME,
|
||||||
.desc = "System Control Processor",
|
.desc = "System Control Processor",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.id = EC_FEATURE_SCP_C1,
|
||||||
|
.name = CROS_EC_DEV_SCP_C1_NAME,
|
||||||
|
.desc = "System Control Processor 2nd Core",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.id = EC_FEATURE_TOUCHPAD,
|
.id = EC_FEATURE_TOUCHPAD,
|
||||||
.name = CROS_EC_DEV_TP_NAME,
|
.name = CROS_EC_DEV_TP_NAME,
|
||||||
|
|
|
@ -1300,6 +1300,8 @@ enum ec_feature_code {
|
||||||
* mux.
|
* mux.
|
||||||
*/
|
*/
|
||||||
EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK = 43,
|
EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK = 43,
|
||||||
|
/* The MCU is a System Companion Processor (SCP) 2nd Core. */
|
||||||
|
EC_FEATURE_SCP_C1 = 45,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32)
|
#define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#define CROS_EC_DEV_ISH_NAME "cros_ish"
|
#define CROS_EC_DEV_ISH_NAME "cros_ish"
|
||||||
#define CROS_EC_DEV_PD_NAME "cros_pd"
|
#define CROS_EC_DEV_PD_NAME "cros_pd"
|
||||||
#define CROS_EC_DEV_SCP_NAME "cros_scp"
|
#define CROS_EC_DEV_SCP_NAME "cros_scp"
|
||||||
|
#define CROS_EC_DEV_SCP_C1_NAME "cros_scp_c1"
|
||||||
#define CROS_EC_DEV_TP_NAME "cros_tp"
|
#define CROS_EC_DEV_TP_NAME "cros_tp"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user