summaryrefslogtreecommitdiffstats
path: root/src/mainboard/intel/galileo/sd.c
blob: 65cd867d511c88e891e7d805cb386577007f08a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#include <commonlib/sdhci.h>
#include <commonlib/storage.h>

void soc_sd_mmc_controller_quirks(struct sd_mmc_ctrlr *ctrlr)
{
	/* Specify the additional driver support */
	ctrlr->caps |= DRVR_CAP_REMOVABLE;

	/* ADMA currently not working on Quark */
	ctrlr->caps &= ~DRVR_CAP_AUTO_CMD12;

	/* Set initialization clock frequency */
	ctrlr->f_min = 100 * CLOCK_KHZ;

	/* Set the initialization delays */
	ctrlr->mdelay_before_cmd0 = 1;
	ctrlr->mdelay_after_cmd0 = 2;
}