diff mbox

[U-Boot,1/3] power: pmic: Add Voltage configuration macro

Message ID 1481045906-2562-1-git-send-email-breno.lima@nxp.com
State Accepted
Commit 894a4b4da7e295a95741c8b0f969e43f8ee239af
Delegated to: Stefano Babic
Headers show

Commit Message

Breno Matheus Lima Dec. 6, 2016, 5:38 p.m. UTC
Add pfuze3000 voltage configuration macro for SW1AB, SW3 and VLDO1/2 according
to tables 53, 57 and 62 on PF3000 datasheet.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
Note: This patch series depends on my last series submission.
 include/power/pfuze3000_pmic.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Stefano Babic Dec. 16, 2016, 9:23 a.m. UTC | #1
On 06/12/2016 18:38, Breno Lima wrote:
> Add pfuze3000 voltage configuration macro for SW1AB, SW3 and VLDO1/2 according
> to tables 53, 57 and 62 on PF3000 datasheet.
> 
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
> ---
> Note: This patch series depends on my last series submission.
>  include/power/pfuze3000_pmic.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/power/pfuze3000_pmic.h b/include/power/pfuze3000_pmic.h
> index e8b892b..7d66ba4 100644
> --- a/include/power/pfuze3000_pmic.h
> +++ b/include/power/pfuze3000_pmic.h
> @@ -75,4 +75,9 @@ enum {
>  
>  int power_pfuze3000_init(unsigned char bus);
>  
> +/* Voltage Configuration */
> +#define PFUZE3000_SW1AB_SETP(x)    ((x - 7000) / 250)
> +#define PFUZE3000_SW3_SETP(x)      ((x - 9000) / 500)
> +#define PFUZE3000_VLDO_SETP(x)     ((x - 8000) / 500)
> +
>  #endif
> 
Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/include/power/pfuze3000_pmic.h b/include/power/pfuze3000_pmic.h
index e8b892b..7d66ba4 100644
--- a/include/power/pfuze3000_pmic.h
+++ b/include/power/pfuze3000_pmic.h
@@ -75,4 +75,9 @@  enum {
 
 int power_pfuze3000_init(unsigned char bus);
 
+/* Voltage Configuration */
+#define PFUZE3000_SW1AB_SETP(x)    ((x - 7000) / 250)
+#define PFUZE3000_SW3_SETP(x)      ((x - 9000) / 500)
+#define PFUZE3000_VLDO_SETP(x)     ((x - 8000) / 500)
+
 #endif