All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lokesh Vutla <lokeshvutla@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 09/13] board: ti: dra76-evm: Add support for powering on mmc ldo
Date: Mon, 21 Aug 2017 12:50:57 +0530	[thread overview]
Message-ID: <20170821072101.29375-10-lokeshvutla@ti.com> (raw)
In-Reply-To: <20170821072101.29375-1-lokeshvutla@ti.com>

ldo4 is used to poweron mmc on dra76-evm. Enable it.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 board/ti/dra7xx/evm.c | 2 ++
 include/palmas.h      | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index ad63abd759..87b7403070 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -837,6 +837,8 @@ void board_mmc_poweron_ldo(uint voltage)
 		else if (voltage == LDO_VOLT_1V8)
 			voltage = 0xa;
 		lp873x_mmc1_poweron_ldo(voltage);
+	} else if (board_is_dra76x_evm()) {
+		palmas_mmc1_poweron_ldo(LDO4_VOLTAGE, LDO4_CTRL, voltage);
 	} else {
 		palmas_mmc1_poweron_ldo(LDO1_VOLTAGE, LDO1_CTRL, voltage);
 	}
diff --git a/include/palmas.h b/include/palmas.h
index 404c2b3ca7..d366c98d22 100644
--- a/include/palmas.h
+++ b/include/palmas.h
@@ -38,6 +38,10 @@
 #define LDO2_CTRL		0x52
 #define LDO2_VOLTAGE		0x53
 
+/* LDO2 control/voltage */
+#define LDO4_CTRL		0x5e
+#define LDO4_VOLTAGE		0x5f
+
 /* LDO9 control/voltage */
 #define LDO9_CTRL		0x60
 #define LDO9_VOLTAGE		0x61
-- 
2.13.0

  parent reply	other threads:[~2017-08-21  7:20 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-21  7:20 [U-Boot] [PATCH v2 00/13] ARM: dra7: Add support for dra76-evm Lokesh Vutla
2017-08-21  7:20 ` [U-Boot] [PATCH v2 01/13] arm: omap5+: Add board specific ldo powering Lokesh Vutla
2017-09-12 13:29   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 02/13] palmas: Add support for powering different ldos Lokesh Vutla
2017-09-12 13:29   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 03/13] arm: dra7: Kconfig: Select LP87565 related configs Lokesh Vutla
2017-08-23 19:20   ` Tom Rini
2017-09-12 13:29   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 04/13] arm: dra76: Add support for ES1.0 detection Lokesh Vutla
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 05/13] board: ti: dra76-evm: Add epprom support Lokesh Vutla
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 06/13] board: ti: dra76-evm: Add the pmic data Lokesh Vutla
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 07/13] board: ti: dra76-evm: Add DDR data Lokesh Vutla
2017-09-12 13:30   ` [U-Boot] [U-Boot,v2,07/13] " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 08/13] board: ti: dra76-evm: Add the pinmux data Lokesh Vutla
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` Lokesh Vutla [this message]
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, 09/13] board: ti: dra76-evm: Add support for powering on mmc ldo Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 10/13] env: ti: boot: Select dtb name for dra76 Lokesh Vutla
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:20 ` [U-Boot] [PATCH v2 11/13] arm: dts: dra7: sync DT with latest Linux Lokesh Vutla
2017-08-23 19:20   ` Tom Rini
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:21 ` [U-Boot] [PATCH v2 12/13] arm: dts: Add u-boot specific compatibles Lokesh Vutla
2017-08-23 19:20   ` Tom Rini
2017-09-12 13:30   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-08-21  7:21 ` [U-Boot] [PATCH v2 13/13] board: ti: dra76: Add dt support Lokesh Vutla
2017-08-23 19:20   ` Tom Rini
2017-09-12 13:30   ` [U-Boot] [U-Boot,v2,13/13] " Tom Rini

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=20170821072101.29375-10-lokeshvutla@ti.com \
    --to=lokeshvutla@ti.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 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.