Lines Matching +full:0 +full:v
15 #define MC_ME_CTL_KEY 0x0
16 #define MC_ME_CTL_KEY_KEY_MASK GENMASK(15, 0)
17 #define MC_ME_CTL_KEY_KEY(v) FIELD_PREP(MC_ME_CTL_KEY_KEY_MASK, (v)) argument
19 #define MC_ME_MODE_CONF 0x4
20 #define MC_ME_MODE_CONF_DEST_RST_MASK BIT(0)
21 #define MC_ME_MODE_CONF_DEST_RST(v) FIELD_PREP(MC_ME_MODE_CONF_DEST_RST_MASK, (v)) argument
23 #define MC_ME_MODE_CONF_FUNC_RST(v) FIELD_PREP(MC_ME_MODE_CONF_FUNC_RST_MASK, (v)) argument
25 #define MC_ME_MODE_CONF_STANDBY(v) FIELD_PREP(MC_ME_MODE_CONF_STANDBY_MASK, (v)) argument
27 #define MC_ME_MODE_UPD 0x8
28 #define MC_ME_MODE_UPD_MODE_UPD_MASK BIT(0)
29 #define MC_ME_MODE_UPD_MODE_UPD(v) FIELD_PREP(MC_ME_MODE_UPD_MODE_UPD_MASK, (v)) argument
31 #define MC_ME_MODE_STAT 0xc
32 #define MC_ME_MODE_STAT_PREV_MODE_MASK BIT(0)
33 #define MC_ME_MODE_STAT_PREV_MODE(v) FIELD_PREP(MC_ME_MODE_STAT_PREV_MODE_MASK, (v)) argument
35 #define MC_ME_MAIN_COREID 0x10
36 #define MC_ME_MAIN_COREID_CIDX_MASK GENMASK(2, 0)
37 #define MC_ME_MAIN_COREID_CIDX(v) FIELD_PREP(MC_ME_MAIN_COREID_CIDX_MASK, (v)) argument
39 #define MC_ME_MAIN_COREID_PIDX(v) FIELD_PREP(MC_ME_MAIN_COREID_PIDX_MASK, (v)) argument
41 #define MC_ME_PRTN_PCONF(p) (0x100 + 0x200 * (p))
42 #define MC_ME_PRTN_PCONF_PCE_MASK BIT(0)
43 #define MC_ME_PRTN_PCONF_PCE(v) FIELD_PREP(MC_ME_PRTN_PCONF_PCE_MASK, (v)) argument
45 #define MC_ME_PRTN_PUPD(p) (0x104 + 0x200 * (p))
46 #define MC_ME_PRTN_PUPD_PCUD_MASK BIT(0)
47 #define MC_ME_PRTN_PUPD_PCUD(v) FIELD_PREP(MC_ME_PRTN_PUPD_PCUD_MASK, (v)) argument
49 #define MC_ME_PRTN_STAT(p) (0x108 + 0x200 * (p))
50 #define MC_ME_PRTN_STAT_PCS_MASK BIT(0)
51 #define MC_ME_PRTN_STAT_PCS(v) FIELD_PREP(MC_ME_PRTN_STAT_PCS_MASK, (v)) argument
53 #define MC_ME_PRTN_COFB_STAT(p, c) (0x110 + 0x200 * (p) + 0x4 * (c))
55 #define MC_ME_PRTN_COFB_CLKEN(p, c) (0x130 + 0x200 * (p) + 0x4 * (c))
57 #define MC_ME_PRTN_CORE_PCONF(p, c) (0x140 + 0x200 * (p) + 0x20 * (c))
58 #define MC_ME_PRTN_CORE_PCONF_CCE_MASK BIT(0)
59 #define MC_ME_PRTN_CORE_PCONF_CCE(v) FIELD_PREP(MC_ME_PRTN_CORE_PCONF_CCE_MASK, (v)) argument
61 #define MC_ME_PRTN_CORE_PUPD(p, c) (0x144 + 0x200 * (p) + 0x20 * (c))
62 #define MC_ME_PRTN_CORE_PUPD_CCUPD_MASK BIT(0)
63 #define MC_ME_PRTN_CORE_PUPD_CCUPD(v) FIELD_PREP(MC_ME_PRTN_CORE_PUPD_CCUPD_MASK, (v)) argument
65 #define MC_ME_PRTN_CORE_STAT(p, c) (0x148 + 0x200 * (p) + 0x20 * (c))
66 #define MC_ME_PRTN_CORE_STAT_CCS_MASK BIT(0)
67 #define MC_ME_PRTN_CORE_STAT_CCS(v) FIELD_PREP(MC_ME_PRTN_CORE_STAT_CCS_MASK, (v)) argument
69 #define MC_ME_PRTN_CORE_STAT_WFI(v) FIELD_PREP(MC_ME_PRTN_CORE_STAT_WFI_MASK, (v)) argument
71 #define MC_ME_PRTN_CORE_ADDR(p, c) (0x14c + 0x200 * (p) + 0x20 * (c))
73 #define MC_ME_PRTN_CORE_ADDR_ADDR(v) FIELD_PREP(MC_ME_PRTN_CORE_ADDR_ADDR_MASK, (v)) argument
75 #define MC_ME_CTL_KEY_DIRECT_KEY 0x00005af0U
76 #define MC_ME_CTL_KEY_INVERTED_KEY 0x0000a50fU
79 #define REG_READ(r) sys_read32((mem_addr_t)(DT_INST_REG_ADDR(0) + (r)))
80 #define REG_WRITE(r, v) sys_write32((v), (mem_addr_t)(DT_INST_REG_ADDR(0) + (r))) argument
105 int err = 0; in mc_me_set_mode()