]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: renesas: gen5-cm33: Convert to common field_{get, prep}() helpers
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Fri, 3 Jul 2026 11:56:18 +0000 (14:56 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jul 2026 19:29:18 +0000 (13:29 -0600)
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@iopsys.eu>
board/renesas/common/gen5-cm33.c

index 00280c142d3e08a4f2a1858bf5ad88470ad0bf8e..b2f6087a9438da1aab618e197957ff9a677ac3ad 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#undef field_get
-#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
-#undef field_prep
-#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
-
 #define PKC_PROT_LOCK                          0xa5a5a500
 #define PKC_PROT_UNLOCK                                0xa5a5a501