diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-03-10 12:16:28 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-22 21:09:45 +0300 |
commit | 4fa0150d6c9c252af6887c55cbacd6734a40e9ab (patch) | |
tree | c9ffb2ababc2fa8fbffc6d8b5d6d35d7c87cc6e8 /lib | |
parent | 00fd8dad4d2ed738d11f29d992dc106bbdf4d68f (diff) | |
download | u-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 'lib')
-rw-r--r-- | lib/Kconfig | 10 | ||||
-rw-r--r-- | lib/lmb.c | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index b7df9eb5d6..e46c51f123 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -439,7 +439,7 @@ config LZ4 is included. The LZ4 algorithm can run in-place as long as the compressed image is loaded to the end of the output buffer, and trades lower compression ratios for much faster decompression. - + NOTE: This implements the release version of the LZ4 frame format as generated by default by the 'lz4' command line tool. This is not the same as the outdated, less efficient legacy @@ -707,6 +707,14 @@ config LMB help Support the library logical memory blocks. + +config LMB_MAX_REGIONS + int "Number of memory and reserved regions in lmb lib" + depends on LMB + default 8 + help + Define the number of supported regions, memory and reserved, in the + library logical memory blocks. endmenu config PHANDLE_CHECK_SEQ @@ -95,8 +95,8 @@ static void lmb_coalesce_regions(struct lmb_region *rgn, unsigned long r1, void lmb_init(struct lmb *lmb) { - lmb->memory.max = MAX_LMB_REGIONS; - lmb->reserved.max = MAX_LMB_REGIONS; + lmb->memory.max = CONFIG_LMB_MAX_REGIONS; + lmb->reserved.max = CONFIG_LMB_MAX_REGIONS; lmb->memory.cnt = 0; lmb->reserved.cnt = 0; |