mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 09:30:43 +09:00
mmc: exynos_dw_mmc: remove the unused function
This function have maintained for supporting Non-FDT. Now, Almost all SoC are changed to fdt style. So there are no that this function is called anywhere. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
836efb33e3
commit
fb6706cfda
@ -28,4 +28,3 @@
|
|||||||
#define DWMCI_DIVRATIO_MASK 0x7
|
#define DWMCI_DIVRATIO_MASK 0x7
|
||||||
|
|
||||||
int exynos_dwmmc_init(const void *blob);
|
int exynos_dwmmc_init(const void *blob);
|
||||||
int exynos_dwmci_add_port(int index, u32 regbase, int bus_width, u32 clksel);
|
|
||||||
|
@ -122,42 +122,6 @@ static int exynos_dwmci_core_init(struct dwmci_host *host, int index)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* This function adds the mmc channel to be registered with mmc core.
|
|
||||||
* index - mmc channel number.
|
|
||||||
* regbase - register base address of mmc channel specified in 'index'.
|
|
||||||
* bus_width - operating bus width of mmc channel specified in 'index'.
|
|
||||||
* clksel - value to be written into CLKSEL register in case of FDT.
|
|
||||||
* NULL in case od non-FDT.
|
|
||||||
*/
|
|
||||||
int exynos_dwmci_add_port(int index, u32 regbase, int bus_width, u32 clksel)
|
|
||||||
{
|
|
||||||
struct dwmci_host *host = NULL;
|
|
||||||
struct dwmci_exynos_priv_data *priv;
|
|
||||||
|
|
||||||
host = malloc(sizeof(struct dwmci_host));
|
|
||||||
if (!host) {
|
|
||||||
error("dwmci_host malloc fail!\n");
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
priv = malloc(sizeof(struct dwmci_exynos_priv_data));
|
|
||||||
if (!priv) {
|
|
||||||
error("dwmci_exynos_priv_data malloc fail!\n");
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
host->ioaddr = (void *)regbase;
|
|
||||||
host->buswidth = bus_width;
|
|
||||||
|
|
||||||
if (clksel)
|
|
||||||
priv->sdr_timing = clksel;
|
|
||||||
|
|
||||||
host->priv = priv;
|
|
||||||
|
|
||||||
return exynos_dwmci_core_init(host, index);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(OF_CONTROL)
|
#if CONFIG_IS_ENABLED(OF_CONTROL)
|
||||||
static struct dwmci_host dwmci_host[DWMMC_MAX_CH_NUM];
|
static struct dwmci_host dwmci_host[DWMMC_MAX_CH_NUM];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user