Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 1 | /* 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 Vutla | 6edde29 | 2019-06-13 10:29:43 +0530 | [diff] [blame] | 12 | |
| 13 | #ifdef CONFIG_SOC_K3_J721E |
| 14 | #include "j721e_hardware.h" |
| 15 | #endif |
Lokesh Vutla | a04cf3b | 2019-09-27 13:32:11 +0530 | [diff] [blame] | 16 | |
Keerthy | 05d670e | 2021-04-23 11:27:33 -0500 | [diff] [blame] | 17 | #ifdef CONFIG_SOC_K3_AM642 |
| 18 | #include "am64_hardware.h" |
| 19 | #endif |
| 20 | |
Lokesh Vutla | a04cf3b | 2019-09-27 13:32:11 +0530 | [diff] [blame] | 21 | /* Assuming these addresses and definitions stay common across K3 devices */ |
Lokesh Vutla | 6554994 | 2020-08-05 22:44:19 +0530 | [diff] [blame] | 22 | #define CTRLMMR_WKUP_JTAG_ID 0x43000014 |
Lokesh Vutla | a04cf3b | 2019-09-27 13:32:11 +0530 | [diff] [blame] | 23 | #define JTAG_ID_VARIANT_SHIFT 28 |
| 24 | #define JTAG_ID_VARIANT_MASK (0xf << 28) |
| 25 | #define JTAG_ID_PARTNO_SHIFT 12 |
Lokesh Vutla | b407587 | 2020-04-17 13:43:53 +0530 | [diff] [blame] | 26 | #define JTAG_ID_PARTNO_MASK (0xffff << 12) |
Lokesh Vutla | a04cf3b | 2019-09-27 13:32:11 +0530 | [diff] [blame] | 27 | |
Lokesh Vutla | 8e7bd01 | 2020-08-05 22:44:22 +0530 | [diff] [blame] | 28 | #define K3_ROM_BOOT_HEADER_MAGIC "EXTBOOT" |
| 29 | |
| 30 | struct rom_extended_boot_data { |
| 31 | char header[8]; |
| 32 | u32 num_components; |
| 33 | }; |
| 34 | |
Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 35 | #endif /* _ASM_ARCH_HARDWARE_H_ */ |