diff options
author | Andreas Färber <afaerber@suse.de> | 2017-06-23 17:46:41 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2017-06-23 18:03:40 +0200 |
commit | d97d0f1b4630d46976b7a275c1636229c3ebf4d0 (patch) | |
tree | 89f16439490a291c44df47dae679912dfe0538a7 /include | |
parent | f35b0936151ed5711fb63e8c866f0202883600e1 (diff) | |
parent | 6932ec60cc0a71689150b16b71427cfdc6575602 (diff) |
Merge branch 'v4.13/sps' into v4.13/drivers
This adds the SPS power domains driver.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/dt-bindings/power/owl-s500-powergate.h | 19 | ||||
-rw-r--r-- | include/linux/soc/actions/owl-sps.h | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/include/dt-bindings/power/owl-s500-powergate.h b/include/dt-bindings/power/owl-s500-powergate.h new file mode 100644 index 000000000000..0a1c451865ea --- /dev/null +++ b/include/dt-bindings/power/owl-s500-powergate.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2017 Andreas Färber + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ +#ifndef DT_BINDINGS_POWER_OWL_S500_POWERGATE_H +#define DT_BINDINGS_POWER_OWL_S500_POWERGATE_H + +#define S500_PD_VDE 0 +#define S500_PD_VCE_SI 1 +#define S500_PD_USB2_1 2 +#define S500_PD_CPU2 3 +#define S500_PD_CPU3 4 +#define S500_PD_DMA 5 +#define S500_PD_DS 6 +#define S500_PD_USB3 7 +#define S500_PD_USB2_0 8 + +#endif diff --git a/include/linux/soc/actions/owl-sps.h b/include/linux/soc/actions/owl-sps.h new file mode 100644 index 000000000000..33d0dbeceb55 --- /dev/null +++ b/include/linux/soc/actions/owl-sps.h @@ -0,0 +1,11 @@ +/* + * Copyright (c) 2017 Andreas Färber + * + * SPDX-License-Identifier: GPL-2.0+ + */ +#ifndef SOC_ACTIONS_OWL_SPS_H +#define SOC_ACTIONS_OWL_SPS_H + +int owl_sps_set_pg(void __iomem *base, u32 pwr_mask, u32 ack_mask, bool enable); + +#endif |