summaryrefslogtreecommitdiff
path: root/include/lmb.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-03-10 12:16:28 +0300
committerTom Rini <trini@konsulko.com>2021-04-22 21:09:45 +0300
commit4fa0150d6c9c252af6887c55cbacd6734a40e9ab (patch)
treec9ffb2ababc2fa8fbffc6d8b5d6d35d7c87cc6e8 /include/lmb.h
parent00fd8dad4d2ed738d11f29d992dc106bbdf4d68f (diff)
downloadu-boot-4fa0150d6c9c252af6887c55cbacd6734a40e9ab.tar.xz
lmb: move MAX_LMB_REGIONS value in Kconfig
Move MAX_LMB_REGIONS value in Kconfig, the max number of the regions in lmb library. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'include/lmb.h')
-rw-r--r--include/lmb.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/lmb.h b/include/lmb.h
index f3397c7f73..d3adf8ef69 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -12,8 +12,6 @@
* Copyright (C) 2001 Peter Bergner, IBM Corp.
*/
-#define MAX_LMB_REGIONS 8
-
struct lmb_property {
phys_addr_t base;
phys_size_t size;
@@ -22,7 +20,7 @@ struct lmb_property {
struct lmb_region {
unsigned long cnt;
unsigned long max;
- struct lmb_property region[MAX_LMB_REGIONS+1];
+ struct lmb_property region[CONFIG_LMB_MAX_REGIONS + 1];
};
struct lmb {