summaryrefslogtreecommitdiff
path: root/board/intel
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-25 23:52:04 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-08-09 22:24:02 +0800
commit42ef7079224abc7c6073c0bab63f3aa6fffd5d00 (patch)
treed3b7627f469d8ccf81729b0a12d002d8e84069ed /board/intel
parentfef408679b2f634ebfd6298d9fc99db99e60fb1d (diff)
x86: edison: Enable SD slot
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> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'board/intel')
-rw-r--r--board/intel/edison/edison.c10
1 files changed, 10 insertions, 0 deletions
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,