Peng Fan | bbcd2c4 | 2022-07-26 16:40:39 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2022 NXP |
| 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_ARCH_IMX9_REGS_H__ |
| 7 | #define __ASM_ARCH_IMX9_REGS_H__ |
| 8 | |
| 9 | #define ARCH_MXC |
| 10 | |
Peng Fan | 28b5cb5 | 2022-07-26 16:40:43 +0800 | [diff] [blame] | 11 | #define IOMUXC_BASE_ADDR 0x443C0000UL |
| 12 | #define CCM_BASE_ADDR 0x44450000UL |
| 13 | #define CCM_CCGR_BASE_ADDR 0x44458000UL |
Jian Li | acf41a3 | 2022-07-26 16:40:46 +0800 | [diff] [blame] | 14 | #define SYSCNT_CTRL_BASE_ADDR 0x44290000 |
Peng Fan | 28b5cb5 | 2022-07-26 16:40:43 +0800 | [diff] [blame] | 15 | |
| 16 | #define ANATOP_BASE_ADDR 0x44480000UL |
Peng Fan | bbcd2c4 | 2022-07-26 16:40:39 +0800 | [diff] [blame] | 17 | |
Ye Li | 9e19ff9 | 2022-07-26 16:40:47 +0800 | [diff] [blame] | 18 | #define WDG3_BASE_ADDR 0x42490000UL |
| 19 | #define WDG4_BASE_ADDR 0x424a0000UL |
| 20 | #define WDG5_BASE_ADDR 0x424b0000UL |
| 21 | |
Peng Fan | 1e9aff1 | 2022-07-26 16:40:50 +0800 | [diff] [blame^] | 22 | #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) |
| 23 | #include <asm/types.h> |
| 24 | #include <stdbool.h> |
| 25 | |
| 26 | struct mu_type { |
| 27 | u32 ver; |
| 28 | u32 par; |
| 29 | u32 cr; |
| 30 | u32 sr; |
| 31 | u32 reserved0[60]; |
| 32 | u32 fcr; |
| 33 | u32 fsr; |
| 34 | u32 reserved1[2]; |
| 35 | u32 gier; |
| 36 | u32 gcr; |
| 37 | u32 gsr; |
| 38 | u32 reserved2; |
| 39 | u32 tcr; |
| 40 | u32 tsr; |
| 41 | u32 rcr; |
| 42 | u32 rsr; |
| 43 | u32 reserved3[52]; |
| 44 | u32 tr[16]; |
| 45 | u32 reserved4[16]; |
| 46 | u32 rr[16]; |
| 47 | u32 reserved5[14]; |
| 48 | u32 mu_attr; |
| 49 | }; |
| 50 | #endif |
| 51 | |
Peng Fan | bbcd2c4 | 2022-07-26 16:40:39 +0800 | [diff] [blame] | 52 | #endif |