* [U-Boot] [PATCH v2] x86: edison: Enable SD slot
@ 2019-06-25 20:52 Andy Shevchenko
2019-07-12 2:42 ` Bin Meng
0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2019-06-25 20:52 UTC (permalink / raw)
To: u-boot
Enable SD slot on Intel Edison platform.
By default firmware doesn't put device on active state. Thus,
we have to do this explicitly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
- fix conflict when applying patch
arch/x86/dts/edison.dts | 5 -----
board/intel/edison/edison.c | 10 ++++++++++
configs/edison_defconfig | 1 +
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts
index c0487656d3..df24aa0d26 100644
--- a/arch/x86/dts/edison.dts
+++ b/arch/x86/dts/edison.dts
@@ -84,15 +84,10 @@
reg = <0xff3fc000 0x1000>;
};
-/*
- * FIXME: For now U-Boot DM model doesn't allow to power up this controller.
- * Enabling it will make U-Boot hang.
- *
sdcard: mmc at ff3fa000 {
compatible = "intel,sdhci-tangier";
reg = <0xff3fa000 0x1000>;
};
- */
pmu: power at ff00b000 {
compatible = "intel,pmu-mid";
diff --git a/board/intel/edison/edison.c b/board/intel/edison/edison.c
index 5faf3c57f2..d80ee3aa8a 100644
--- a/board/intel/edison/edison.c
+++ b/board/intel/edison/edison.c
@@ -13,9 +13,19 @@
#include <linux/usb/gadget.h>
#include <asm/cache.h>
+#include <asm/pmu.h>
#include <asm/scu.h>
#include <asm/u-boot-x86.h>
+/* List of Intel Tangier LSSs */
+#define PMU_LSS_TANGIER_SDIO0_01 1
+
+int board_early_init_r(void)
+{
+ pmu_turn_power(PMU_LSS_TANGIER_SDIO0_01, true);
+ return 0;
+}
+
static struct dwc3_device dwc3_device_data = {
.maximum_speed = USB_SPEED_HIGH,
.base = CONFIG_SYS_USB_OTG_BASE,
diff --git a/configs/edison_defconfig b/configs/edison_defconfig
index 468754493e..cac6e4201f 100644
--- a/configs/edison_defconfig
+++ b/configs/edison_defconfig
@@ -4,6 +4,7 @@ CONFIG_NR_DRAM_BANKS=3
CONFIG_VENDOR_INTEL=y
CONFIG_TARGET_EDISON=y
CONFIG_SMP=y
+CONFIG_BOARD_EARLY_INIT_R=y
CONFIG_LAST_STAGE_INIT=y
CONFIG_HUSH_PARSER=y
# CONFIG_CMDLINE_EDITING is not set
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] x86: edison: Enable SD slot
2019-06-25 20:52 [U-Boot] [PATCH v2] x86: edison: Enable SD slot Andy Shevchenko
@ 2019-07-12 2:42 ` Bin Meng
2019-07-12 2:44 ` Bin Meng
0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2019-07-12 2:42 UTC (permalink / raw)
To: u-boot
On Wed, Jun 26, 2019 at 4:52 AM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> Enable SD slot on Intel Edison platform.
>
> By default firmware doesn't put device on active state. Thus,
> we have to do this explicitly.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> - fix conflict when applying patch
> arch/x86/dts/edison.dts | 5 -----
> board/intel/edison/edison.c | 10 ++++++++++
> configs/edison_defconfig | 1 +
> 3 files changed, 11 insertions(+), 5 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] x86: edison: Enable SD slot
2019-07-12 2:42 ` Bin Meng
@ 2019-07-12 2:44 ` Bin Meng
0 siblings, 0 replies; 3+ messages in thread
From: Bin Meng @ 2019-07-12 2:44 UTC (permalink / raw)
To: u-boot
On Fri, Jul 12, 2019 at 10:42 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Wed, Jun 26, 2019 at 4:52 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> >
> > Enable SD slot on Intel Edison platform.
> >
> > By default firmware doesn't put device on active state. Thus,
> > we have to do this explicitly.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > ---
> > - fix conflict when applying patch
> > arch/x86/dts/edison.dts | 5 -----
> > board/intel/edison/edison.c | 10 ++++++++++
> > configs/edison_defconfig | 1 +
> > 3 files changed, 11 insertions(+), 5 deletions(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
applied to u-boot-x86, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-12 2:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-25 20:52 [U-Boot] [PATCH v2] x86: edison: Enable SD slot Andy Shevchenko
2019-07-12 2:42 ` Bin Meng
2019-07-12 2:44 ` Bin Meng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox