[PATCH 2/4] power: domain: mtk: add BUS_PROT_WR_IGN() macros

David Lechner <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Add a pair of BUS_PROT_WR_IGN() macros that will be used by domains that
have the ignore flag set to true.

Signed-off-by: David Lechner <[email protected]>
---
 drivers/power/domain/mtk-power-domain.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/power/domain/mtk-power-domain.h b/drivers/power/domain/mtk-power-domain.h
index da7ffa7b722..09f9fb3e5e9 100644
--- a/drivers/power/domain/mtk-power-domain.h
+++ b/drivers/power/domain/mtk-power-domain.h
@@ -125,9 +125,15 @@ struct mtk_scpsys {
 #define BUS_PROT_WR(_mask, _set, _clr, _sta)			\
 	_BUS_PROT(_mask, _set, _clr, _mask, _sta, false, false)
 
+#define BUS_PROT_WR_IGN(_mask, _set, _clr, _sta)		\
+	_BUS_PROT(_mask, _set, _clr, _mask, _sta, false, true)
+
 #define BUS_PROT_WR_STA_MASK(_mask, _sta_mask, _set, _clr, _sta) \
 	_BUS_PROT(_mask, _set, _clr, _sta_mask, _sta, false, false)
 
+#define BUS_PROT_WR_IGN_STA_MASK(_mask, _sta_mask, _set, _clr, _sta) \
+	_BUS_PROT(_mask, _set, _clr, _sta_mask, _sta, false, true)
+
 int mtk_scpsys_probe(struct udevice *dev);
 int mtk_power_controller_probe(struct udevice *dev);
 

-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.