2 * Faraday FTSDC010 Secure Digital Memory Card Host Controller
4 * Copyright (C) 2011 Andes Technology Corporation
5 * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
7 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef __FTSDC010_MCI_H
12 #define __FTSDC010_MCI_H
14 struct ftsdc010_chip {
16 uint32_t wprot; /* write protected (locked) */
17 uint32_t rate; /* actual SD clock in Hz */
18 uint32_t sclk; /* FTSDC010 source clock in Hz */
19 uint32_t fifo; /* fifo depth in bytes */
21 struct mmc_config cfg; /* mmc configuration */
40 /* Export the operations to drivers */
41 int ftsdc010_probe(struct udevice *dev);
42 extern const struct dm_mmc_ops dm_ftsdc010_ops;
44 void ftsdc_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth,
45 uint caps, u32 max_clk, u32 min_clk);
46 void set_bus_width(struct ftsdc010_mmc __iomem *regs, struct mmc_config *cfg);
49 int ftsdc010_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg);
53 #endif /* __FTSDC010_MCI_H */