xref: /openbmc/u-boot/drivers/mmc/ftsdc010_mci.h (revision 3ebd892f)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Faraday FTSDC010 Secure Digital Memory Card Host Controller
4  *
5  * Copyright (C) 2011 Andes Technology Corporation
6  * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
7  */
8 #include <mmc.h>
9 
10 #ifndef __FTSDC010_MCI_H
11 #define __FTSDC010_MCI_H
12 
13 struct ftsdc010_chip {
14 	void __iomem *regs;
15 	uint32_t wprot;   /* write protected (locked) */
16 	uint32_t rate;    /* actual SD clock in Hz */
17 	uint32_t sclk;    /* FTSDC010 source clock in Hz */
18 	uint32_t fifo;    /* fifo depth in bytes */
19 	uint32_t acmd;
20 	struct mmc_config cfg;	/* mmc configuration */
21 	const char *name;
22 	void *ioaddr;
23 	unsigned int caps;
24 	unsigned int version;
25 	unsigned int clock;
26 	unsigned int bus_hz;
27 	unsigned int div;
28 	int dev_index;
29 	int dev_id;
30 	int buswidth;
31 	u32 fifoth_val;
32 	struct mmc *mmc;
33 	void *priv;
34 	bool fifo_mode;
35 };
36 
37 #endif /* __FTSDC010_MCI_H */
38