diff options
author | Nishanth Menon | 2019-05-18 07:19:31 -0500 |
---|---|---|
committer | Andreas Dannenberg | 2019-06-10 11:41:59 -0500 |
commit | 8c2ade06998768ab4e4295afed92eb591e264171 (patch) | |
tree | 00d42298a977ec5997ebe0e2ce19ac741a5f6144 /common.h | |
parent | abf74952fff0e812315a415decb6da6a941ec9d3 (diff) | |
download | k3-image-gen-8c2ade06998768ab4e4295afed92eb591e264171.tar.gz k3-image-gen-8c2ade06998768ab4e4295afed92eb591e264171.tar.xz k3-image-gen-8c2ade06998768ab4e4295afed92eb591e264171.zip |
common.h: Make board config data structure names generic
Rename board config data structures for better alignment as well as
to be SoC independent. While at it drop the exporting of those data
structures that was inherited from a previous project which is no
longer necessary.
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 22 |
1 files changed, 7 insertions, 15 deletions
@@ -126,7 +126,7 @@ struct boardcfg_dbg_cfg { | |||
126 | u16 trace_src_enables; | 126 | u16 trace_src_enables; |
127 | } __attribute__((__packed__)); | 127 | } __attribute__((__packed__)); |
128 | 128 | ||
129 | struct k3_boardcfg { | 129 | struct boardcfg { |
130 | struct boardcfg_abi_rev rev; | 130 | struct boardcfg_abi_rev rev; |
131 | struct boardcfg_control control; | 131 | struct boardcfg_control control; |
132 | struct boardcfg_secproxy secproxy; | 132 | struct boardcfg_secproxy secproxy; |
@@ -343,19 +343,19 @@ struct boardcfg_rm_resasg { | |||
343 | struct boardcfg_rm_resasg_entry resasg_entries[]; | 343 | struct boardcfg_rm_resasg_entry resasg_entries[]; |
344 | } __attribute__((__packed__)); | 344 | } __attribute__((__packed__)); |
345 | 345 | ||
346 | struct k3_boardcfg_rm { | 346 | struct boardcfg_rm { |
347 | struct boardcfg_abi_rev rev; | 347 | struct boardcfg_abi_rev rev; |
348 | struct boardcfg_rm_host_cfg host_cfg; | 348 | struct boardcfg_rm_host_cfg host_cfg; |
349 | struct boardcfg_rm_resasg resasg; | 349 | struct boardcfg_rm_resasg resasg; |
350 | } __attribute__((__packed__)); | 350 | } __attribute__((__packed__)); |
351 | 351 | ||
352 | /* | 352 | /* |
353 | * This is essentially 'struct k3_boardcfg_rm', but modified to pull | 353 | * This is essentially 'struct boardcfg_rm', but modified to pull |
354 | * .resasg_entries which is a member of 'struct boardcfg_rm_resasg' into | 354 | * .resasg_entries which is a member of 'struct boardcfg_rm_resasg' into |
355 | * the outer structure for easier explicit initialization. | 355 | * the outer structure for easier explicit initialization. |
356 | */ | 356 | */ |
357 | struct am65_boardcfg_rm_local { | 357 | struct boardcfg_rm_local { |
358 | struct k3_boardcfg_rm rm_boardcfg; | 358 | struct boardcfg_rm rm_boardcfg; |
359 | struct boardcfg_rm_resasg_entry | 359 | struct boardcfg_rm_resasg_entry |
360 | resasg_entries[BOARDCFG_RM_RESASG_ENTRIES]; | 360 | resasg_entries[BOARDCFG_RM_RESASG_ENTRIES]; |
361 | } __attribute__((__packed__)); | 361 | } __attribute__((__packed__)); |
@@ -391,7 +391,7 @@ struct boardcfg_host_hierarchy { | |||
391 | host_hierarchy_entries[HOST_HIERARCHY_ENTRIES]; | 391 | host_hierarchy_entries[HOST_HIERARCHY_ENTRIES]; |
392 | } __attribute__((__packed__)); | 392 | } __attribute__((__packed__)); |
393 | 393 | ||
394 | struct k3_boardcfg_security { | 394 | struct boardcfg_security { |
395 | struct boardcfg_abi_rev rev; | 395 | struct boardcfg_abi_rev rev; |
396 | struct boardcfg_proc_acl processor_acl_list; | 396 | struct boardcfg_proc_acl processor_acl_list; |
397 | struct boardcfg_host_hierarchy host_hierarchy; | 397 | struct boardcfg_host_hierarchy host_hierarchy; |
@@ -400,16 +400,8 @@ struct k3_boardcfg_security { | |||
400 | /** | 400 | /** |
401 | * Definitions, types, etc. as used for PM configuration | 401 | * Definitions, types, etc. as used for PM configuration |
402 | */ | 402 | */ |
403 | struct k3_boardcfg_pm { | 403 | struct boardcfg_pm { |
404 | struct boardcfg_abi_rev rev; | 404 | struct boardcfg_abi_rev rev; |
405 | } __attribute__((__packed__)); | 405 | } __attribute__((__packed__)); |
406 | 406 | ||
407 | /** | ||
408 | * Export different board configuration structures | ||
409 | */ | ||
410 | extern const struct k3_boardcfg am65_boardcfg_data; | ||
411 | extern const struct am65_boardcfg_rm_local am65_boardcfg_rm_data; | ||
412 | extern const struct k3_boardcfg_security am65_boardcfg_security_data; | ||
413 | extern const struct k3_boardcfg_pm am65_boardcfg_pm_data; | ||
414 | |||
415 | #endif /* COMMON_H */ | 407 | #endif /* COMMON_H */ |