pxa_sdhci.h 1.76 KB
Newer Older
1 2
/*
 * include/linux/platform_data/pxa_sdhci.h
3 4 5 6 7 8 9 10 11 12 13
 *
 * Copyright 2010 Marvell
 *	Zhangfei Gao <zhangfei.gao@marvell.com>
 *
 * PXA Platform - SDHCI platform data definitions
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

14 15
#ifndef _PXA_SDHCI_H_
#define _PXA_SDHCI_H_
16 17 18

/* pxa specific flag */
/* Require clock free running */
19 20 21
#define PXA_FLAG_ENABLE_CLOCK_GATING (1<<0)
/* card always wired to host, like on-chip emmc */
#define PXA_FLAG_CARD_PERMANENT	(1<<1)
22 23 24
/* Board design supports 8-bit data on SD/SDIO BUS */
#define PXA_FLAG_SD_8_BIT_CAPABLE_SLOT (1<<2)

25 26 27
/*
 * struct pxa_sdhci_platdata() - Platform device data for PXA SDHCI
 * @flags: flags for platform requirement
28 29 30 31 32 33 34 35 36 37 38 39 40
 * @clk_delay_cycles:
 *	mmp2: each step is roughly 100ps, 5bits width
 *	pxa910: each step is 1ns, 4bits width
 * @clk_delay_sel: select clk_delay, used on pxa910
 *	0: choose feedback clk
 *	1: choose feedback clk + delay value
 *	2: choose internal clk
 * @clk_delay_enable: enable clk_delay or not, used on pxa910
 * @ext_cd_gpio: gpio pin used for external CD line
 * @ext_cd_gpio_invert: invert values for external CD gpio line
 * @max_speed: the maximum speed supported
 * @host_caps: Standard MMC host capabilities bit field.
 * @quirks: quirks of platfrom
Kevin Liu's avatar
Kevin Liu committed
41
 * @quirks2: quirks2 of platfrom
42
 * @pm_caps: pm_caps of platfrom
43 44
 */
struct sdhci_pxa_platdata {
45 46 47 48 49 50
	unsigned int	flags;
	unsigned int	clk_delay_cycles;
	unsigned int	clk_delay_sel;
	bool		clk_delay_enable;
	unsigned int	ext_cd_gpio;
	bool		ext_cd_gpio_invert;
51
	unsigned int	max_speed;
Lee Jones's avatar
Lee Jones committed
52 53
	u32		host_caps;
	u32		host_caps2;
54
	unsigned int	quirks;
Kevin Liu's avatar
Kevin Liu committed
55
	unsigned int	quirks2;
56 57
	unsigned int	pm_caps;
};
58
#endif /* _PXA_SDHCI_H_ */