blob: 36187cfa04f6c32778e584baa43fbae7fc3b6912 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rick Chenf7a4adb2017-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 Chenf7a4adb2017-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;
Rick Chenf7a4adb2017-08-28 16:44:11 +080031 struct mmc *mmc;
32 void *priv;
33 bool fifo_mode;
34};
35
Rick Chenf7a4adb2017-08-28 16:44:11 +080036#endif /* __FTSDC010_MCI_H */