drivers: espi: npcx: update the arbitration for eSPI TAF access
This commit adds the arbitration when EC and eSPI TAF access flash simultaneously. Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
This commit is contained in:
parent
ec1b384917
commit
de3da0e4fa
4 changed files with 44 additions and 0 deletions
|
@ -753,6 +753,7 @@ struct espi_reg {
|
|||
#define NPCX_ESPISTS_VWUPD 8
|
||||
#define NPCX_ESPISTS_ESPIRST 9
|
||||
#define NPCX_ESPISTS_PLTRST 10
|
||||
#define NPCX_ESPISTS_FLAUTORDREQ 14
|
||||
#define NPCX_ESPISTS_AMERR 15
|
||||
#define NPCX_ESPISTS_AMDONE 16
|
||||
#define NPCX_ESPISTS_VWUPDW 17
|
||||
|
@ -762,6 +763,7 @@ struct espi_reg {
|
|||
#define NPCX_ESPISTS_BMBURSTERR 22
|
||||
#define NPCX_ESPISTS_BMBURSTDONE 23
|
||||
#define NPCX_ESPISTS_ESPIRST_LVL 24
|
||||
#define NPCX_ESPISTS_AUTO_RD_DIS_STS 29
|
||||
#define NPCX_VWSWIRQ_IRQ_NUM FIELD(0, 7)
|
||||
#define NPCX_VWSWIRQ_IRQ_LVL 7
|
||||
#define NPCX_VWSWIRQ_INDEX FIELD(8, 7)
|
||||
|
|
|
@ -151,6 +151,8 @@ struct npcx_taf_head {
|
|||
|
||||
int npcx_init_taf(const struct device *dev, sys_slist_t *callbacks);
|
||||
|
||||
int espi_taf_npcx_block(const struct device *dev, bool en_block);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue