blob: 7b84b970b757fbeeb01aef6ecb621134905db73e [file] [log] [blame]
Peng Fanbbcd2c42022-07-26 16:40:39 +08001/* 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 Fan28b5cb52022-07-26 16:40:43 +080011#define IOMUXC_BASE_ADDR 0x443C0000UL
12#define CCM_BASE_ADDR 0x44450000UL
13#define CCM_CCGR_BASE_ADDR 0x44458000UL
Jian Liacf41a32022-07-26 16:40:46 +080014#define SYSCNT_CTRL_BASE_ADDR 0x44290000
Peng Fan28b5cb52022-07-26 16:40:43 +080015
16#define ANATOP_BASE_ADDR 0x44480000UL
Peng Fanbbcd2c42022-07-26 16:40:39 +080017
Ye Li9e19ff92022-07-26 16:40:47 +080018#define WDG3_BASE_ADDR 0x42490000UL
19#define WDG4_BASE_ADDR 0x424a0000UL
20#define WDG5_BASE_ADDR 0x424b0000UL
21
Peng Fan1e9aff12022-07-26 16:40:50 +080022#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
23#include <asm/types.h>
24#include <stdbool.h>
25
26struct 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 Fanbbcd2c42022-07-26 16:40:39 +080052#endif