2014-07-09 16:48:44 +00:00
|
|
|
/*
|
|
|
|
* K2HK: secure kernel command header file
|
|
|
|
*
|
|
|
|
* (C) Copyright 2014
|
|
|
|
* Texas Instruments Incorporated, <www.ti.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
2016-03-16 13:10:08 +00:00
|
|
|
#ifndef _MACH_MON_H_
|
|
|
|
#define _MACH_MON_H_
|
2014-07-09 16:48:44 +00:00
|
|
|
|
arm: mach-keystone: Updates mon_install for K2G HS
On early K2 devices (eg. K2HK) the secure ROM code does not support
loading secure code to firewall protected memory, before decrypting,
authenticating and executing it.
To load the boot monitor on these devices, it is necessary to first
authenticate and run a copy loop from non-secure memory that copies
the boot monitor behind firewall protected memory, before decrypting
and executing it.
On K2G, the secure ROM does not allow secure code executing from
unprotected memory. Further, ROM first copies the signed and encrypted
image into firewall protected memory, then decrypts, authenticates
and executes it.
As a result of this, we cannot use the copy loop for K2G. The
mon_install has to be modified to pass the address the signed and
encrypted secure boot monitor image to the authentication API.
For backward compatibility with other K2 devices and K2G GP,
the mon_install API still supports a single argument. In this case
the second argument is set to 0 by u-boot and is ignored by ROM
Signed-off-by: Thanh Tran <thanh-tran@ti.com>
Signed-off-by: Madan Srinivas <madans@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2017-07-17 17:59:15 +00:00
|
|
|
int mon_install(u32 addr, u32 dpsc, u32 freq, u32 bm_addr);
|
2016-03-16 13:10:08 +00:00
|
|
|
int mon_power_on(int core_id, void *ep);
|
2014-07-09 16:48:44 +00:00
|
|
|
int mon_power_off(int core_id);
|
|
|
|
|
|
|
|
#endif
|