ARM: mach-k3: sysfw-loader: Copy sysfw.itb to OCRAM in OSPI/SPI bootmode
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 23 Dec 2021 13:56:03 +0000 (19:26 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 15 Jan 2022 15:38:26 +0000 (10:38 -0500)
commit584216315dee17d3a104379ff087ff57d2bbda48
tree262622af35c8c5399963c3867ff436ff3d1e4c7f
parent67c8678346055e8455ac062cbc18ab5b693c40a1
ARM: mach-k3: sysfw-loader: Copy sysfw.itb to OCRAM in OSPI/SPI bootmode

In case of xSPI bootmode OSPI flash is in DDR mode and needs to be accessed
in multiple of 16bit accesses Hence we cannot parse sysfw.itb FIT image
directly on OSPI flash via MMIO window. So, copy the image to internal
on-chip RAM before parsing the image.

Moreover, board cfg data maybe modified by ROM/TIFS in case of HS platform
and thus cannot reside in OSPI/xSPI and needs to be copied over to
internal OCRAM.

This unblocks OSPI/xSPI boot on HS platforms

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Dave Gerlach <d-gerlach@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Acked-by: Pratyush Yadav <p.yadav@ti.com>
arch/arm/mach-k3/sysfw-loader.c