Skip to contentSkip to conversation

mc34704: Add the definition of ONOFFA bit

PATCH Superseded Fabio Estevam 2 participants 3 messages Feb 21, 2015 – Feb 23, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mc34704: Add the definition of ONOFFA bit

ONOFFA is the bit 3 of the GENERAL2 register.

Add its definition.

---
 include/mc34704.h | 1 +
 1 file changed, 1 insertion(+)
include/mc34704.h +1 -0
index 53716e0..482d51a 100644
@@ -40,6 +40,7 @@ enum {
 /* GENERAL2 register fields */
 #define ONOFFE		(1 << 0)
 #define ONOFFD		(1 << 1)
+#define ONOFFA		(1 << 3)
 #define ALLOFF		(1 << 4)
 
 #endif /* __MC34704_H__ */
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 mx25pdk: Turn on the LCD supply

From: Fabio Estevam <[email protected]>

Currently there is no support for MC34704 PMIC in the mainline kernel.

Turn on the LCD supply via bootloader for the time being, so that we could use the LCD in the kernel.

---
 board/freescale/mx25pdk/mx25pdk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/freescale/mx25pdk/mx25pdk.c +2 -2
index 71a395c..01dac72 100644
@@ -146,8 +146,8 @@ int board_late_init(void)
 	if (!p)
 		return -ENODEV;
 
-	/* Turn on Ethernet PHY supply */
-	pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE);
+	/* Turn on Ethernet PHY and LCD supplies */
+	pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE | ONOFFA);
 
 	return 0;
 }
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 mx25pdk: Turn on the LCD supply

Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Currently there is no support for MC34704 PMIC in the mainline kernel.

Turn on the LCD supply via bootloader for the time being, so that we could use the LCD in the kernel.

---
 board/freescale/mx25pdk/mx25pdk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/freescale/mx25pdk/mx25pdk.c +0 -0
index 71a395c..01dac72 100644

board/freescale/mx25pdk/mx25pdk.c int board_late_init(void) · line 153

Quoted 10 lines
board/freescale/mx25pdk/mx25pdk.c +2 -2
@@ -146,8 +146,8 @@ int board_late_init(void)
 	if (!p)
 		return -ENODEV;
 
-	/* Turn on Ethernet PHY supply */
-	pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE);
+	/* Turn on Ethernet PHY and LCD supplies */
+	pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE | ONOFFA);
 
 	return 0;
 }

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================