diff options
author | Patrick Delaunay | 2021-03-10 10:16:28 +0100 |
---|---|---|
committer | Tom Rini | 2021-04-22 14:09:45 -0400 |
commit | 4fa0150d6c9c252af6887c55cbacd6734a40e9ab (patch) | |
tree | c9ffb2ababc2fa8fbffc6d8b5d6d35d7c87cc6e8 /include | |
parent | 00fd8dad4d2ed738d11f29d992dc106bbdf4d68f (diff) |
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')
-rw-r--r-- | include/lmb.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/lmb.h b/include/lmb.h index f3397c7f730..d3adf8ef696 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 { |