blob: f19e85cb1c9ab02804027a9534cfbb8fdc0f4aef [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Kumar Galab4a60e52010-05-22 17:25:47 -05002/*
3 * Copyright 2010 Freescale Semiconductor, Inc.
Kumar Galab4a60e52010-05-22 17:25:47 -05004 */
5#ifndef __PIXIS_H_
6#define __PIXIS_H_ 1
7
8/* PIXIS register set. */
York Sun30411e72016-11-16 11:09:07 -08009#if defined(CONFIG_TARGET_MPC8536DS)
Kumar Galab4a60e52010-05-22 17:25:47 -050010typedef 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;
Kumar Galab4a60e52010-05-22 17:25:47 -050047#else
48#error Need to define pixis_t for this board
49#endif
50
51/* Pointer to the PIXIS register set */
52#define pixis ((pixis_t *)PIXIS_BASE)
53
54#endif /* __PIXIS_H_ */