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 #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_ */ 55