blob: 909839b7b413c3742f9fb33ac8d2151b34897c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef __SPRD_SDHCI_H__
#define __SPRD_SDHCI_H__
#include <linux/mmc/sdhci.h>
#include <linux/mmc/mmc.h>
#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
#include <linux/mmc/slot-gpio.h>
enum {
SDC_SLAVE_SD = 0,
SDC_SLAVE_WIFI,
SDC_SLAVE_CP,
SDC_SLAVE_EMMC
};
struct sprd_sdhci_host_platdata {
unsigned int runtime;
unsigned int keep_power;
unsigned int caps;
unsigned int caps2;
unsigned int quirks;
unsigned int quirks2;
unsigned int host_caps_mask;
int detect_gpio;
const char *vdd_extmmc;
const char *vdd_vmmc;
const char *vdd_vqmmc;
unsigned int vqmmc_voltage_level;
unsigned int vdd_voltage_level[4];
const char *clk_name;
const char *clk_parent_name;
int max_frequency;
unsigned int pinmap_offset;
unsigned int d3_gpio;
unsigned int d3_index;
unsigned int sd_func;
unsigned int gpio_func;
unsigned int enb_bit, rst_bit;
unsigned int enb_reg, rst_reg;
unsigned int write_delay;
unsigned int read_pos_delay;
unsigned int read_neg_delay;
};
#endif
|