blob: 32d07340bfd1796b0300518d8c5927e93f4559ea [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 Vutla2a18be72020-08-05 22:44:19 +053011#define J721E 0xbb64
Lokesh Vutla30de1ba2020-08-05 22:44:21 +053012#define J7200 0xbb6d
Lokesh Vutla2a18be72020-08-05 22:44:19 +053013
Andrew F. Davisea70da12020-01-10 14:35:21 -050014struct fwl_data {
15 const char *name;
16 u16 fwl_id;
17 u16 regions;
18};
19
Lokesh Vutla23f7b1a2018-11-02 19:51:03 +053020void setup_k3_mpu_regions(void);
Andreas Dannenberge630afe12019-08-15 15:55:28 -050021int early_console_init(void);
Lokesh Vutla40109f42019-12-31 15:49:55 +053022void disable_linefill_optimization(void);
Andrew F. Davisea70da12020-01-10 14:35:21 -050023void remove_fwl_configs(struct fwl_data *fwl_data, size_t fwl_data_size);
Keerthy3ab34bc2020-02-12 13:55:04 +053024void start_non_linux_remote_cores(void);
25int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr);
Lokesh Vutla6e44aeb2020-03-10 16:50:58 +053026void k3_sysfw_print_ver(void);
Jan Kiszkac02712a2020-05-18 07:57:22 +020027void spl_enable_dcache(void);
Lokesh Vutla58ccd612020-08-05 22:44:17 +053028void mmr_unlock(phys_addr_t base, u32 partition);