Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Rick Chen | f7a4adb | 2017-08-28 16:44:11 +0800 | [diff] [blame] | 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> |
Rick Chen | f7a4adb | 2017-08-28 16:44:11 +0800 | [diff] [blame] | 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; |
Rick Chen | f7a4adb | 2017-08-28 16:44:11 +0800 | [diff] [blame] | 31 | struct mmc *mmc; |
| 32 | void *priv; |
| 33 | bool fifo_mode; |
| 34 | }; |
| 35 | |
Rick Chen | f7a4adb | 2017-08-28 16:44:11 +0800 | [diff] [blame] | 36 | #endif /* __FTSDC010_MCI_H */ |