zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY
Change instances of: DT_NODE_HAS_STATUS(<node_id>, okay) to DT_NODE_HAS_STATUS_OKAY(<node_id>) Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
5aebd1276d
commit
52a202309b
180 changed files with 743 additions and 738 deletions
|
@ -35,7 +35,7 @@
|
|||
#define MCHP_DT_ESPI_VW_FLAG_RST_SRC_MSK0 0x7
|
||||
|
||||
#define MCHP_DT_NODE_FROM_VWTABLE(name) DT_CHILD(DT_PATH(mchp_xec_espi_vw_routing), name)
|
||||
#define MCHP_DT_VW_NODE_HAS_STATUS(name) DT_NODE_HAS_STATUS(MCHP_DT_NODE_FROM_VWTABLE(name), okay)
|
||||
#define MCHP_DT_VW_NODE_HAS_STATUS(name) DT_NODE_HAS_STATUS_OKAY(MCHP_DT_NODE_FROM_VWTABLE(name))
|
||||
|
||||
/* Macro to store eSPI virtual wire DT flags
|
||||
* b[0] = DT status property 0 is disabled, 1 enabled,
|
||||
|
|
|
@ -93,14 +93,14 @@ void soc_deep_sleep_non_wake_dis(void)
|
|||
void soc_deep_sleep_wake_en(void)
|
||||
{
|
||||
#if defined(CONFIG_KSCAN) || \
|
||||
(!defined(CONFIG_PM_DEVICE) && DT_NODE_HAS_STATUS(DT_NODELABEL(ps2_0), okay))
|
||||
(!defined(CONFIG_PM_DEVICE) && DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(ps2_0)))
|
||||
struct ecia_named_regs *regs = ECIA_XEC_REG_BASE;
|
||||
#if defined(CONFIG_KSCAN)
|
||||
/* Enable PLL wake via KSCAN */
|
||||
regs->GIRQ21.SRC = MCHP_KEYSCAN_GIRQ_BIT;
|
||||
regs->GIRQ21.EN_SET = MCHP_KEYSCAN_GIRQ_BIT;
|
||||
#endif
|
||||
#if !defined(CONFIG_PM_DEVICE) && DT_NODE_HAS_STATUS(DT_NODELABEL(ps2_0), okay)
|
||||
#if !defined(CONFIG_PM_DEVICE) && DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(ps2_0))
|
||||
/* Enable PS2_0B_WK */
|
||||
regs->GIRQ21.SRC = MCHP_PS2_0_PORT0B_WK_GIRQ_BIT;
|
||||
regs->GIRQ21.EN_SET = MCHP_PS2_0_PORT0B_WK_GIRQ_BIT;
|
||||
|
@ -110,7 +110,7 @@ void soc_deep_sleep_wake_en(void)
|
|||
|
||||
void soc_deep_sleep_wake_dis(void)
|
||||
{
|
||||
#if !defined(CONFIG_PM_DEVICE) && DT_NODE_HAS_STATUS(DT_NODELABEL(ps2_0), okay)
|
||||
#if !defined(CONFIG_PM_DEVICE) && DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(ps2_0))
|
||||
struct ecia_named_regs *regs = ECIA_XEC_REG_BASE;
|
||||
|
||||
/* Enable PS2_0B_WK */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue