mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 18:10:13 +00:00
ea70da142c
ROM configures certain firewalls based on its usage, which includes the one in front of boot peripherals. In specific case of boot peripherals, ROM does not open up the full address space corresponding to the peripherals. Like in OSPI, ROM only configures the firewall region for 32 bit address space and mark 64bit address space flash regions as in-accessible. When security-cfg is initialized by sysfw, all the non-configured firewalls are kept in bypass state using a global setting. Since ROM configured firewalls for certain peripherals, these will not be touched. So when bootloader touches any of the address space that ROM marked as in-accessible, system raises a firewall exception causing boot hang. It would have been ideal if sysfw cleans up the ROM configured boot peripheral firewalls. Given the memory overhead to store this information provided by ROM and the boot time increase in re configuring the firewalls, it is concluded to clean this up in bootloaders. So disable all the firewalls that ROM doesn't open up the full address space. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
26 lines
550 B
C
26 lines
550 B
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>
|
|
|
|
#define AM654 2
|
|
#define J721E 4
|
|
|
|
#define REV_PG1_0 0
|
|
#define REV_PG2_0 1
|
|
|
|
struct fwl_data {
|
|
const char *name;
|
|
u16 fwl_id;
|
|
u16 regions;
|
|
};
|
|
|
|
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);
|