blob: 42fb8ee6e737638292d14ad260a8dab11f0fb318 [file] [log] [blame]
Lokesh Vutla23f7b1a2018-11-02 19:51:03 +05301/* 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 Vutlaf8ca9122019-09-27 13:32:11 +053011#define AM654 2
12#define J721E 4
13
14#define REV_PG1_0 0
15#define REV_PG2_0 1
16
Andrew F. Davisea70da12020-01-10 14:35:21 -050017struct fwl_data {
18 const char *name;
19 u16 fwl_id;
20 u16 regions;
21};
22
Lokesh Vutla23f7b1a2018-11-02 19:51:03 +053023void setup_k3_mpu_regions(void);
Andreas Dannenberge630afe12019-08-15 15:55:28 -050024int early_console_init(void);
Lokesh Vutla40109f42019-12-31 15:49:55 +053025void disable_linefill_optimization(void);
Andrew F. Davisea70da12020-01-10 14:35:21 -050026void remove_fwl_configs(struct fwl_data *fwl_data, size_t fwl_data_size);
Keerthy3ab34bc2020-02-12 13:55:04 +053027void start_non_linux_remote_cores(void);
28int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr);