
This little series adds a new 'memmap' command, intended to show the layout of memory within U-Boot and how much memory is available for loading images.
Simon Glass (6): common: Fix up malloc() comment in reserve_noncached() common: Tidy up how malloc() is inited am65x: Use map_to_sysmem() to convert from pointer global_data: Add some more accessors bootstage: Allow counting memory without strings cmd: Add a command to show the memory map
arch/arm/mach-k3/am65x/am654_init.c | 11 +-- cmd/Kconfig | 10 +++ cmd/Makefile | 1 + cmd/memmap.c | 66 +++++++++++++++ common/board_f.c | 8 +- common/board_r.c | 3 +- common/bootstage.c | 16 ++-- common/dlmalloc.c | 8 +- common/spl/spl.c | 4 +- doc/usage/cmd/memmap.rst | 123 ++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + include/asm-generic/global_data.h | 30 +++++++ include/bootstage.h | 5 +- include/malloc.h | 8 ++ test/cmd/Makefile | 3 +- test/cmd/memmap.c | 35 ++++++++ 16 files changed, 305 insertions(+), 27 deletions(-) create mode 100644 cmd/memmap.c create mode 100644 doc/usage/cmd/memmap.rst create mode 100644 test/cmd/memmap.c