Source
mxsmmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, struct mmc_data *data)
// SPDX-License-Identifier: GPL-2.0+
/*
* Freescale i.MX28 SSP MMC driver
*
* Copyright (C) 2019 DENX Software Engineering
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*
* Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
* on behalf of DENX Software Engineering GmbH
*
* Based on code from LTIB:
* (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
* Terry Lv
*
* Copyright 2007, Freescale Semiconductor, Inc
* Andy Fleming
*
* Based vaguely on the pxa mmc code:
* (C) Copyright 2003
* Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
*/
struct mxsmmc_priv {
int id;
int (*mmc_is_wp)(int);
int (*mmc_cd)(int);
struct mmc_config cfg; /* mmc configuration */
struct mxs_dma_desc *desc;
uint32_t buswidth;
struct mxs_ssp_regs *regs;
};
/* CONFIG_IS_ENABLED(DM_MMC) */
/* CONFIG_MX23 */
struct mxsmmc_platdata {
struct dtd_fsl_imx_mmc dtplat;
struct mmc_config cfg;
struct mmc mmc;