xref: /openbmc/u-boot/include/mc34704.h (revision 9e336903)
1 /*
2  * (C) Copyright 2012 Freescale Semiconductor, Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  */
10 
11 #ifndef __MC34704_H__
12 #define __MC34704_H__
13 
14 enum {
15 	MC34704_RESERVED0_REG = 0,	/* 0x00 */
16 	MC34704_GENERAL1_REG,		/* 0x01 */
17 	MC34704_GENERAL2_REG,		/* 0x02 */
18 	MC34704_GENERAL3_REG,		/* 0x03 */
19 	MC34704_RESERVED4_REG,		/* 0x04 */
20 	MC34704_VGSET2_REG,		/* 0x05 */
21 	MC34704_REG2SET1_REG,		/* 0x06 */
22 	MC34704_REG2SET2_REG,		/* 0x07 */
23 	MC34704_REG3SET1_REG,		/* 0x08 */
24 	MC34704_REG3SET2_REG,		/* 0x09 */
25 	MC34704_REG4SET1_REG,		/* 0x0a */
26 	MC34704_REG4SET2_REG,		/* 0x0b */
27 	MC34704_REG5SET1_REG,		/* 0x0c */
28 	MC34704_REG5SET2_REG,		/* 0x0d */
29 	MC34704_REG5SET3_REG,		/* 0x0e */
30 	MC34704_RESERVEDF_REG,		/* 0x0f */
31 	MC34704_RESERVED10_REG,		/* 0x10 */
32 	MC34704_RESERVED11_REG,		/* 0x11 */
33 	MC34704_RESERVED12_REG,		/* 0x12 */
34 	MC34704_FSW2SET_REG,		/* 0x13 */
35 	MC34704_RESERVED14_REG,		/* 0x14 */
36 	MC34704_REG8SET1_REG,		/* 0x15 */
37 	MC34704_REG8SET2_REG,		/* 0x16 */
38 	MC34704_REG8SET3_REG,		/* 0x17 */
39 	MC34704_FAULTS_REG,		/* 0x18 */
40 	MC34704_I2CSET1,		/* 0x19 */
41 	MC34704_NUM_OF_REGS,
42 };
43 
44 /* GENERAL2 register fields */
45 #define ONOFFE		(1 << 0)
46 #define ONOFFD		(1 << 1)
47 #define ALLOFF		(1 << 4)
48 
49 #endif /* __MC34704_H__ */
50