mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 23:02:59 +00:00
b8ebf24e7f
K3 devices have some firewalls set up by ROM that we usually remove so that the development is easy in HS devices. While removing the firewalls disabling a background region before disabling the foreground regions keeps the firewall in a state where all the transactions will be blacklisted until all the regions are disabled. This causes a race for some other entity trying to access that memory region before all the firewalls are disabled and causes an exception. Since the background regions configured by ROM are in such a manner that they allow all transactions, don't touch the background regions at all. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* K3: Architecture common definitions
|
|
*
|
|
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
|
|
* Lokesh Vutla <lokeshvutla@ti.com>
|
|
*/
|
|
|
|
#include <asm/armv7_mpu.h>
|
|
#include <asm/hardware.h>
|
|
|
|
#define J721E 0xbb64
|
|
#define J7200 0xbb6d
|
|
#define K3_BACKGROUND_FIREWALL_BIT BIT(8)
|
|
|
|
struct fwl_data {
|
|
const char *name;
|
|
u16 fwl_id;
|
|
u16 regions;
|
|
};
|
|
|
|
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_dcache(void);
|
|
void mmr_unlock(phys_addr_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);
|