Files
u-boot-krane/include
Jonas KarlmanandQuentin Schulz 0c68b88ce5 include: linux: Import hw_bitfield.h from Linux v6.18
Hardware of various vendors, but very notably Rockchip, often uses
32-bit registers where the upper 16-bit half of the register is a
write-enable mask for the lower half.

Add hw_bitfield.h with two macros: FIELD_PREP_WM16, and
FIELD_PREP_WM16_CONST. The latter is a version that can be used in
initializers, like FIELD_PREP_CONST.

Import hw_bitfield.h from Linux commit 21368fcbb124 ("bitmap: introduce
hardware-specific bitfield operations"), first introduced in v6.18-rc1.

This contains two changes compared to the Linux version:
- include of linux/limit.h was dropped
- use of const_true() in FIELD_PREP_WM16_CONST() was dropped

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Link: https://patch.msgid.link/20260803184314.2240153-2-jonas@kwiboo.se
Signed-off-by: Quentin Schulz <u-boot@0leil.net>
2026-08-11 17:35:22 +02:00
..
2026-05-18 16:56:07 -06:00
2026-06-05 12:56:32 -03:00
2026-06-21 09:43:33 +02:00
2026-04-22 14:23:49 -06:00
2026-04-21 20:49:39 -03:00
2026-03-27 13:14:18 -06:00
2026-06-24 18:13:24 -06:00
2026-04-27 11:26:40 -06:00
2026-04-07 15:27:22 -06:00
2026-04-21 11:19:49 -06:00
2026-05-12 15:38:00 -06:00