The current sunxi-fel tool uses SRAM A2 as a backup storage for FEL stacks and a place to allocate the MMU translation table. But SRAM A2 is the fastest memory for the OpenRISC core and should be reserved for OpenRISC if we want to use it on A31/H3/A64. This patchset moves the FEL stacks backup storage and the MMU translation table to other SRAM areas. This fixes problems with the ar100-info application in the case when it is used after the DRAM is initialized by the "sunxi-fel spl" command (having the MMU table overwritten in SRAM A2 by the OpenRISC code is not good).
Also because the SRAM layout gets changed anyway, ensure that the contiguous SRAM area available to the SPL is at least 40 KiB. The extra area beyond 32 KiB can be used at least for the stack and also provides an opportunity to support "oversized" SPL via LZO or UCL runtime decompression in the future. New readl/writel commands for reading/writing hardware registers, which can be used for various useful things (a more advanced OpenRISC support will need this functionality). The last patch (unrelated to the OpenRISC core) adds USB FEL boot support for Allwinner A64. Siarhei Siamashka (7): fel: Move backup area to higher addresses in SRAM on A10/A13/A20 fel: Rename the backup buffers which use AR100 (OpenRISC) SRAM fel: Move the backup storage to the SRAM B on A31 fel: Move the backup storage to the SRAM section A1 on H3 fel: Move the temporary scratch buffer under the IRQ stack fel: Add "readl" and "writel" commands fel: Add fel spl command support for Allwinner A64 fel.c | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 107 insertions(+), 28 deletions(-) -- 2.4.10 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
