mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
4accdff7a3
The ux500 default config enables the db5500 and the db8500. The incoming cpuidle driver uses the 'prcmu_enable_wakeups' and the 'prcmu_set_power_state' functions but these ones are defined but not implemented for the db5500, leading to an unresolved symbol error at link time. In order to compile, we have to disable the db5500 support which is not acceptable for the default config. I noticed there are also some other functions which are defined but not implemented. This patch fix this by removing the functions definitions and move out of the config section the empty functions which are normally used when the DB550 config is disabled. Only the functions which are not implemented are concerned by this modification. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
105 lines
2 KiB
C
105 lines
2 KiB
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
*
|
|
* License Terms: GNU General Public License v2
|
|
*
|
|
* U5500 PRCMU API.
|
|
*/
|
|
#ifndef __MFD_DB5500_PRCMU_H
|
|
#define __MFD_DB5500_PRCMU_H
|
|
|
|
static inline int prcmu_resetout(u8 resoutn, u8 state)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_set_epod(u16 epod_id, u8 epod_state)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_request_clock(u8 clock, bool enable)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_set_power_state(u8 state, bool keep_ulp_clk,
|
|
bool keep_ap_pll)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_config_esram0_deep_sleep(u8 state)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline u16 db5500_prcmu_get_reset_code(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline bool db5500_prcmu_is_ac_wake_requested(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_set_arm_opp(u8 opp)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_get_arm_opp(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void db5500_prcmu_config_abb_event_readout(u32 abb_events) {}
|
|
|
|
static inline void db5500_prcmu_get_abb_event_buffer(void __iomem **buf) {}
|
|
|
|
static inline void db5500_prcmu_system_reset(u16 reset_code) {}
|
|
|
|
static inline void db5500_prcmu_enable_wakeups(u32 wakeups) {}
|
|
|
|
#ifdef CONFIG_MFD_DB5500_PRCMU
|
|
|
|
void db5500_prcmu_early_init(void);
|
|
int db5500_prcmu_set_display_clocks(void);
|
|
int db5500_prcmu_disable_dsipll(void);
|
|
int db5500_prcmu_enable_dsipll(void);
|
|
int db5500_prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
|
|
int db5500_prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size);
|
|
|
|
#else /* !CONFIG_UX500_SOC_DB5500 */
|
|
|
|
static inline void db5500_prcmu_early_init(void) {}
|
|
|
|
static inline int db5500_prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
static inline int db5500_prcmu_abb_write(u8 slave, u8 reg, u8 *value, u8 size)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
static inline int db5500_prcmu_set_display_clocks(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_disable_dsipll(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int db5500_prcmu_enable_dsipll(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* CONFIG_MFD_DB5500_PRCMU */
|
|
|
|
#endif /* __MFD_DB5500_PRCMU_H */
|