blob: fa6951ebbe8eff0096c70218e34c3d0aee900c30 [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
Alice Guob93916d2022-07-26 16:40:59 +080022#define FSB_BASE_ADDR 0x47510000UL
23
Peng Fan1e9aff12022-07-26 16:40:50 +080024#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
25#include <asm/types.h>
26#include <stdbool.h>
27
28struct mu_type {
29 u32 ver;
30 u32 par;
31 u32 cr;
32 u32 sr;
33 u32 reserved0[60];
34 u32 fcr;
35 u32 fsr;
36 u32 reserved1[2];
37 u32 gier;
38 u32 gcr;
39 u32 gsr;
40 u32 reserved2;
41 u32 tcr;
42 u32 tsr;
43 u32 rcr;
44 u32 rsr;
45 u32 reserved3[52];
46 u32 tr[16];
47 u32 reserved4[16];
48 u32 rr[16];
49 u32 reserved5[14];
50 u32 mu_attr;
51};
52#endif
53
Peng Fanbbcd2c42022-07-26 16:40:39 +080054#endif