riscv: ax25: bypass malloc when spl fit boots from ram
authorRick Chen <rick@andestech.com>
Wed, 4 Jan 2023 01:55:43 +0000 (09:55 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 1 Feb 2023 08:17:45 +0000 (16:17 +0800)
commit5b71b7bf92dd12dfb768180fc25ab4616f077642
treeeadb997ab7ead8ab9cefd889bf8193337dbf2b74
parentc83f64b77dfa08717d697672881dbe33db6786b8
riscv: ax25: bypass malloc when spl fit boots from ram

When fit image boots from ram, the payload will
be prepared in the address of SPL_LOAD_FIT_ADDRESS.
In spl fit generic flow, it will malloc another
memory address and copy whole fit image to this
malloc address.  But it is un-necessary for booting
from RAM.

This patch improves this flow by declare the
board_spl_fit_buffer_addr() to replace the original one.
The larger image size (eq: Kernel Image 10~20MB), it
can save more booting time.

Signed-off-by: Rick Chen <rick@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/ax25/Makefile
arch/riscv/cpu/ax25/spl.c [new file with mode: 0644]