diff options
author | Tom Rini <trini@konsulko.com> | 2019-11-01 17:49:40 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-11-01 17:49:40 -0400 |
commit | 61e8f2985bd977775d864e44f7807fd1932192e5 (patch) | |
tree | 9c1cd4d0a92f0528b6aa7095468d397637b6b048 /board/synopsys/iot_devkit/iot_devkit.c | |
parent | 5d6f05352b69d4858a2a9e9136ac3a734f0222bb (diff) | |
parent | 3f6b4ea225656b41613fd538925e29141f22c4a7 (diff) |
Merge tag 'arc-fixes-for-2020.01-rc2' of https://gitlab.denx.de/u-boot/custodians/u-boot-arc
ARC fixes for v2020.01-rc2
The main change is move to DM_MMC of yet 2 another ARC boards:
AXS101 & IoTDK.
Among that we improve handling of stock-formatted SD-cards of high volume
on EM SDP as well as introduction of reset driver for HSDK which is required
for prepser reinitialization of some peripherals like USB etc.
Diffstat (limited to 'board/synopsys/iot_devkit/iot_devkit.c')
-rw-r--r-- | board/synopsys/iot_devkit/iot_devkit.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c index 8424e09bd3c..9dbdc128f8f 100644 --- a/board/synopsys/iot_devkit/iot_devkit.c +++ b/board/synopsys/iot_devkit/iot_devkit.c @@ -145,38 +145,6 @@ int mach_cpu_init(void) return set_cpu_freq(gd->cpu_clk); } -#define ARC_PERIPHERAL_BASE 0xF0000000 -#define SDIO_BASE (ARC_PERIPHERAL_BASE + 0xB000) - -int board_mmc_init(bd_t *bis) -{ - struct dwmci_host *host = NULL; - - host = malloc(sizeof(struct dwmci_host)); - if (!host) { - printf("dwmci_host malloc fail!\n"); - return -ENOMEM; - } - - memset(host, 0, sizeof(struct dwmci_host)); - host->name = "Synopsys Mobile storage"; - host->ioaddr = (void *)SDIO_BASE; - host->buswidth = 4; - host->dev_index = 0; - host->bus_hz = 50000000; - - add_dwmci(host, host->bus_hz / 2, 400000); - - return 0; -} - -int board_mmc_getcd(struct mmc *mmc) -{ - struct dwmci_host *host = mmc->priv; - - return !(dwmci_readl(host, DWMCI_CDETECT) & 1); -} - #define IOTDK_RESET_SEQ 0x55AA6699 void reset_cpu(ulong addr) |