Merge tag 'tpm-030822' of https://source.denx.de/u-boot/custodians/u-boot-tpm
[platform/kernel/u-boot.git] / arch / arm / mach-k3 / include / mach / hardware.h
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_AM654
10 #include "am6_hardware.h"
11 #endif
12
13 #ifdef CONFIG_SOC_K3_J721E
14 #include "j721e_hardware.h"
15 #endif
16
17 #ifdef CONFIG_SOC_K3_J721S2
18 #include "j721s2_hardware.h"
19 #endif
20
21 #ifdef CONFIG_SOC_K3_AM642
22 #include "am64_hardware.h"
23 #endif
24
25 #ifdef CONFIG_SOC_K3_AM625
26 #include "am62_hardware.h"
27 #endif
28
29 /* Assuming these addresses and definitions stay common across K3 devices */
30 #define CTRLMMR_WKUP_JTAG_ID    0x43000014
31 #define JTAG_ID_VARIANT_SHIFT   28
32 #define JTAG_ID_VARIANT_MASK    (0xf << 28)
33 #define JTAG_ID_PARTNO_SHIFT    12
34 #define JTAG_ID_PARTNO_MASK     (0xffff << 12)
35 #define K3_SEC_MGR_SYS_STATUS           0x44234100
36 #define SYS_STATUS_DEV_TYPE_SHIFT       0
37 #define SYS_STATUS_DEV_TYPE_MASK        (0xf)
38 #define SYS_STATUS_DEV_TYPE_GP          0x3
39 #define SYS_STATUS_DEV_TYPE_TEST        0x5
40 #define SYS_STATUS_DEV_TYPE_EMU         0x9
41 #define SYS_STATUS_DEV_TYPE_HS          0xa
42 #define SYS_STATUS_SUB_TYPE_SHIFT       8
43 #define SYS_STATUS_SUB_TYPE_MASK        (0xf << 8)
44 #define SYS_STATUS_SUB_TYPE_VAL_FS      0xa
45
46 #define K3_ROM_BOOT_HEADER_MAGIC        "EXTBOOT"
47
48 struct rom_extended_boot_data {
49         char header[8];
50         u32 num_components;
51 };
52
53 #endif /* _ASM_ARCH_HARDWARE_H_ */