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 | e7510d4 | 2020-04-17 13:43:53 +0530 | [diff] [blame] | 11 | #define AM65X 0xbb5a |
| 12 | #define J721E 0xbb64 |
Lokesh Vutla | f8ca912 | 2019-09-27 13:32:11 +0530 | [diff] [blame] | 13 | |
| 14 | #define REV_PG1_0 0 |
| 15 | #define REV_PG2_0 1 |
| 16 | |
Andrew F. Davis | ea70da1 | 2020-01-10 14:35:21 -0500 | [diff] [blame] | 17 | struct fwl_data { |
| 18 | const char *name; |
| 19 | u16 fwl_id; |
| 20 | u16 regions; |
| 21 | }; |
| 22 | |
Lokesh Vutla | 23f7b1a | 2018-11-02 19:51:03 +0530 | [diff] [blame] | 23 | void setup_k3_mpu_regions(void); |
Andreas Dannenberg | e630afe1 | 2019-08-15 15:55:28 -0500 | [diff] [blame] | 24 | int early_console_init(void); |
Lokesh Vutla | 40109f4 | 2019-12-31 15:49:55 +0530 | [diff] [blame] | 25 | void disable_linefill_optimization(void); |
Andrew F. Davis | ea70da1 | 2020-01-10 14:35:21 -0500 | [diff] [blame] | 26 | 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] | 27 | void start_non_linux_remote_cores(void); |
| 28 | int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr); |
Lokesh Vutla | 6e44aeb | 2020-03-10 16:50:58 +0530 | [diff] [blame] | 29 | void k3_sysfw_print_ver(void); |