summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 83c900cab..03e88e2a9 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * K3 System Firmware Board Configuration Data Structures 2 * K3 System Firmware Board Configuration Data Structures
3 * 3 *
4 * Copyright (C) 2018-2019 Texas Instruments Incorporated - http://www.ti.com/ 4 * Copyright (C) 2018-2020 Texas Instruments Incorporated - http://www.ti.com/
5 * Andreas Dannenberg <dannenberg@ti.com> 5 * Andreas Dannenberg <dannenberg@ti.com>
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
@@ -79,6 +79,7 @@ typedef u8 ftbool;
79#define BOARDCFG_RESASG_MAGIC_NUM 0x4C41 79#define BOARDCFG_RESASG_MAGIC_NUM 0x4C41
80#define BOARDCFG_DBG_CFG_MAGIC_NUM 0x020C 80#define BOARDCFG_DBG_CFG_MAGIC_NUM 0x020C
81#define BOARDCFG_PMIC_CFG_MAGIC_NUM 0x3172 81#define BOARDCFG_PMIC_CFG_MAGIC_NUM 0x3172
82#define BOARDCFG_OTP_CFG_MAGIC_NUM 0x4081
82 83
83struct boardcfg_substructure_header { 84struct boardcfg_substructure_header {
84 u16 magic; 85 u16 magic;
@@ -217,10 +218,24 @@ struct boardcfg_host_hierarchy {
217 host_hierarchy_entries[HOST_HIERARCHY_ENTRIES]; 218 host_hierarchy_entries[HOST_HIERARCHY_ENTRIES];
218} __attribute__((__packed__)); 219} __attribute__((__packed__));
219 220
221struct boardcfg_extended_otp_entry {
222 u8 host_id;
223 u8 host_perms;
224} __attribute__((__packed__));
225
226#define MAX_NUM_EXT_OTP_MMRS 32
227
228struct boardcfg_extended_otp {
229 struct boardcfg_substructure_header subhdr;
230 struct boardcfg_extended_otp_entry otp_entry[MAX_NUM_EXT_OTP_MMRS];
231 u8 write_host_id;
232} __attribute__((__packed__));
233
220struct boardcfg_security { 234struct boardcfg_security {
221 struct boardcfg_abi_rev rev; 235 struct boardcfg_abi_rev rev;
222 struct boardcfg_proc_acl processor_acl_list; 236 struct boardcfg_proc_acl processor_acl_list;
223 struct boardcfg_host_hierarchy host_hierarchy; 237 struct boardcfg_host_hierarchy host_hierarchy;
238 struct boardcfg_extended_otp otp_config;
224} __attribute__((__packed__)); 239} __attribute__((__packed__));
225 240
226/** 241/**