xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / platform_data / mmc-davinci.h
blob87a8bed3b6cbe1d39297e8a56727361bbfc4f020
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Board-specific MMC configuration
4 */
6 #ifndef _DAVINCI_MMC_H
7 #define _DAVINCI_MMC_H
9 #include <linux/types.h>
10 #include <linux/mmc/host.h>
12 struct davinci_mmc_config {
13 /* get_cd()/get_wp() may sleep */
14 int (*get_cd)(int module);
15 int (*get_ro)(int module);
17 void (*set_power)(int module, bool on);
19 /* wires == 0 is equivalent to wires == 4 (4-bit parallel) */
20 u8 wires;
22 u32 max_freq;
24 /* any additional host capabilities: OR'd in to mmc->f_caps */
25 u32 caps;
27 /* Number of sg segments */
28 u8 nr_sg;
30 void davinci_setup_mmc(int module, struct davinci_mmc_config *config);
32 enum {
33 MMC_CTLR_VERSION_1 = 0, /* DM644x and DM355 */
34 MMC_CTLR_VERSION_2, /* DA830 */
37 #endif