mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
![Siva Durga Prasad Paladugu](/assets/img/avatar_default.png)
As per the below commit
"mmc: sdhci: add the quirk for broken r1b response"
(sha1: 3a6383207b
)
need to add quirk SDHCI_QUIRK_BROKEN_R1B, when the
response type is R1b.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
35 lines
736 B
C
35 lines
736 B
C
/*
|
|
* (C) Copyright 2013 Inc.
|
|
*
|
|
* Xilinx Zynq SD Host Controller Interface
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <malloc.h>
|
|
#include <sdhci.h>
|
|
#include <asm/arch/sys_proto.h>
|
|
|
|
int zynq_sdhci_init(u32 regbase)
|
|
{
|
|
struct sdhci_host *host = NULL;
|
|
|
|
host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host));
|
|
if (!host) {
|
|
printf("zynq_sdhci_init: sdhci_host malloc fail\n");
|
|
return 1;
|
|
}
|
|
|
|
host->name = "zynq_sdhci";
|
|
host->ioaddr = (void *)regbase;
|
|
host->quirks = SDHCI_QUIRK_NO_CD | SDHCI_QUIRK_WAIT_SEND_CMD |
|
|
SDHCI_QUIRK_BROKEN_R1B;
|
|
host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
|
|
|
|
host->host_caps = MMC_MODE_HC;
|
|
|
|
add_sdhci(host, 52000000, 52000000 >> 9);
|
|
return 0;
|
|
}
|