blob: 5c1265ffe94963ff91a6180af996d91d8b7ca334 [file] [log] [blame]
Lokesh Vutlac7bfb852018-08-27 15:57:11 +05301/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4 * Lokesh Vutla <lokeshvutla@ti.com>
5 */
6#ifndef _ASM_ARCH_HARDWARE_H_
7#define _ASM_ARCH_HARDWARE_H_
8
9#ifdef CONFIG_SOC_K3_AM6
10#include "am6_hardware.h"
11#endif
Lokesh Vutla6edde292019-06-13 10:29:43 +053012
13#ifdef CONFIG_SOC_K3_J721E
14#include "j721e_hardware.h"
15#endif
Lokesh Vutlaa04cf3b2019-09-27 13:32:11 +053016
David Huang61098202022-01-25 20:56:31 +053017#ifdef CONFIG_SOC_K3_J721S2
18#include "j721s2_hardware.h"
19#endif
20
Keerthy05d670e2021-04-23 11:27:33 -050021#ifdef CONFIG_SOC_K3_AM642
22#include "am64_hardware.h"
23#endif
24
Lokesh Vutlaa04cf3b2019-09-27 13:32:11 +053025/* Assuming these addresses and definitions stay common across K3 devices */
Lokesh Vutla65549942020-08-05 22:44:19 +053026#define CTRLMMR_WKUP_JTAG_ID 0x43000014
Lokesh Vutlaa04cf3b2019-09-27 13:32:11 +053027#define JTAG_ID_VARIANT_SHIFT 28
28#define JTAG_ID_VARIANT_MASK (0xf << 28)
29#define JTAG_ID_PARTNO_SHIFT 12
Lokesh Vutlab4075872020-04-17 13:43:53 +053030#define JTAG_ID_PARTNO_MASK (0xffff << 12)
Lokesh Vutlaa04cf3b2019-09-27 13:32:11 +053031
Lokesh Vutla8e7bd012020-08-05 22:44:22 +053032#define K3_ROM_BOOT_HEADER_MAGIC "EXTBOOT"
33
34struct rom_extended_boot_data {
35 char header[8];
36 u32 num_components;
37};
38
Lokesh Vutlac7bfb852018-08-27 15:57:11 +053039#endif /* _ASM_ARCH_HARDWARE_H_ */