Skip to content
Snippets Groups Projects
Commit 950f86ca authored by Nathan Rossi's avatar Nathan Rossi Committed by Michal Simek
Browse files

ARM64: zynqmp: Replace board specific with generic memory bank decoding


The dram_init and dram_init_banksize functions were using a board
specific implementation for decoding the memory banks from the fdt. This
board specific implementation uses a static variable 'tmp' which makes
these functions unsafe for execution from within the board_init_f
context.

This change makes the dram_init* functions use a generic implementation
of decoding and populating memory bank and size data.

Signed-off-by: default avatarNathan Rossi <nathan@nathanrossi.com>
Fixes: 8d59d7f6 ("ARM64: zynqmp: Read RAM information from DT")
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent de9bf1b5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment