You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2020/01/31 09:57:28 UTC
[mynewt-core] 01/06: hw/mcu/dialog: Remove PD_RAD from PD control
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit f65f288639e44449a41d2e660e99557c0c7a4f17
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Jan 23 12:05:53 2020 +0100
hw/mcu/dialog: Remove PD_RAD from PD control
We don't need/want to control PD_RAD domain explicitly, it's just always
allowed to sleep so will be automatically controlled by CMAC.
---
hw/mcu/dialog/da1469x/include/mcu/da1469x_pd.h | 7 +++----
hw/mcu/dialog/da1469x/src/da1469x_pd.c | 2 --
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/hw/mcu/dialog/da1469x/include/mcu/da1469x_pd.h b/hw/mcu/dialog/da1469x/include/mcu/da1469x_pd.h
index 5a9e3bd..5fef637 100644
--- a/hw/mcu/dialog/da1469x/include/mcu/da1469x_pd.h
+++ b/hw/mcu/dialog/da1469x/include/mcu/da1469x_pd.h
@@ -31,11 +31,10 @@ extern "C" {
/* Available (controllable) power domains */
#define MCU_PD_DOMAIN_SYS 0
#define MCU_PD_DOMAIN_PER 1
-#define MCU_PD_DOMAIN_RAD 2
-#define MCU_PD_DOMAIN_TIM 3
-#define MCU_PD_DOMAIN_COM 4
+#define MCU_PD_DOMAIN_TIM 2
+#define MCU_PD_DOMAIN_COM 3
-#define MCU_PD_DOMAIN_COUNT 5
+#define MCU_PD_DOMAIN_COUNT 4
int da1469x_pd_init(void);
int da1469x_pd_acquire(uint8_t pd);
diff --git a/hw/mcu/dialog/da1469x/src/da1469x_pd.c b/hw/mcu/dialog/da1469x/src/da1469x_pd.c
index 20ac45c..563faad 100644
--- a/hw/mcu/dialog/da1469x/src/da1469x_pd.c
+++ b/hw/mcu/dialog/da1469x/src/da1469x_pd.c
@@ -40,8 +40,6 @@ static const struct da1469x_pd_desc g_da1469x_pd_desc[] = {
CRG_TOP_SYS_STAT_REG_SYS_IS_DOWN_Pos },
[MCU_PD_DOMAIN_PER] = { CRG_TOP_PMU_CTRL_REG_PERIPH_SLEEP_Pos,
CRG_TOP_SYS_STAT_REG_PER_IS_DOWN_Pos },
- [MCU_PD_DOMAIN_RAD] = { CRG_TOP_PMU_CTRL_REG_RADIO_SLEEP_Pos,
- CRG_TOP_SYS_STAT_REG_RAD_IS_DOWN_Pos},
[MCU_PD_DOMAIN_TIM] = { CRG_TOP_PMU_CTRL_REG_TIM_SLEEP_Pos,
CRG_TOP_SYS_STAT_REG_TIM_IS_DOWN_Pos },
[MCU_PD_DOMAIN_COM] = { CRG_TOP_PMU_CTRL_REG_COM_SLEEP_Pos,