All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 1/3] pmic:pfuz100 add switch mode and more registers
Date: Thu, 22 Jan 2015 11:24:20 +0100	[thread overview]
Message-ID: <54C0CFD4.5010907@denx.de> (raw)
In-Reply-To: <1421424314-21850-2-git-send-email-Peng.Fan@freescale.com>

Hi Peng,

On 16/01/2015 17:05, Peng Fan wrote:
> Add more pfuze register offset.
> And switch mode definition.
> 
> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
> ---
> 
> Changes v4:
>  none
> 
> Changes v3:
>  none
> 
> Changes v2:
>  none
> 
>  include/power/pfuze100_pmic.h | 53 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)
> 
> diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h
> index 1118489..7474afb 100644
> --- a/include/power/pfuze100_pmic.h
> +++ b/include/power/pfuze100_pmic.h
> @@ -16,14 +16,34 @@ enum {
>  
>  	PFUZE100_SW1ABVOL	= 0x20,
>  	PFUZE100_SW1ABSTBY	= 0x21,
> +	PFUZE100_SW1ABOFF	= 0x22,
> +	PFUZE100_SW1ABMODE	= 0x23,
>  	PUZE_100_SW1ABCONF	= 0x24,
>  	PFUZE100_SW1CVOL	= 0x2e,
>  	PFUZE100_SW1CSTBY	= 0x2f,
> +	PFUZE100_SW1COFF	= 0x30,
> +	PFUZE100_SW1CMODE	= 0x31,
>  	PFUZE100_SW1CCONF	= 0x32,
>  	PFUZE100_SW2VOL		= 0x35,
> +	PFUZE100_SW2STBY	= 0x36,
> +	PFUZE100_SW2OFF		= 0x37,
> +	PFUZE100_SW2MODE	= 0x38,
> +	PFUZE100_SW2CONF	= 0x39,
>  	PFUZE100_SW3AVOL	= 0x3c,
> +	PFUZE100_SW3ASTBY	= 0x3D,
> +	PFUZE100_SW3AOFF	= 0x3E,
> +	PFUZE100_SW3AMODE	= 0x3F,
> +	PFUZE100_SW3ACONF	= 0x40,
>  	PFUZE100_SW3BVOL	= 0x43,
> +	PFUZE100_SW3BSTBY	= 0x44,
> +	PFUZE100_SW3BOFF	= 0x45,
> +	PFUZE100_SW3BMODE	= 0x46,
> +	PFUZE100_SW3BCONF	= 0x47,
>  	PFUZE100_SW4VOL		= 0x4a,
> +	PFUZE100_SW4STBY	= 0x4b,
> +	PFUZE100_SW4OFF		= 0x4c,
> +	PFUZE100_SW4MODE	= 0x4d,
> +	PFUZE100_SW4CONF	= 0x4e,
>  	PFUZE100_SWBSTCON1	= 0x66,
>  	PFUZE100_VREFDDRCON	= 0x6a,
>  	PFUZE100_VSNVSVOL	= 0x6b,
> @@ -177,5 +197,38 @@ enum {
>  #define SWBST_MODE_AUTO	(2 << 2)
>  #define SWBST_MODE_APS	(2 << 3)
>  
> +/*
> + * Regulator Mode Control
> + *
> + * OFF: The regulator is switched off and the output voltage is discharged.
> + * PFM: In this mode, the regulator is always in PFM mode, which is useful
> + *      at light loads for optimized efficiency.
> + * PWM: In this mode, the regulator is always in PWM mode operation
> + *	regardless of load conditions.
> + * APS: In this mode, the regulator moves automatically between pulse
> + *	skipping mode and PWM mode depending on load conditions.
> + *
> + * SWxMODE[3:0]
> + * Normal Mode  |  Standby Mode	|      value
> + *   OFF		OFF		0x0
> + *   PWM		OFF		0x1
> + *   PFM		OFF		0x3
> + *   APS		OFF		0x4
> + *   PWM		PWM		0x5
> + *   PWM		APS		0x6
> + *   APS		APS		0x8
> + *   APS		PFM		0xc
> + *   PWM		PFM		0xd
> + */
> +#define OFF_OFF		0x0
> +#define PWM_OFF		0x1
> +#define PFM_OFF		0x3
> +#define APS_OFF		0x4
> +#define PWM_PWM		0x5
> +#define PWM_APS		0x6
> +#define APS_APS		0x8
> +#define APS_PFM		0xc
> +#define PWM_PFM		0xd
> +
>  int power_pfuze100_init(unsigned char bus);
>  #endif
> 

Reviewed-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic

-- 
=====================================================================
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
=====================================================================

  reply	other threads:[~2015-01-22 10:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 16:05 [U-Boot] [PATCH v4 0/3] pmic:pfuze support buck regulator mode switch Peng Fan
2015-01-16 16:05 ` [U-Boot] [PATCH v4 1/3] pmic:pfuz100 add switch mode and more registers Peng Fan
2015-01-22 10:24   ` Stefano Babic [this message]
2015-01-16 16:05 ` [U-Boot] [PATCH v4 2/3] pmic:pfuze implement pmic_mode_init Peng Fan
2015-01-22 10:30   ` Stefano Babic
2015-01-24 13:52     ` Peng Fan
2015-01-16 16:05 ` [U-Boot] [PATCH v4 3/3] imx:mx6 set normal APS and standby PFM mode Peng Fan
2015-01-19  9:26 ` [U-Boot] [PATCH v4 0/3] pmic:pfuze support buck regulator mode switch Przemyslaw Marczak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C0CFD4.5010907@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.