mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
committed by
Minkyu Kang
parent
1591ee7352
commit
3577fe8be9
@@ -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;
|
||||
|
Reference in New Issue
Block a user