Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dw_mmc-exynos.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/mmc/host.h>
#include <linux/mmc/dw_mmc.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include "dw_mmc.h"
#include "dw_mmc-pltfm.h"

Go to the source code of this file.

Data Structures

struct  dw_mci_exynos_priv_data
 
struct  dw_mci_exynos_compatible
 

Macros

#define NUM_PINS(x)   (x + 2)
 
#define SDMMC_CLKSEL   0x09C
 
#define SDMMC_CLKSEL_CCLK_SAMPLE(x)   (((x) & 7) << 0)
 
#define SDMMC_CLKSEL_CCLK_DRIVE(x)   (((x) & 7) << 16)
 
#define SDMMC_CLKSEL_CCLK_DIVIDER(x)   (((x) & 7) << 24)
 
#define SDMMC_CLKSEL_GET_DRV_WD3(x)   (((x) >> 16) & 0x7)
 
#define SDMMC_CLKSEL_TIMING(x, y, z)
 
#define SDMMC_CMD_USE_HOLD_REG   BIT(29)
 
#define EXYNOS4210_FIXED_CIU_CLK_DIV   2
 
#define EXYNOS4412_FIXED_CIU_CLK_DIV   4
 

Enumerations

enum  dw_mci_exynos_type { DW_MCI_TYPE_EXYNOS4210, DW_MCI_TYPE_EXYNOS4412, DW_MCI_TYPE_EXYNOS5250 }
 

Functions

 MODULE_DEVICE_TABLE (of, dw_mci_exynos_match)
 
int dw_mci_exynos_probe (struct platform_device *pdev)
 
 module_platform_driver (dw_mci_exynos_pltfm_driver)
 
 MODULE_DESCRIPTION ("Samsung Specific DW-MSHC Driver Extension")
 
 MODULE_AUTHOR ("Thomas Abraham <[email protected]")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:dwmmc-exynos")
 

Macro Definition Documentation

#define EXYNOS4210_FIXED_CIU_CLK_DIV   2

Definition at line 36 of file dw_mmc-exynos.c.

#define EXYNOS4412_FIXED_CIU_CLK_DIV   4

Definition at line 37 of file dw_mmc-exynos.c.

#define NUM_PINS (   x)    (x + 2)

Definition at line 23 of file dw_mmc-exynos.c.

#define SDMMC_CLKSEL   0x09C

Definition at line 25 of file dw_mmc-exynos.c.

#define SDMMC_CLKSEL_CCLK_DIVIDER (   x)    (((x) & 7) << 24)

Definition at line 28 of file dw_mmc-exynos.c.

#define SDMMC_CLKSEL_CCLK_DRIVE (   x)    (((x) & 7) << 16)

Definition at line 27 of file dw_mmc-exynos.c.

#define SDMMC_CLKSEL_CCLK_SAMPLE (   x)    (((x) & 7) << 0)

Definition at line 26 of file dw_mmc-exynos.c.

#define SDMMC_CLKSEL_GET_DRV_WD3 (   x)    (((x) >> 16) & 0x7)

Definition at line 29 of file dw_mmc-exynos.c.

#define SDMMC_CLKSEL_TIMING (   x,
  y,
 
)
Value:
SDMMC_CLKSEL_CCLK_DRIVE(y) | \
SDMMC_CLKSEL_CCLK_DIVIDER(z))

Definition at line 30 of file dw_mmc-exynos.c.

#define SDMMC_CMD_USE_HOLD_REG   BIT(29)

Definition at line 34 of file dw_mmc-exynos.c.

Enumeration Type Documentation

Enumerator:
DW_MCI_TYPE_EXYNOS4210 
DW_MCI_TYPE_EXYNOS4412 
DW_MCI_TYPE_EXYNOS5250 

Definition at line 40 of file dw_mmc-exynos.c.

Function Documentation

int dw_mci_exynos_probe ( struct platform_device pdev)

Definition at line 228 of file dw_mmc-exynos.c.

MODULE_ALIAS ( "platform:dwmmc-exynos"  )
MODULE_AUTHOR ( )
MODULE_DESCRIPTION ( "Samsung Specific DW-MSHC Driver Extension"  )
MODULE_DEVICE_TABLE ( of  ,
dw_mci_exynos_match   
)
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( dw_mci_exynos_pltfm_driver  )