All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC
@ 2018-11-30  9:23 Felix Brack
  2018-11-30 13:57 ` Tom Rini
  2018-12-07 20:33 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Brack @ 2018-11-30  9:23 UTC (permalink / raw)
  To: u-boot

This patch enables CONFIG_BLK as well as CONFIG_DM_MMC for the PDU001
board. It depends on Patrice Chotard's patch 'power: regulator: denied
disable on always-on regulator' which prevents power cycling the vmmc
supply. Without this patch the board will not boot as vmmc is
unfortunately used by other board components, not just eMMC and micro SD
card. Furthermore my patch 'dts: am335x-pdu001: Fix polarity of card
detection input' is required to boot from external micro SD card. Without
this patch no SD card will be detected and hence booting will fail.

Signed-off-by: Felix Brack <fb@ltec.ch>
---

 arch/arm/dts/am335x-pdu001-u-boot.dtsi | 8 ++++++++
 configs/am335x_pdu001_defconfig        | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/arch/arm/dts/am335x-pdu001-u-boot.dtsi b/arch/arm/dts/am335x-pdu001-u-boot.dtsi
index fbb6a3ff6b..84a07bdef4 100644
--- a/arch/arm/dts/am335x-pdu001-u-boot.dtsi
+++ b/arch/arm/dts/am335x-pdu001-u-boot.dtsi
@@ -29,10 +29,18 @@
 	u-boot,dm-pre-reloc;
 };
 
+&mmc1 {
+	u-boot,dm-pre-reloc;
+};
+
 &mmc1_pins {
 	u-boot,dm-pre-reloc;
 };
 
+&mmc2 {
+	u-boot,dm-pre-reloc;
+};
+
 &mmc2_pins {
 	u-boot,dm-pre-reloc;
 };
diff --git a/configs/am335x_pdu001_defconfig b/configs/am335x_pdu001_defconfig
index 065efca633..3cb38aff6e 100644
--- a/configs/am335x_pdu001_defconfig
+++ b/configs/am335x_pdu001_defconfig
@@ -18,6 +18,7 @@ CONFIG_SPL_I2C_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
+CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_AUTOBOOT_KEYED=y
 CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
 CONFIG_AUTOBOOT_STOP_STR=" "
@@ -37,6 +38,10 @@ CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001"
 CONFIG_SPL_DM=y
 CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
+CONFIG_BLK=y
+CONFIG_SPL_BLK=y
+CONFIG_DM_MMC=y
+CONFIG_SPL_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MMC_SDHCI=y
 CONFIG_PINCTRL=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC
  2018-11-30  9:23 [U-Boot] [PATCH] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC Felix Brack
@ 2018-11-30 13:57 ` Tom Rini
  2018-12-07 20:33 ` [U-Boot] " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2018-11-30 13:57 UTC (permalink / raw)
  To: u-boot

On Fri, Nov 30, 2018 at 10:23:36AM +0100, Felix Brack wrote:

> This patch enables CONFIG_BLK as well as CONFIG_DM_MMC for the PDU001
> board. It depends on Patrice Chotard's patch 'power: regulator: denied
> disable on always-on regulator' which prevents power cycling the vmmc
> supply. Without this patch the board will not boot as vmmc is
> unfortunately used by other board components, not just eMMC and micro SD
> card. Furthermore my patch 'dts: am335x-pdu001: Fix polarity of card
> detection input' is required to boot from external micro SD card. Without
> this patch no SD card will be detected and hence booting will fail.
> 
> Signed-off-by: Felix Brack <fb@ltec.ch>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181130/11a55aae/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC
  2018-11-30  9:23 [U-Boot] [PATCH] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC Felix Brack
  2018-11-30 13:57 ` Tom Rini
@ 2018-12-07 20:33 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2018-12-07 20:33 UTC (permalink / raw)
  To: u-boot

On Fri, Nov 30, 2018 at 10:23:36AM +0100, Felix Brack wrote:

> This patch enables CONFIG_BLK as well as CONFIG_DM_MMC for the PDU001
> board. It depends on Patrice Chotard's patch 'power: regulator: denied
> disable on always-on regulator' which prevents power cycling the vmmc
> supply. Without this patch the board will not boot as vmmc is
> unfortunately used by other board components, not just eMMC and micro SD
> card. Furthermore my patch 'dts: am335x-pdu001: Fix polarity of card
> detection input' is required to boot from external micro SD card. Without
> this patch no SD card will be detected and hence booting will fail.
> 
> Signed-off-by: Felix Brack <fb@ltec.ch>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181207/f5c261c5/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-07 20:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-30  9:23 [U-Boot] [PATCH] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC Felix Brack
2018-11-30 13:57 ` Tom Rini
2018-12-07 20:33 ` [U-Boot] " Tom Rini

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.