
Support added to handoff to R5 applications after thery are loaded. This feature can be turned ON by using conditional switch. Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com> Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
121 lines
3.4 KiB
C
121 lines
3.4 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright (C) 2015 Xilinx, Inc. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* Use of the Software is limited solely to applications:
|
|
* (a) running on a Xilinx device, or
|
|
* (b) that interact with a Xilinx device through a bus or interconnect.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* XILINX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*
|
|
* Except as contained in this notice, the name of the Xilinx shall not be used
|
|
* in advertising or otherwise to promote the sale, use or other dealings in
|
|
* this Software without prior written authorization from Xilinx.
|
|
*
|
|
******************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
/**
|
|
*
|
|
* @file xfsbl_hooks.c
|
|
*
|
|
* This is the file which contains FSBL hook functions.
|
|
*
|
|
* <pre>
|
|
* MODIFICATION HISTORY:
|
|
*
|
|
* Ver Who Date Changes
|
|
* ----- ---- -------- -------------------------------------------------------
|
|
* 1.00 kc 04/21/14 Initial release
|
|
*
|
|
* </pre>
|
|
*
|
|
* @note
|
|
*
|
|
******************************************************************************/
|
|
/***************************** Include Files *********************************/
|
|
#include "xfsbl_hw.h"
|
|
#include "xfsbl_hooks.h"
|
|
/************************** Constant Definitions *****************************/
|
|
|
|
/**************************** Type Definitions *******************************/
|
|
|
|
/***************** Macros (Inline Functions) Definitions *********************/
|
|
|
|
/************************** Function Prototypes ******************************/
|
|
|
|
/************************** Variable Definitions *****************************/
|
|
#ifdef XFSBL_BS
|
|
u32 XFsbl_HookBeforeBSDownload(void )
|
|
{
|
|
u32 Status = XFSBL_SUCCESS;
|
|
|
|
/**
|
|
* Add the code here
|
|
*/
|
|
|
|
|
|
return Status;
|
|
}
|
|
|
|
|
|
u32 XFsbl_HookAfterBSDownload(void )
|
|
{
|
|
u32 Status = XFSBL_SUCCESS;
|
|
|
|
/**
|
|
* Add the code here
|
|
*/
|
|
|
|
return Status;
|
|
}
|
|
#endif
|
|
|
|
u32 XFsbl_HookBeforeHandoff(u32 EarlyHandoff)
|
|
{
|
|
u32 Status = XFSBL_SUCCESS;
|
|
|
|
/**
|
|
* Add the code here
|
|
*/
|
|
|
|
return Status;
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/**
|
|
* This is a hook function where user can include the functionality to be run
|
|
* before FSBL fallback happens
|
|
*
|
|
* @param none
|
|
*
|
|
* @return error status based on implemented functionality (SUCCESS by default)
|
|
*
|
|
*****************************************************************************/
|
|
|
|
u32 XFsbl_HookBeforeFallback(void)
|
|
{
|
|
u32 Status = XFSBL_SUCCESS;
|
|
|
|
/**
|
|
* Add the code here
|
|
*/
|
|
|
|
return Status;
|
|
}
|