3
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
5
* (C) Copyright 2009 Freescale Semiconductor, Inc.
7
* SPDX-License-Identifier: GPL-2.0+
10
#ifndef __FSL_PMIC_H__
11
#define __FSL_PMIC_H__
14
* The registers of different PMIC has the same meaning
15
* but the bit positions of the fields can differ or
16
* some fields has a meaning only on some devices.
17
* You have to check with the internal SPI bitmap
18
* (see Freescale Documentation) to set the registers
19
* for the device you are using
52
REG_SETTING_0, /*30 */
90
#define GPO1EN (1 << 6)
91
#define GPO1STBY (1 << 7)
92
#define GPO2EN (1 << 8)
93
#define GPO2STBY (1 << 9)
94
#define GPO3EN (1 << 10)
95
#define GPO3STBY (1 << 11)
96
#define GPO4EN (1 << 12)
97
#define GPO4STBY (1 << 13)
98
#define PWGT1SPIEN (1 << 15)
99
#define PWGT2SPIEN (1 << 16)
100
#define PWUP (1 << 21)
102
/* Power Control 0 */
103
#define COINCHEN (1 << 23)
104
#define BATTDETEN (1 << 19)
106
/* Interrupt status 1 */
107
#define RTCRSTI (1 << 7)
109
/* MC34708 Definitions */
110
#define SWx_VOLT_MASK_MC34708 0x3F
111
#define SWx_1_250V_MC34708 0x30
112
#define SWx_1_300V_MC34708 0x34
113
#define TIMER_MASK_MC34708 0x300
114
#define TIMER_4S_MC34708 0x100
115
#define VUSBSEL_MC34708 (1 << 2)
116
#define VUSBEN_MC34708 (1 << 3)
117
#define SWBST_CTRL 31
118
#define SWBST_AUTO 0x8