mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
52a86e69e2
Change spl_enable_dcache so it also enable icache on SPL initialization for the main domain part of the boot flow. This improves bootloader booting time. Link: https://lore.kernel.org/all/20231109140958.1093235-1-joao.goncalves@toradex.com/ Signed-off-by: Joao Paulo Goncalves <joao.goncalves@toradex.com> Tested-by: Nishanth Menon <nm@ti.com>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* K3: Architecture common definitions
|
|
*
|
|
* Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
|
|
* Lokesh Vutla <lokeshvutla@ti.com>
|
|
*/
|
|
|
|
#include <asm/armv7_mpu.h>
|
|
#include <asm/hardware.h>
|
|
|
|
#define K3_FIREWALL_BACKGROUND_BIT (8)
|
|
|
|
struct fwl_data {
|
|
const char *name;
|
|
u16 fwl_id;
|
|
u16 regions;
|
|
};
|
|
|
|
enum k3_firewall_region_type {
|
|
K3_FIREWALL_REGION_FOREGROUND,
|
|
K3_FIREWALL_REGION_BACKGROUND
|
|
};
|
|
|
|
enum k3_device_type {
|
|
K3_DEVICE_TYPE_BAD,
|
|
K3_DEVICE_TYPE_GP,
|
|
K3_DEVICE_TYPE_TEST,
|
|
K3_DEVICE_TYPE_EMU,
|
|
K3_DEVICE_TYPE_HS_FS,
|
|
K3_DEVICE_TYPE_HS_SE,
|
|
};
|
|
|
|
void setup_k3_mpu_regions(void);
|
|
int early_console_init(void);
|
|
void disable_linefill_optimization(void);
|
|
void remove_fwl_configs(struct fwl_data *fwl_data, size_t fwl_data_size);
|
|
int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr);
|
|
void k3_sysfw_print_ver(void);
|
|
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);
|