summaryrefslogtreecommitdiff
path: root/boot/image-fdt.c
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2024-12-18 09:02:31 +0200
committerTom Rini <trini@konsulko.com>2024-12-30 13:21:55 -0600
commit3d56c06551d7a54870cfdf8c639b3ff35521b87f (patch)
tree360783a7905dd7a4b1b8d56fa5564055cd3492e8 /boot/image-fdt.c
parent6c9f27505a5e20ed538d1dafdf43cf9d18ab8624 (diff)
lmb: Move enum lmb_flags to a u32
LMB flags is not an enum anymore. It's currently used as a bitmask in various places of our code. So make it a u32 which is more appropriate when dealing with masks. Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Tested-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'boot/image-fdt.c')
-rw-r--r--boot/image-fdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index 73c43c30684..cda7c3aa9e3 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -68,7 +68,7 @@ static const struct legacy_img_hdr *image_get_fdt(ulong fdt_addr)
}
#endif
-static void boot_fdt_reserve_region(u64 addr, u64 size, enum lmb_flags flags)
+static void boot_fdt_reserve_region(u64 addr, u64 size, u32 flags)
{
long ret;
@@ -100,7 +100,7 @@ void boot_fdt_add_mem_rsv_regions(void *fdt_blob)
int i, total, ret;
int nodeoffset, subnode;
struct fdt_resource res;
- enum lmb_flags flags;
+ u32 flags;
if (fdt_check_header(fdt_blob) != 0)
return;