include: mach-k3: move k3 security functions to security.h
ti_secure_image_post_process and ti_secure_image_check_binary is used for the authentication purposes in the current boot flow. Authentication of remoteproc firmware images require ti_secure_image_post_process to be available outside mach-k3. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> # Intel Edison Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:

committed by
Tom Rini

parent
3be9f399e9
commit
145a23450c
@@ -2,12 +2,13 @@
|
||||
/*
|
||||
* K3: Architecture common definitions
|
||||
*
|
||||
* Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
|
||||
* Copyright (C) 2018-2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
* Lokesh Vutla <lokeshvutla@ti.com>
|
||||
*/
|
||||
|
||||
#include <asm/armv7_mpu.h>
|
||||
#include <asm/hardware.h>
|
||||
#include <mach/security.h>
|
||||
|
||||
#define K3_FIREWALL_BACKGROUND_BIT (8)
|
||||
|
||||
@@ -41,7 +42,6 @@ void spl_enable_cache(void);
|
||||
void mmr_unlock(uintptr_t base, u32 partition);
|
||||
bool is_rom_loaded_sysfw(struct rom_extended_boot_data *data);
|
||||
enum k3_device_type get_device_type(void);
|
||||
void ti_secure_image_post_process(void **p_image, size_t *p_size);
|
||||
struct ti_sci_handle *get_ti_sci_handle(void);
|
||||
void do_board_detect(void);
|
||||
void ti_secure_image_check_binary(void **p_image, size_t *p_size);
|
||||
|
11
arch/arm/mach-k3/include/mach/security.h
Normal file
11
arch/arm/mach-k3/include/mach/security.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* K3: Security related definitions
|
||||
*
|
||||
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
||||
* Manorit Chawdhry <m-chawdhry@ti.com>
|
||||
*/
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
void ti_secure_image_post_process(void **p_image, size_t *p_size);
|
Reference in New Issue
Block a user