coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sd.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <commonlib/sdhci.h>
4 #include <commonlib/storage.h>
5 
7 {
8  /* Specify the additional driver support */
9  ctrlr->caps |= DRVR_CAP_REMOVABLE;
10 
11  /* ADMA currently not working on Quark */
12  ctrlr->caps &= ~DRVR_CAP_AUTO_CMD12;
13 
14  /* Set initialization clock frequency */
15  ctrlr->f_min = 100 * CLOCK_KHZ;
16 
17  /* Set the initialization delays */
18  ctrlr->mdelay_before_cmd0 = 1;
19  ctrlr->mdelay_after_cmd0 = 2;
20 }
void soc_sd_mmc_controller_quirks(struct sd_mmc_ctrlr *ctrlr)
Definition: sd.c:6
#define DRVR_CAP_REMOVABLE
Definition: sd_mmc_ctrlr.h:181
#define CLOCK_KHZ
Definition: sd_mmc_ctrlr.h:157
#define DRVR_CAP_AUTO_CMD12
Definition: sd_mmc_ctrlr.h:174
uint32_t f_min
Definition: sd_mmc_ctrlr.h:152
uint32_t mdelay_before_cmd0
Definition: sd_mmc_ctrlr.h:201
uint32_t caps
Definition: sd_mmc_ctrlr.h:167
uint32_t mdelay_after_cmd0
Definition: sd_mmc_ctrlr.h:202