Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plat-rockchip: allow specifying DRAM via CFG options
It's currently not possible to use CFG_CORE_DYN_SHM with the Rockchip platforms, because OP-TEE doesn't know what non-secure memory is available; Device tree is not used and no DDR ranges are registered. This precludes interacting with OP-TEE from barebox and U-Boot, which currently only implement OP-TEE communication with dynamic shared memory. Make it possible to use CFG_CORE_DYN_SHM=y by adding two sets of config variables to register memory: CFG_DRAM_BASE, CFG_DRAM_SIZE: For the main memory in the first 4G up to the MMIO range beyond the end of the first RAM bank CFG_NSEC_DDR_1_BASE, CFG_NSEC_DDR_1_SIZE: For the remainder of the main memory above the MMIO regions. OP-TEE will take care to carve out the secure memory ranges. This has been tested on an RK3399 with barebox using OP-TEE's HWRNG TA. Reviewed-by: Jerome Forissier <[email protected]> Signed-off-by: Ahmad Fatoum <[email protected]>
- Loading branch information