1 /* 2 * Copyright (C) ST-Ericsson SA 2010 3 * 4 * Author: Bengt Jonsson <bengt.jonsson@stericsson.com> for ST-Ericsson, 5 * Jonas Aaberg <jonas.aberg@stericsson.com> 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 16 /** 17 * struct dbx500_regulator_info - dbx500 regulator information 18 * @desc: regulator description 19 * @is_enabled: status of the regulator 20 * @epod_id: id for EPOD (power domain) 21 * @is_ramret: RAM retention switch for EPOD (power domain) 22 * 23 */ 24 struct dbx500_regulator_info { 25 struct regulator_desc desc; 26 bool is_enabled; 27 u16 epod_id; 28 bool is_ramret; 29 bool exclude_from_power_state; 30 }; 31 32 void power_state_active_enable(void); 33 int power_state_active_disable(void); 34 35 36 #ifdef CONFIG_REGULATOR_DEBUG 37 int ux500_regulator_debug_init(struct platform_device *pdev, 38 struct dbx500_regulator_info *regulator_info, 39 int num_regulators); 40 41 int ux500_regulator_debug_exit(void); 42 #else 43 44 static inline int ux500_regulator_debug_init(struct platform_device *pdev, 45 struct dbx500_regulator_info *regulator_info, 46 int num_regulators) 47 { 48 return 0; 49 } 50 51 static inline int ux500_regulator_debug_exit(void) 52 { 53 return 0; 54 } 55 56 #endif 57 #endif 58