mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: mc13892: MC13892_POWER_MISC bits revision
@ 2018-12-14  9:27 Alexander Shiyan
  2018-12-14  9:27 ` [PATCH 2/2] ARM: CCMX51: Switch to multiimage support Alexander Shiyan
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Shiyan @ 2018-12-14  9:27 UTC (permalink / raw)
  To: barebox

This patch revises the bits for register MC13892_POWER_MISC.
 - Added definition for one missing bit (0).
 - Changed the name for bit 21 for accordance with the datasheet.
 - Updated affected board that uses these definitions.
 - Replaced tabs with spaces for the remaining bits.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/efika-mx-smartbook/board.c |  2 +-
 include/mfd/mc13892.h                      | 23 ++++++++++++-----------
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/arch/arm/boards/efika-mx-smartbook/board.c b/arch/arm/boards/efika-mx-smartbook/board.c
index d7c5681db..ec41eb8c1 100644
--- a/arch/arm/boards/efika-mx-smartbook/board.c
+++ b/arch/arm/boards/efika-mx-smartbook/board.c
@@ -79,7 +79,7 @@ static void efikamx_power_init(struct mc13xxx *mc)
 
 	/* power up the system first */
 	mc13xxx_reg_write(mc, MC13892_REG_POWER_MISC,
-			MC13892_POWER_MISC_PWUP);
+			  MC13892_POWER_MISC_GPO4ADIN);
 
 	/* Set core voltage to 1.1V */
 	mc13xxx_reg_read(mc, MC13892_REG_SW_0, &val);
diff --git a/include/mfd/mc13892.h b/include/mfd/mc13892.h
index 8b522391b..e9a41ba21 100644
--- a/include/mfd/mc13892.h
+++ b/include/mfd/mc13892.h
@@ -182,17 +182,18 @@
 #define MC13892_MODE_1_VSDMODE		(1 << 20)
 
 /* Reg Power misc */
-#define MC13892_POWER_MISC_GPO1EN          (1 << 6)
-#define MC13892_POWER_MISC_GPO1STBY        (1 << 7)
-#define MC13892_POWER_MISC_GPO2EN          (1 << 8)
-#define MC13892_POWER_MISC_GPO2STBY        (1 << 9)
-#define MC13892_POWER_MISC_GPO3EN          (1 << 10)
-#define MC13892_POWER_MISC_GPO3STBY        (1 << 11)
-#define MC13892_POWER_MISC_GPO4EN          (1 << 12)
-#define MC13892_POWER_MISC_GPO4STBY        (1 << 13)
-#define MC13892_POWER_MISC_PWGT1SPIEN      (1 << 15)
-#define MC13892_POWER_MISC_PWGT2SPIEN      (1 << 16)
-#define MC13892_POWER_MISC_PWUP            (1 << 21)
+#define MC13892_POWER_MISC_REGSCPEN	(1 << 0)
+#define MC13892_POWER_MISC_GPO1EN	(1 << 6)
+#define MC13892_POWER_MISC_GPO1STBY	(1 << 7)
+#define MC13892_POWER_MISC_GPO2EN	(1 << 8)
+#define MC13892_POWER_MISC_GPO2STBY	(1 << 9)
+#define MC13892_POWER_MISC_GPO3EN	(1 << 10)
+#define MC13892_POWER_MISC_GPO3STBY	(1 << 11)
+#define MC13892_POWER_MISC_GPO4EN	(1 << 12)
+#define MC13892_POWER_MISC_GPO4STBY	(1 << 13)
+#define MC13892_POWER_MISC_PWGT1SPIEN	(1 << 15)
+#define MC13892_POWER_MISC_PWGT2SPIEN	(1 << 16)
+#define MC13892_POWER_MISC_GPO4ADIN	(1 << 21)
 
 /* Reg Power Control 2*/
 #define MC13892_POWER_CONTROL_2_WDIRESET	(1 << 12)
-- 
2.13.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-14 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14  9:27 [PATCH 1/2] mfd: mc13892: MC13892_POWER_MISC bits revision Alexander Shiyan
2018-12-14  9:27 ` [PATCH 2/2] ARM: CCMX51: Switch to multiimage support Alexander Shiyan
2018-12-14 11:30   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox