Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mmc.h File Reference
#include <linux/types.h>
#include <linux/device.h>
#include <linux/mmc/host.h>
#include <plat/omap_hwmod.h>

Go to the source code of this file.

Data Structures

struct  omap_mmc_dev_attr
 
struct  omap_mmc_platform_data
 
struct  omap_mmc_platform_data::omap_mmc_slot_data
 

Macros

#define OMAP15XX_NR_MMC   1
 
#define OMAP16XX_NR_MMC   2
 
#define OMAP1_MMC_SIZE   0x080
 
#define OMAP1_MMC1_BASE   0xfffb7800
 
#define OMAP1_MMC2_BASE   0xfffb7c00 /* omap16xx only */
 
#define OMAP24XX_NR_MMC   2
 
#define OMAP2420_MMC_SIZE   OMAP1_MMC_SIZE
 
#define OMAP2_MMC1_BASE   0x4809c000
 
#define OMAP4_MMC_REG_OFFSET   0x100
 
#define OMAP_MMC_MAX_SLOTS   2
 
#define OMAP_HSMMC_SUPPORTS_DUAL_VOLT   BIT(0)
 
#define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ   BIT(1)
 
#define HSMMC_HAS_PBIAS   (1 << 0)
 
#define HSMMC_HAS_UPDATED_RESET   (1 << 1)
 

Functions

void omap_mmc_notify_cover_event (struct device *dev, int slot, int is_closed)
 
int omap_msdi_reset (struct omap_hwmod *oh)
 

Macro Definition Documentation

#define HSMMC_HAS_PBIAS   (1 << 0)

Definition at line 127 of file mmc.h.

#define HSMMC_HAS_UPDATED_RESET   (1 << 1)

Definition at line 128 of file mmc.h.

#define OMAP15XX_NR_MMC   1

Definition at line 20 of file mmc.h.

#define OMAP16XX_NR_MMC   2

Definition at line 21 of file mmc.h.

#define OMAP1_MMC1_BASE   0xfffb7800

Definition at line 23 of file mmc.h.

#define OMAP1_MMC2_BASE   0xfffb7c00 /* omap16xx only */

Definition at line 24 of file mmc.h.

#define OMAP1_MMC_SIZE   0x080

Definition at line 22 of file mmc.h.

#define OMAP2420_MMC_SIZE   OMAP1_MMC_SIZE

Definition at line 27 of file mmc.h.

#define OMAP24XX_NR_MMC   2

Definition at line 26 of file mmc.h.

#define OMAP2_MMC1_BASE   0x4809c000

Definition at line 28 of file mmc.h.

#define OMAP4_MMC_REG_OFFSET   0x100

Definition at line 30 of file mmc.h.

#define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ   BIT(1)

Definition at line 51 of file mmc.h.

#define OMAP_HSMMC_SUPPORTS_DUAL_VOLT   BIT(0)

Definition at line 50 of file mmc.h.

#define OMAP_MMC_MAX_SLOTS   2

Definition at line 32 of file mmc.h.

Function Documentation

void omap_mmc_notify_cover_event ( struct device dev,
int  slot,
int  is_closed 
)

Definition at line 849 of file omap.c.

int omap_msdi_reset ( struct omap_hwmod oh)

omap_msdi_reset - reset the MSDI IP block : struct omap_hwmod *

The MSDI IP block on OMAP2420 has to have both the POW and CLKD fields set inside its CON register for a reset to complete successfully. This is not documented in the TRM. For CLKD, we use the value that results in the lowest possible clock rate, to attempt to avoid disturbing any cards.

Definition at line 63 of file msdi.c.