blob: 762a0b6d6b4f3bab4e889f008b83a94e9e163568 [file] [log] [blame]
Jim Liu4359b332022-04-19 13:32:19 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __NPCM750_GCR_H_
4#define __NPCM750_GCR_H_
5
6/* On-Chip POLEG NPCM750 VERSIONS */
7#define POLEG_Z1 0x00A92750
8#define POLEG_A1 0x04A92750
9#define POLEG_NPCM750 0x00000000
10#define POLEG_NPCM730 0x00300395
11#define POLEG_NPCM710 0x00200380
12
13#define PWRON_SECEN 7 /* STRAP8 */
14#define NPCM_GCR_BA 0xF0800000
15
16struct npcm_gcr {
17 unsigned int pdid;
18 unsigned int pwron;
19 unsigned char res1[0x4];
20 unsigned int mfsel1;
21 unsigned int mfsel2;
22 unsigned int miscpe;
23 unsigned char res2[0x20];
24 unsigned int spswc;
25 unsigned int intcr;
26 unsigned int intsr;
27 unsigned char res3[0xc];
28 unsigned int hifcr;
29 unsigned int sd1irv1;
30 unsigned int sd1irv2;
31 unsigned char res4[0x4];
32 unsigned int intcr2;
33 unsigned int mfsel3;
34 unsigned int srcnt;
35 unsigned int ressr;
36 unsigned int rlockr1;
37 unsigned int flockr1;
38 unsigned int dscnt;
39 unsigned int mdlr;
40 unsigned char res5[0x18];
41 unsigned int davclvlr;
42 unsigned int intcr3;
43 unsigned char res6[0xc];
44 unsigned int vsintr;
45 unsigned int mfsel4;
46 unsigned int sd2irv1;
47 unsigned int sd2irv2;
48 unsigned char res7[0x8];
49 unsigned int cpbpntr;
50 unsigned char res8[0x8];
51 unsigned int cpctl;
52 unsigned int cp2bst;
53 unsigned int b2cpnt;
54 unsigned int cppctl;
55 unsigned int i2csegsel;
56 unsigned int i2csegctl;
57 unsigned int vsrcr;
58 unsigned int mlockr;
59 unsigned char res9[0x4c];
60 unsigned int scrpad;
61 unsigned int usb1phyctl;
62 unsigned int usb2phyctl;
63};
64
65#endif