PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/include/linux/mfd/db5500-prcmu.h

https://github.com/airy09/android_kernel_sony_apq8064
C Header | 105 lines | 74 code | 24 blank | 7 comment | 0 complexity | 68b9e28f5550f758b70a0bf9ffef077d MD5 | raw file
  1/*
  2 * Copyright (C) ST-Ericsson SA 2010
  3 *
  4 * License Terms: GNU General Public License v2
  5 *
  6 * U5500 PRCMU API.
  7 */
  8#ifndef __MFD_DB5500_PRCMU_H
  9#define __MFD_DB5500_PRCMU_H
 10
 11static inline int prcmu_resetout(u8 resoutn, u8 state)
 12{
 13	return 0;
 14}
 15
 16static inline int db5500_prcmu_set_epod(u16 epod_id, u8 epod_state)
 17{
 18	return 0;
 19}
 20
 21static inline int db5500_prcmu_request_clock(u8 clock, bool enable)
 22{
 23	return 0;
 24}
 25
 26static inline int db5500_prcmu_set_power_state(u8 state, bool keep_ulp_clk,
 27	bool keep_ap_pll)
 28{
 29	return 0;
 30}
 31
 32static inline int db5500_prcmu_config_esram0_deep_sleep(u8 state)
 33{
 34	return 0;
 35}
 36
 37static inline u16 db5500_prcmu_get_reset_code(void)
 38{
 39	return 0;
 40}
 41
 42static inline bool db5500_prcmu_is_ac_wake_requested(void)
 43{
 44	return 0;
 45}
 46
 47static inline int db5500_prcmu_set_arm_opp(u8 opp)
 48{
 49	return 0;
 50}
 51
 52static inline int db5500_prcmu_get_arm_opp(void)
 53{
 54	return 0;
 55}
 56
 57static inline void db5500_prcmu_config_abb_event_readout(u32 abb_events) {}
 58
 59static inline void db5500_prcmu_get_abb_event_buffer(void __iomem **buf) {}
 60
 61static inline void db5500_prcmu_system_reset(u16 reset_code) {}
 62
 63static inline void db5500_prcmu_enable_wakeups(u32 wakeups) {}
 64
 65#ifdef CONFIG_MFD_DB5500_PRCMU
 66
 67void db5500_prcmu_early_init(void);
 68int db5500_prcmu_set_display_clocks(void);
 69int db5500_prcmu_disable_dsipll(void);
 70int db5500_prcmu_enable_dsipll(void);
 71int db5500_prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
 72int db5500_prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
 73
 74#else /* !CONFIG_UX500_SOC_DB5500 */
 75
 76static inline void db5500_prcmu_early_init(void) {}
 77
 78static inline int db5500_prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size)
 79{
 80	return -ENOSYS;
 81}
 82
 83static inline int db5500_prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size)
 84{
 85	return -ENOSYS;
 86}
 87
 88static inline int db5500_prcmu_set_display_clocks(void)
 89{
 90	return 0;
 91}
 92
 93static inline int db5500_prcmu_disable_dsipll(void)
 94{
 95	return 0;
 96}
 97
 98static inline int db5500_prcmu_enable_dsipll(void)
 99{
100	return 0;
101}
102
103#endif /* CONFIG_MFD_DB5500_PRCMU */
104
105#endif /* __MFD_DB5500_PRCMU_H */