arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and gw_ventana. This patch fixes it.
commit 8fa46350a4c7dca7710362f6c871098557b934ad
Author: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800
power: regulator: add pfuze100 support
--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
board/gateworks/gw_ventana/common.c +1 -1
@@ -806,7 +806,7 @@ void setup_pmic(void)/* Set SWBST to 5.0V and enable */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg); } }
board/kosagi/novena/novena.c +1 -1
@@ -216,7 +216,7 @@ int power_init_board(void)/* Set SWBST to 5.0V and enable (for USB) */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg);return 0 ;
Signature · 1 line
2.1.4
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
Hello Marek,
Quoted 41 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)board/gateworks/gw_ventana/common.c +1
-1@@ -806,7 +806,7 @@ void setup_pmic(void)/* Set SWBST to 5.0V and enable */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg); } }board/kosagi/novena/novena.c +0
-0
board/kosagi/novena/novena.c int power_init_board(void) · line 222
Quoted 8 lines
board/kosagi/novena/novena.c +1
-1@@ -216,7 +216,7 @@ int power_init_board(void)/* Set SWBST to 5.0V and enable (for USB) */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg);return 0 ;
Thanks for fixing :)
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
In reply to Marek VasutQuoted 3 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.
Works on novena.
live well,
vagrant
Quoted 46 lines
commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)board/gateworks/gw_ventana/common.c +1
-1@@ -806,7 +806,7 @@ void setup_pmic(void)/* Set SWBST to 5.0V and enable */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg); } }board/kosagi/novena/novena.c +1
-1@@ -216,7 +216,7 @@ int power_init_board(void)/* Set SWBST to 5.0V and enable (for USB) */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg);return 0 ;Signature · 1 line
2.1.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151127/c1ca47cd/attachment.sig>
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
In reply to Marek VasutQuoted 40 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>---
board/gateworks/gw_ventana/common.c| 2 +-board/kosagi/novena/novena.c| 2 +-2 files changed, 2 insertions(+), 2 deletions(-)board/gateworks/gw_ventana/common.c +1
-1@@ -806,7 +806,7 @@ void setup_pmic(void)/* Set SWBST to 5.0V and enable */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg); } }board/kosagi/novena/novena.c +0
-0
board/kosagi/novena/novena.c int power_init_board(void) · line 222
Quoted 8 lines
board/kosagi/novena/novena.c +1
-1@@ -216,7 +216,7 @@ int power_init_board(void)/* Set SWBST to 5.0V and enable (for USB) */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg);return 0 ;
Quoted 3 lines
Signature · 1 line
2.1.4
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
In reply to Marek VasutHello Stefano,
Quoted 17 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>
Quoted 4 lines
--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Will you pick-up this patch, or should it go through PMIC tree?
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
Quoted 25 lines · Przemyslaw Marczak
Hello Stefano,
Quoted 17 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>Quoted 4 lines
--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Quoted 1 line
Will you pick-up this patch, or should it go through PMIC tree?
They are i.MXes, I pick them up.
Best regards,
Stefano
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 =====================================================================
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
Quoted 26 lines · Stefano Babic
Quoted 25 lines · Przemyslaw Marczak
Hello Stefano,
Quoted 21 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Quoted 8 lines
Quoted 1 line
Will you pick-up this patch, or should it go through PMIC tree?
They are i.MXes, I pick them up.
Best regards,
Stefano
Ok, thank you.
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
In reply to Marek VasutQuoted 49 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>--- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi/novena/novena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)board/gateworks/gw_ventana/common.c +1
-1@@ -806,7 +806,7 @@ void setup_pmic(void)/* Set SWBST to 5.0V and enable */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg); } }board/kosagi/novena/novena.c +1
-2@@ -216,7 +216,7 @@ int power_init_board(void)/* Set SWBST to 5.0V and enable (for USB) */ pmic_reg_read (p,PFUZE100_SWBSTCON1 , ®); reg &= ~(SWBST_MODE_MASK |SWBST_VOL_MASK ); - reg |= (SWBST_5_00V |SWBST_MODE_AUTO ); + reg |= (SWBST_5_00V | (SWBST_MODE_AUTO <<SWBST_MODE_SHIFT ));pmic_reg_write (p,PFUZE100_SWBSTCON1 , reg);return 0 ; --
Quoted 2 lines
2.1.4
Thanks Marek!
Tim
PATCH 1/1 arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions
In reply to Marek VasutQuoted 10 lines · Marek Vasut
The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the novena and
gw_ventana. This patch fixes it.commit
8fa46350a4c7dca7710362f6c871098557b934adAuthor: Peng Fan <[email protected]> Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Quoted 8 lines
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Przemyslaw Marczak <[email protected]>Cc Stefano Babic <[email protected]>Cc Tim Harvey <[email protected]>Cc Vagrant Cascadian <[email protected]>---
Applied to u-boot-imx, thanks!
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 =====================================================================