drivers: tcpc: rt1715: Remove ALERT_EXTENDED handling
The RT1715 does not support TCPC_ALERT_EXTENDED_STATUS and TCPC_ALERT_EXTENDED. This commit removes the related interrupt handling. Signed-off-by: Jianxiong Gu <jianxiong.gu@outlook.com>
This commit is contained in:
parent
2b01c6c2b4
commit
2fb35b10b8
1 changed files with 0 additions and 19 deletions
|
@ -543,16 +543,6 @@ void rt1715_alert_work_cb(struct k_work *work)
|
|||
(uint16_t)fault);
|
||||
|
||||
LOG_DBG("fault: %02x", fault);
|
||||
} else if (alert_type == TCPC_ALERT_EXTENDED_STATUS) {
|
||||
uint8_t ext_status;
|
||||
|
||||
tcpci_tcpm_get_status_register(&cfg->bus, TCPC_EXTENDED_STATUS,
|
||||
(uint16_t *)&ext_status);
|
||||
tcpci_tcpm_clear_status_register(&cfg->bus, TCPC_EXTENDED_STATUS,
|
||||
(uint16_t)ext_status);
|
||||
|
||||
data->cc_changed = true;
|
||||
LOG_DBG("ext status: %02x", ext_status);
|
||||
} else if (alert_type == TCPC_ALERT_POWER_STATUS) {
|
||||
uint8_t pwr_status;
|
||||
|
||||
|
@ -560,15 +550,6 @@ void rt1715_alert_work_cb(struct k_work *work)
|
|||
(uint16_t *)&pwr_status);
|
||||
|
||||
LOG_DBG("power status: %02x", pwr_status);
|
||||
} else if (alert_type == TCPC_ALERT_EXTENDED) {
|
||||
uint8_t alert_status;
|
||||
|
||||
tcpci_tcpm_get_status_register(&cfg->bus, TCPC_EXTENDED_ALERT_STATUS,
|
||||
(uint16_t *)&alert_status);
|
||||
tcpci_tcpm_clear_status_register(&cfg->bus, TCPC_EXTENDED_ALERT_STATUS,
|
||||
(uint16_t)alert_status);
|
||||
|
||||
LOG_DBG("ext alert: %02x", alert_status);
|
||||
} else if (alert_type == TCPC_ALERT_MSG_STATUS) {
|
||||
LOG_DBG("MSG pending");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue