Files
u-boot-krane/include/linux
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-04-21 11:19:49 -06:00
2026-04-21 11:19:49 -06:00
2025-09-18 17:20:39 +02:00
2026-04-21 11:19:49 -06:00
2026-04-21 11:19:49 -06:00
2026-04-21 11:19:49 -06:00
2025-06-03 17:18:03 -06:00
2025-04-02 20:00:59 -06:00
2026-07-21 13:51:07 -06:00