7b1c9735202d3aec9a9f0f4b08fc5771e5676a43
[platform/kernel/u-boot.git] / board / freescale / common / pixis.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2010 Freescale Semiconductor, Inc.
4  */
5 #ifndef __PIXIS_H_
6 #define __PIXIS_H_      1
7
8 /* PIXIS register set. */
9 #if defined(CONFIG_TARGET_MPC8536DS)
10 typedef struct pixis {
11         u8 id;
12         u8 ver;
13         u8 pver;
14         u8 csr;
15         u8 rst;
16         u8 rst2;
17         u8 aux1;
18         u8 spd;
19         u8 aux2;
20         u8 csr2;
21         u8 watch;
22         u8 led;
23         u8 pwr;
24         u8 res[3];
25         u8 vctl;
26         u8 vstat;
27         u8 vcfgen0;
28         u8 vcfgen1;
29         u8 vcore0;
30         u8 res1;
31         u8 vboot;
32         u8 vspeed[3];
33         u8 sclk[3];
34         u8 dclk[3];
35         u8 i2cdacr;
36         u8 vcoreacc[4];
37         u8 vcorecnt[3];
38         u8 vcoremax[2];
39         u8 vplatacc[4];
40         u8 vplatcnt[3];
41         u8 vplatmax[2];
42         u8 vtempacc[4];
43         u8 vtempcnt[3];
44         u8 vtempmax[2];
45         u8 res2[4];
46 } __attribute__ ((packed)) pixis_t;
47
48 #elif defined(CONFIG_TARGET_MPC8610HPCD)
49 typedef struct pixis {
50         u8 id;
51         u8 ver; /* also called arch */
52         u8 pver;
53         u8 csr;
54         u8 rst;
55         u8 pwr;
56         u8 aux;
57         u8 spd;
58         u8 brdcfg0;
59         u8 brdcfg1;
60         u8 res[4];
61         u8 led;
62         u8 serno;
63         u8 vctl;
64         u8 vstat;
65         u8 vcfgen0;
66         u8 vcfgen1;
67         u8 vcore0;
68         u8 res1;
69         u8 vboot;
70         u8 vspeed[2];
71         u8 res2;
72         u8 sclk[3];
73         u8 res3;
74         u8 watch;
75         u8 res4[33];
76 } __attribute__ ((packed)) pixis_t;
77
78 #elif defined(CONFIG_TARGET_MPC8641HPCN)
79 typedef struct pixis {
80         u8 id;
81         u8 ver;
82         u8 pver;
83         u8 csr;
84         u8 rst;
85         u8 pwr;
86         u8 aux;
87         u8 spd;
88         u8 res[8];
89         u8 vctl;
90         u8 vstat;
91         u8 vcfgen0;
92         u8 vcfgen1;
93         u8 vcore0;
94         u8 res1;
95         u8 vboot;
96         u8 vspeed[2];
97         u8 vclkh;
98         u8 vclkl;
99         u8 watch;
100         u8 res3[36];
101 } __attribute__ ((packed)) pixis_t;
102 #else
103 #error Need to define pixis_t for this board
104 #endif
105
106 /* Pointer to the PIXIS register set */
107 #define pixis ((pixis_t *)PIXIS_BASE)
108
109 #endif  /* __PIXIS_H_ */