mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
firmware: zynqmp: Enable IPI code calling also in EL3
U-Boot proper can still run in EL3 without using firmware interface wired via ATF. For supporting this use case there is a need to check EL level where U-Boot runs and based on that choose the way how to talk to firmware. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
@@ -51,7 +51,7 @@ static int ipi_req(const u32 *req, size_t req_len, u32 *res, size_t res_maxlen)
|
|||||||
|
|
||||||
static int send_req(const u32 *req, size_t req_len, u32 *res, size_t res_maxlen)
|
static int send_req(const u32 *req, size_t req_len, u32 *res, size_t res_maxlen)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_SPL_BUILD))
|
if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3)
|
||||||
return ipi_req(req, req_len, res, res_maxlen);
|
return ipi_req(req, req_len, res, res_maxlen);
|
||||||
|
|
||||||
return xilinx_pm_request(req[0], 0, 0, 0, 0, res);
|
return xilinx_pm_request(req[0], 0, 0, 0, 0, res);
|
||||||
|
Reference in New Issue
Block a user