[PATCH v14 09/18] board: renesas: gen5-cm33: Convert to common field_{get, prep}() helpers

Mikhail Kshevetskiy mikhail.kshevetskiy at iopsys.eu
Thu Jul 2 07:57:35 CEST 2026


Drop the driver-specific field_get() and field_prep() macros, in favor
of the globally available variants from <linux/bitfield.h>.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
---
 board/renesas/common/gen5-cm33.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/board/renesas/common/gen5-cm33.c b/board/renesas/common/gen5-cm33.c
index f06df824019..b2f6087a943 100644
--- a/board/renesas/common/gen5-cm33.c
+++ b/board/renesas/common/gen5-cm33.c
@@ -21,9 +21,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
-#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
-
 #define PKC_PROT_LOCK				0xa5a5a500
 #define PKC_PROT_UNLOCK				0xa5a5a501
 
-- 
2.53.0



More information about the U-Boot mailing list