1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 23a0398d7SOtavio Salvador /* 33a0398d7SOtavio Salvador * Freescale i.MX28 DIGCTL Register Definitions 43a0398d7SOtavio Salvador * 53a0398d7SOtavio Salvador * Copyright (C) 2012 Robert Delien <robert@delien.nl> 63a0398d7SOtavio Salvador */ 73a0398d7SOtavio Salvador 83a0398d7SOtavio Salvador #ifndef __MX28_REGS_DIGCTL_H__ 93a0398d7SOtavio Salvador #define __MX28_REGS_DIGCTL_H__ 103a0398d7SOtavio Salvador 11552a848eSStefano Babic #include <asm/mach-imx/regs-common.h> 123a0398d7SOtavio Salvador 133a0398d7SOtavio Salvador #ifndef __ASSEMBLY__ 149c471142SOtavio Salvador struct mxs_digctl_regs { 15ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ctrl) /* 0x000 */ 16ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_status) /* 0x010 */ 17ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_hclkcount) /* 0x020 */ 18ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ramctrl) /* 0x030 */ 19ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_emi_status) /* 0x040 */ 20ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_read_margin) /* 0x050 */ 213a0398d7SOtavio Salvador uint32_t hw_digctl_writeonce; /* 0x060 */ 223a0398d7SOtavio Salvador uint32_t reserved_writeonce[3]; 23ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_bist_ctl) /* 0x070 */ 24ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_bist_status) /* 0x080 */ 253a0398d7SOtavio Salvador uint32_t hw_digctl_entropy; /* 0x090 */ 263a0398d7SOtavio Salvador uint32_t reserved_entropy[3]; 273a0398d7SOtavio Salvador uint32_t hw_digctl_entropy_latched; /* 0x0a0 */ 283a0398d7SOtavio Salvador uint32_t reserved_entropy_latched[3]; 293a0398d7SOtavio Salvador 303a0398d7SOtavio Salvador uint32_t reserved1[4]; 313a0398d7SOtavio Salvador 32ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_microseconds) /* 0x0c0 */ 333a0398d7SOtavio Salvador uint32_t hw_digctl_dbgrd; /* 0x0d0 */ 343a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_dbgrd[3]; 353a0398d7SOtavio Salvador uint32_t hw_digctl_dbg; /* 0x0e0 */ 363a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_dbg[3]; 373a0398d7SOtavio Salvador 383a0398d7SOtavio Salvador uint32_t reserved2[4]; 393a0398d7SOtavio Salvador 40ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_usb_loopback) /* 0x100 */ 41ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status0) /* 0x110 */ 42ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status1) /* 0x120 */ 43ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status2) /* 0x130 */ 44ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status3) /* 0x140 */ 45ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status4) /* 0x150 */ 46ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status5) /* 0x160 */ 47ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status6) /* 0x170 */ 48ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status7) /* 0x180 */ 49ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status8) /* 0x190 */ 50ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status9) /* 0x1a0 */ 51ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status10) /* 0x1b0 */ 52ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status11) /* 0x1c0 */ 53ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status12) /* 0x1d0 */ 54ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_ocram_status13) /* 0x1e0 */ 553a0398d7SOtavio Salvador 563a0398d7SOtavio Salvador uint32_t reserved3[36]; 573a0398d7SOtavio Salvador 583a0398d7SOtavio Salvador uint32_t hw_digctl_scratch0; /* 0x280 */ 593a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_scratch0[3]; 603a0398d7SOtavio Salvador uint32_t hw_digctl_scratch1; /* 0x290 */ 613a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_scratch1[3]; 623a0398d7SOtavio Salvador uint32_t hw_digctl_armcache; /* 0x2a0 */ 633a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_armcache[3]; 64ddcf13b1SOtavio Salvador mxs_reg_32(hw_digctl_debug_trap) /* 0x2b0 */ 653a0398d7SOtavio Salvador uint32_t hw_digctl_debug_trap_l0_addr_low; /* 0x2c0 */ 663a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_debug_trap_l0_addr_low[3]; 673a0398d7SOtavio Salvador uint32_t hw_digctl_debug_trap_l0_addr_high; /* 0x2d0 */ 683a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_debug_trap_l0_addr_high[3]; 693a0398d7SOtavio Salvador uint32_t hw_digctl_debug_trap_l3_addr_low; /* 0x2e0 */ 703a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_debug_trap_l3_addr_low[3]; 713a0398d7SOtavio Salvador uint32_t hw_digctl_debug_trap_l3_addr_high; /* 0x2f0 */ 723a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_debug_trap_l3_addr_high[3]; 733a0398d7SOtavio Salvador uint32_t hw_digctl_fsl; /* 0x300 */ 743a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_fsl[3]; 753a0398d7SOtavio Salvador uint32_t hw_digctl_chipid; /* 0x310 */ 763a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_chipid[3]; 773a0398d7SOtavio Salvador 783a0398d7SOtavio Salvador uint32_t reserved4[4]; 793a0398d7SOtavio Salvador 803a0398d7SOtavio Salvador uint32_t hw_digctl_ahb_stats_select; /* 0x330 */ 813a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_ahb_stats_select[3]; 823a0398d7SOtavio Salvador 833a0398d7SOtavio Salvador uint32_t reserved5[12]; 843a0398d7SOtavio Salvador 853a0398d7SOtavio Salvador uint32_t hw_digctl_l1_ahb_active_cycles; /* 0x370 */ 863a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l1_ahb_active_cycles[3]; 873a0398d7SOtavio Salvador uint32_t hw_digctl_l1_ahb_data_stalled; /* 0x380 */ 883a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l1_ahb_data_stalled[3]; 893a0398d7SOtavio Salvador uint32_t hw_digctl_l1_ahb_data_cycles; /* 0x390 */ 903a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l1_ahb_data_cycles[3]; 913a0398d7SOtavio Salvador uint32_t hw_digctl_l2_ahb_active_cycles; /* 0x3a0 */ 923a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l2_ahb_active_cycles[3]; 933a0398d7SOtavio Salvador uint32_t hw_digctl_l2_ahb_data_stalled; /* 0x3b0 */ 943a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l2_ahb_data_stalled[3]; 953a0398d7SOtavio Salvador uint32_t hw_digctl_l2_ahb_data_cycles; /* 0x3c0 */ 963a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l2_ahb_data_cycles[3]; 973a0398d7SOtavio Salvador uint32_t hw_digctl_l3_ahb_active_cycles; /* 0x3d0 */ 983a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l3_ahb_active_cycles[3]; 993a0398d7SOtavio Salvador uint32_t hw_digctl_l3_ahb_data_stalled; /* 0x3e0 */ 1003a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l3_ahb_data_stalled[3]; 1013a0398d7SOtavio Salvador uint32_t hw_digctl_l3_ahb_data_cycles; /* 0x3f0 */ 1023a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_l3_ahb_data_cycles[3]; 1033a0398d7SOtavio Salvador 1043a0398d7SOtavio Salvador uint32_t reserved6[64]; 1053a0398d7SOtavio Salvador 1063a0398d7SOtavio Salvador uint32_t hw_digctl_mpte0_loc; /* 0x500 */ 1073a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte0_loc[3]; 1083a0398d7SOtavio Salvador uint32_t hw_digctl_mpte1_loc; /* 0x510 */ 1093a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte1_loc[3]; 1103a0398d7SOtavio Salvador uint32_t hw_digctl_mpte2_loc; /* 0x520 */ 1113a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte2_loc[3]; 1123a0398d7SOtavio Salvador uint32_t hw_digctl_mpte3_loc; /* 0x530 */ 1133a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte3_loc[3]; 1143a0398d7SOtavio Salvador uint32_t hw_digctl_mpte4_loc; /* 0x540 */ 1153a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte4_loc[3]; 1163a0398d7SOtavio Salvador uint32_t hw_digctl_mpte5_loc; /* 0x550 */ 1173a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte5_loc[3]; 1183a0398d7SOtavio Salvador uint32_t hw_digctl_mpte6_loc; /* 0x560 */ 1193a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte6_loc[3]; 1203a0398d7SOtavio Salvador uint32_t hw_digctl_mpte7_loc; /* 0x570 */ 1213a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte7_loc[3]; 1223a0398d7SOtavio Salvador uint32_t hw_digctl_mpte8_loc; /* 0x580 */ 1233a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte8_loc[3]; 1243a0398d7SOtavio Salvador uint32_t hw_digctl_mpte9_loc; /* 0x590 */ 1253a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte9_loc[3]; 1263a0398d7SOtavio Salvador uint32_t hw_digctl_mpte10_loc; /* 0x5a0 */ 1273a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte10_loc[3]; 1283a0398d7SOtavio Salvador uint32_t hw_digctl_mpte11_loc; /* 0x5b0 */ 1293a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte11_loc[3]; 1303a0398d7SOtavio Salvador uint32_t hw_digctl_mpte12_loc; /* 0x5c0 */ 1313a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte12_loc[3]; 1323a0398d7SOtavio Salvador uint32_t hw_digctl_mpte13_loc; /* 0x5d0 */ 1333a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte13_loc[3]; 1343a0398d7SOtavio Salvador uint32_t hw_digctl_mpte14_loc; /* 0x5e0 */ 1353a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte14_loc[3]; 1363a0398d7SOtavio Salvador uint32_t hw_digctl_mpte15_loc; /* 0x5f0 */ 1373a0398d7SOtavio Salvador uint32_t reserved_hw_digctl_mpte15_loc[3]; 1383a0398d7SOtavio Salvador }; 1393a0398d7SOtavio Salvador #endif 1403a0398d7SOtavio Salvador 1413a0398d7SOtavio Salvador /* Product code identification */ 1423a0398d7SOtavio Salvador #define HW_DIGCTL_CHIPID_MASK (0xffff << 16) 143f69077e4SOtavio Salvador #define HW_DIGCTL_CHIPID_MX23 (0x3780 << 16) 1443a0398d7SOtavio Salvador #define HW_DIGCTL_CHIPID_MX28 (0x2800 << 16) 1453a0398d7SOtavio Salvador 1463a0398d7SOtavio Salvador #endif /* __MX28_REGS_DIGCTL_H__ */ 147