1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef SGI575_PIK_DEBUG_H
9 #define SGI575_PIK_DEBUG_H
10 
11 #include <fwk_macros.h>
12 
13 #include <stdint.h>
14 
15 /*!
16  * \brief Debug register definitions
17  */
18 struct pik_debug_reg {
19     FWK_RW  uint32_t DEBUG_CTRL;
20     FWK_R   uint32_t DEBUG_STATUS;
21     FWK_RW  uint32_t DEBUG_CONFIG;
22             uint8_t  RESERVED0[0x10 - 0xC];
23     FWK_R   uint32_t APP_DAP_TARGET_ID;
24     FWK_R   uint32_t SCP_DAP_TARGET_ID;
25     FWK_R   uint32_t DAP_INSTANCE_ID;
26             uint8_t  RESERVED1[0x810 - 0x1C];
27     FWK_RW  uint32_t TRACECLK_CTRL;
28     FWK_RW  uint32_t TRACECLK_DIV1;
29             uint8_t  RESERVED2[0x820 - 0x818];
30     FWK_RW  uint32_t PCLKDBG_CTRL;
31             uint8_t  RESERVED3[0x830 - 0x824];
32     FWK_RW  uint32_t ATCLKDBG_CTRL;
33     FWK_RW  uint32_t ATCLKDBG_DIV1;
34     FWK_R   uint8_t  RESERVED4[0xFC0 - 0x838];
35     FWK_R   uint32_t PCL_CONFIG;
36             uint8_t  RESERVED5[0xFD0 - 0xFC4];
37     FWK_R   uint32_t PID4;
38     FWK_R   uint32_t PID5;
39     FWK_R   uint32_t PID6;
40     FWK_R   uint32_t PID7;
41     FWK_R   uint32_t PID0;
42     FWK_R   uint32_t PID1;
43     FWK_R   uint32_t PID2;
44     FWK_R   uint32_t PID3;
45     FWK_R   uint32_t ID0;
46     FWK_R   uint32_t ID1;
47     FWK_R   uint32_t ID2;
48     FWK_R   uint32_t ID3;
49 };
50 
51 #endif  /* SGI575_PIK_DEBUG_H */
52