drivers: qcom: rpmh-rsc: write PDC data

The Power Domain Controller can be programmed to wakeup the RSC and
setup the resources back in the active state, before the processor is
woken up by a timer interrupt. The wakeup value from the timer hardware
can be copied to the PDC which has its own timer and is in an always-on
power domain. Programming the wakeup value is done through a separate
register on the RSC.

Change-Id: Ic68d03c0dd800fd05d3b565fc33a3a56e9186682
Signed-off-by: Lina Iyer <[email protected]>
Signed-off-by: Raju P.L.S.S.S.N <[email protected]>
This commit is contained in:
Lina Iyer 2018-07-27 15:34:48 +05:30
commit 4612788d44
4 changed files with 66 additions and 6 deletions

View file

@ -26,6 +26,9 @@ int rpmh_mode_solver_set(const struct device *dev, bool enable);
int rpmh_ctrlr_idle(const struct device *dev);
int rpmh_write_pdc_data(const struct device *dev,
const struct tcs_cmd *cmd, u32 n);
#else
static inline int rpmh_write(const struct device *dev, enum rpmh_state state,
@ -54,6 +57,9 @@ static inline int rpmh_mode_solver_set(const struct device *dev, bool enable)
static inline int rpmh_ctrlr_idle(const struct device *dev)
{ return -ENODEV; }
static inline int rpmh_write_pdc_data(const struct device *dev,
const struct tcs_cmd *cmd, u32 n)
{ return -ENODEV; }
#endif /* CONFIG_QCOM_RPMH */
#endif /* __SOC_QCOM_RPMH_H__ */