2019-06-04 08:11:33 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-06-20 14:11:52 +00:00
|
|
|
/*
|
|
|
|
* include/linux/platform_data/pxa_sdhci.h
|
2010-09-20 14:51:28 +00:00
|
|
|
*
|
|
|
|
* Copyright 2010 Marvell
|
|
|
|
* Zhangfei Gao <zhangfei.gao@marvell.com>
|
|
|
|
*
|
|
|
|
* PXA Platform - SDHCI platform data definitions
|
|
|
|
*/
|
|
|
|
|
2011-06-20 14:11:52 +00:00
|
|
|
#ifndef _PXA_SDHCI_H_
|
|
|
|
#define _PXA_SDHCI_H_
|
2010-09-20 14:51:28 +00:00
|
|
|
|
|
|
|
/* pxa specific flag */
|
|
|
|
/* Require clock free running */
|
2011-06-08 09:41:57 +00:00
|
|
|
#define PXA_FLAG_ENABLE_CLOCK_GATING (1<<0)
|
|
|
|
/* card always wired to host, like on-chip emmc */
|
|
|
|
#define PXA_FLAG_CARD_PERMANENT (1<<1)
|
2010-11-19 21:48:39 +00:00
|
|
|
/* Board design supports 8-bit data on SD/SDIO BUS */
|
|
|
|
#define PXA_FLAG_SD_8_BIT_CAPABLE_SLOT (1<<2)
|
|
|
|
|
2010-09-20 14:51:28 +00:00
|
|
|
/*
|
|
|
|
* struct pxa_sdhci_platdata() - Platform device data for PXA SDHCI
|
|
|
|
* @flags: flags for platform requirement
|
2011-06-08 09:41:57 +00:00
|
|
|
* @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
|
|
|
|
* @max_speed: the maximum speed supported
|
|
|
|
* @host_caps: Standard MMC host capabilities bit field.
|
|
|
|
* @quirks: quirks of platfrom
|
2012-10-17 11:04:48 +00:00
|
|
|
* @quirks2: quirks2 of platfrom
|
2011-06-08 09:41:57 +00:00
|
|
|
* @pm_caps: pm_caps of platfrom
|
2010-09-20 14:51:28 +00:00
|
|
|
*/
|
|
|
|
struct sdhci_pxa_platdata {
|
2011-06-08 09:41:57 +00:00
|
|
|
unsigned int flags;
|
|
|
|
unsigned int clk_delay_cycles;
|
|
|
|
unsigned int clk_delay_sel;
|
|
|
|
bool clk_delay_enable;
|
2010-09-20 14:51:28 +00:00
|
|
|
unsigned int max_speed;
|
2012-11-14 12:35:51 +00:00
|
|
|
u32 host_caps;
|
|
|
|
u32 host_caps2;
|
2010-09-20 14:51:28 +00:00
|
|
|
unsigned int quirks;
|
2012-10-17 11:04:48 +00:00
|
|
|
unsigned int quirks2;
|
2011-06-08 09:41:57 +00:00
|
|
|
unsigned int pm_caps;
|
|
|
|
};
|
2011-06-20 14:11:52 +00:00
|
|
|
#endif /* _PXA_SDHCI_H_ */
|