Lokesh Vutla | 23f7b1a | 2018-11-02 19:51:03 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * K3: Architecture common definitions |
| 4 | * |
| 5 | * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ |
| 6 | * Lokesh Vutla <lokeshvutla@ti.com> |
| 7 | */ |
| 8 | |
| 9 | #include <asm/armv7_mpu.h> |
| 10 | |
Lokesh Vutla | 2a18be7 | 2020-08-05 22:44:19 +0530 | [diff] [blame] | 11 | #define J721E 0xbb64 |
Lokesh Vutla | 30de1ba | 2020-08-05 22:44:21 +0530 | [diff] [blame^] | 12 | #define J7200 0xbb6d |
Lokesh Vutla | 2a18be7 | 2020-08-05 22:44:19 +0530 | [diff] [blame] | 13 | |
Andrew F. Davis | ea70da1 | 2020-01-10 14:35:21 -0500 | [diff] [blame] | 14 | struct fwl_data { |
| 15 | const char *name; |
| 16 | u16 fwl_id; |
| 17 | u16 regions; |
| 18 | }; |
| 19 | |
Lokesh Vutla | 23f7b1a | 2018-11-02 19:51:03 +0530 | [diff] [blame] | 20 | void setup_k3_mpu_regions(void); |
Andreas Dannenberg | e630afe1 | 2019-08-15 15:55:28 -0500 | [diff] [blame] | 21 | int early_console_init(void); |
Lokesh Vutla | 40109f4 | 2019-12-31 15:49:55 +0530 | [diff] [blame] | 22 | void disable_linefill_optimization(void); |
Andrew F. Davis | ea70da1 | 2020-01-10 14:35:21 -0500 | [diff] [blame] | 23 | void remove_fwl_configs(struct fwl_data *fwl_data, size_t fwl_data_size); |
Keerthy | 3ab34bc | 2020-02-12 13:55:04 +0530 | [diff] [blame] | 24 | void start_non_linux_remote_cores(void); |
| 25 | int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr); |
Lokesh Vutla | 6e44aeb | 2020-03-10 16:50:58 +0530 | [diff] [blame] | 26 | void k3_sysfw_print_ver(void); |
Jan Kiszka | c02712a | 2020-05-18 07:57:22 +0200 | [diff] [blame] | 27 | void spl_enable_dcache(void); |
Lokesh Vutla | 58ccd61 | 2020-08-05 22:44:17 +0530 | [diff] [blame] | 28 | void mmr_unlock(phys_addr_t base, u32 partition); |