2 * Copyright (C) ST-Ericsson SA 2010
4 * License Terms: GNU General Public License v2
6 * Authors: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson
7 * Bengt Jonsson <bengt.g.jonsson@stericsson.com> for ST-Ericsson
10 #ifndef __LINUX_MFD_AB8500_REGULATOR_H
11 #define __LINUX_MFD_AB8500_REGULATOR_H
13 /* AB8500 regulators */
14 enum ab8500_regulator_id
{
26 AB8500_NUM_REGULATORS
,
29 /* AB8500 register initialization */
30 struct ab8500_regulator_reg_init
{
35 #define INIT_REGULATOR_REGISTER(_id, _value) \
41 /* AB8500 registers */
42 enum ab8500_regulator_reg
{
43 AB8500_REGUREQUESTCTRL2
,
44 AB8500_REGUREQUESTCTRL3
,
45 AB8500_REGUREQUESTCTRL4
,
46 AB8500_REGUSYSCLKREQ1HPVALID1
,
47 AB8500_REGUSYSCLKREQ1HPVALID2
,
48 AB8500_REGUHWHPREQ1VALID1
,
49 AB8500_REGUHWHPREQ1VALID2
,
50 AB8500_REGUHWHPREQ2VALID1
,
51 AB8500_REGUHWHPREQ2VALID2
,
52 AB8500_REGUSWHPREQVALID1
,
53 AB8500_REGUSWHPREQVALID2
,
54 AB8500_REGUSYSCLKREQVALID1
,
55 AB8500_REGUSYSCLKREQVALID2
,
58 AB8500_REGUCTRL1VAMIC
,
67 AB8500_REGUCTRL2SPARE
,
69 AB8500_REGUCTRLDISCH2
,
71 AB8500_NUM_REGULATOR_REGISTERS
,