blob: 782d92be2f5f92774db24b5fa63b95200fe5c8df [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rick Chen252185f2017-08-28 16:44:11 +08002/*
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>
Rick Chen252185f2017-08-28 16:44:11 +08007 */
8#include <mmc.h>
9
10#ifndef __FTSDC010_MCI_H
11#define __FTSDC010_MCI_H
12
13struct 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
Rick Chen252185f2017-08-28 16:44:11 +080037#endif /* __FTSDC010_MCI_H */