aboutsummaryrefslogtreecommitdiff
path: root/disk_image
diff options
context:
space:
mode:
authorMichal Orzel2022-10-10 09:29:47 +0200
committerStefano Stabellini2022-12-09 15:13:42 -0800
commit7b91dd6313163d309e61060b26e67b2c06585092 (patch)
tree9d20712870b0a7c39def3a088b672e90957b7394 /disk_image
parent232aa4cf51234218c3bb9b01e2b874513677daa8 (diff)
Add support for 64-bit addresses/sizes
At the moment, ImageBuilder assumes that all addresses/sizes are 32-bit max. It sets #{address,size}-cells to 0x2 and puts 0x0 as the value for the first cell. Because of that, we cannot specify MEMORY_START and MEMORY_END to be above 32-bits (e.g. to place the images in the upper memory bank). Add support to properly handle 64-bit addresses/sizes: - add function split_into_halves to split the value passed as a first argument into upper and lower halves. These are then set as values for variables passed respectively as the second and third argument, - add function split_addr_size to split address and size and form a string to be passed to dt_set as data argument for reg property. Signed-off-by: Michal Orzel <michal.orzel@amd.com> [stefano: simplify split_into_halves] Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Diffstat (limited to 'disk_image')
0 files changed, 0 insertions, 0 deletions