summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPiotr Wilczek <p.wilczek@samsung.com>2014-03-07 14:59:41 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2014-03-12 19:54:59 +0900
commit3577fe8be9dc8c8aa027361d6424efba9f97f553 (patch)
tree7591836e077264433d8cfd9eac38680a89fbe63e /include
parent1591ee73526ba4085cec7cc5bb83b2ece0f6706e (diff)
downloadu-boot-imx-3577fe8be9dc8c8aa027361d6424efba9f97f553.zip
u-boot-imx-3577fe8be9dc8c8aa027361d6424efba9f97f553.tar.gz
u-boot-imx-3577fe8be9dc8c8aa027361d6424efba9f97f553.tar.bz2
drivers:mmc:sdhci: enable support for DT
This patch enables support for device tree for sdhci driver. Non DT case is still supported. Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/fdtdec.h1
-rw-r--r--include/sdhci.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index bd84c83..63027bd 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -82,6 +82,7 @@ enum fdt_compat_id {
COMPAT_SAMSUNG_EXYNOS_MIPI_DSI, /* Exynos mipi dsi */
COMPAT_SAMSUNG_EXYNOS5_DP, /* Exynos Display port controller */
COMPAT_SAMSUNG_EXYNOS5_DWMMC, /* Exynos5 DWMMC controller */
+ COMPAT_SAMSUNG_EXYNOS_MMC, /* Exynos MMC controller */
COMPAT_SAMSUNG_EXYNOS_SERIAL, /* Exynos UART */
COMPAT_MAXIM_MAX77686_PMIC, /* MAX77686 PMIC */
COMPAT_GENERIC_SPI_FLASH, /* Generic SPI Flash chip */
diff --git a/include/sdhci.h b/include/sdhci.h
index 74d06ae..32e04f5 100644
--- a/include/sdhci.h
+++ b/include/sdhci.h
@@ -12,6 +12,7 @@
#include <asm/io.h>
#include <mmc.h>
+#include <fdtdec.h>
/*
* Controller registers
@@ -244,6 +245,10 @@ struct sdhci_host {
const struct sdhci_ops *ops;
int index;
+ int bus_width;
+ struct fdt_gpio_state pwr_gpio; /* Power GPIO */
+ struct fdt_gpio_state cd_gpio; /* Card Detect GPIO */
+
void (*set_control_reg)(struct sdhci_host *host);
void (*set_clock)(int dev_index, unsigned int div);
uint voltages;