Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dbx500-prcmu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) ST-Ericsson SA 2010
3  *
4  * Author: Bengt Jonsson <[email protected]> for ST-Ericsson,
5  * Jonas Aaberg <[email protected]> for ST-Ericsson
6  *
7  * License Terms: GNU General Public License v2
8  *
9  */
10 
11 #ifndef DBX500_REGULATOR_H
12 #define DBX500_REGULATOR_H
13 
14 #include <linux/platform_device.h>
15 
28  struct device *dev;
31  bool is_enabled;
33  bool is_ramret;
35  unsigned int operating_point;
36 };
37 
38 void power_state_active_enable(void);
40 
41 
42 #ifdef CONFIG_REGULATOR_DEBUG
43 int ux500_regulator_debug_init(struct platform_device *pdev,
44  struct dbx500_regulator_info *regulator_info,
45  int num_regulators);
46 
47 int ux500_regulator_debug_exit(void);
48 #else
49 
50 static inline int ux500_regulator_debug_init(struct platform_device *pdev,
51  struct dbx500_regulator_info *regulator_info,
52  int num_regulators)
53 {
54  return 0;
55 }
56 
57 static inline int ux500_regulator_debug_exit(void)
58 {
59  return 0;
60 }
61 
62 #endif
63 #endif