public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Przemyslaw Marczak <p.marczak@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/19] dm: pmic: max77686: Support all BUCK regulators
Date: Wed, 05 Aug 2015 16:16:46 +0200	[thread overview]
Message-ID: <55C21ACE.2060307@samsung.com> (raw)
In-Reply-To: <1438611577-2245-8-git-send-email-sjg@chromium.org>

Hello Simon,

On 08/03/2015 04:19 PM, Simon Glass wrote:
> Add support for all BUCK regulators, now that the correct register is
> accessed for each.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2:
> - Add a comment about DVS in the driver
>
>   drivers/power/regulator/max77686.c | 18 ++++++++++--------
>   1 file changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c
> index 21173fc..946b87c 100644
> --- a/drivers/power/regulator/max77686.c
> +++ b/drivers/power/regulator/max77686.c
> @@ -81,13 +81,15 @@ static int max77686_buck_volt2hex(int buck, int uV)
>   		/* hex = (uV - 600000) / 12500; */
>   		hex = (uV - MAX77686_BUCK_UV_LMIN) / MAX77686_BUCK_UV_LSTEP;
>   		hex_max = MAX77686_BUCK234_VOLT_MAX_HEX;
> -		/**
> -		 * Those use voltage scaller - temporary not implemented
> -		 * so return just 0
> -		 */
> -		return -ENOSYS;
> +		break;
>   	default:
> -		/* hex = (uV - 750000) / 50000; */
> +		/*
> +		 * hex = (uV - 750000) / 50000. We assume that dynamic voltage
> +		 * scaling via GPIOs is not enabled and don't support that.
> +		 * If this is enabled then the driver will need to take that
> +		 * into account anrd check different registers depending on

and check

> +		 * the current setting See the datasheet for details.

setting. See

... snip ...


Best regards,
-- 
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com

  reply	other threads:[~2015-08-05 14:16 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 14:19 [U-Boot] [PATCH v2 00/19] dm: exynos: Driver model improvements leading to spring support Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 01/19] exynos: dts: Correct LDO and BUCK naming Simon Glass
2015-08-09 13:39   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 02/19] video: Work around lack of pinctrl Simon Glass
2015-08-09 13:39   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 03/19] dm: i2c: Add support for multiplexed I2C buses Simon Glass
2015-08-09 13:39   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 04/19] i2c: Add a mux for GPIO-based I2C bus arbitration Simon Glass
2015-08-09 13:39   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 05/19] dm: cros_ec: Convert the I2C tunnel code to use driver model Simon Glass
2015-08-09 13:39   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 06/19] cros_ec: Support the LDO access method used by spring Simon Glass
2015-08-09 13:40   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 07/19] dm: pmic: max77686: Support all BUCK regulators Simon Glass
2015-08-05 14:16   ` Przemyslaw Marczak [this message]
2015-08-09 15:05   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 08/19] exynos: dts: Drop the old TPS65090 I2C node Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 09/19] exynos: Add common board code for exynos5 boards that use device tree Simon Glass
2015-08-05 14:16   ` Przemyslaw Marczak
2015-08-09 13:40     ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 10/19] exynos: Enable new features for exynos5 boards Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 11/19] exynos: config: Move common options to the common headers and tidy up Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 12/19] exynos: Drop old exynos5420-specific board code Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 13/19] exynos: Drop old exynos5250-specific " Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 14/19] power: Remove old TPS65090 drivers Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 15/19] cros_ec: Remove the old tunnel code Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 16/19] video: Remove the old parade driver Simon Glass
2015-08-09 14:29   ` Anatolij Gustschin
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 17/19] dts: Drop unused compatible ID for the NXP video bridge Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 18/19] exynos: video: Remove non-device-tree code Simon Glass
2015-08-09 14:30   ` Anatolij Gustschin
2015-08-09 15:04   ` Simon Glass
2015-08-03 14:19 ` [U-Boot] [PATCH v2 19/19] exynos: Add support for spring Simon Glass
2015-08-09 15:04   ` Simon Glass
2015-08-05 14:16 ` [U-Boot] [PATCH v2 00/19] dm: exynos: Driver model improvements leading to spring support 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=55C21ACE.2060307@samsung.com \
    --to=p.marczak@samsung.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox