Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sdhi-shmobile.c File Reference
#include <linux/io.h>
#include <linux/mmc/host.h>
#include <linux/mmc/core.h>
#include <linux/mmc/mmc.h>
#include <linux/mmc/sd.h>
#include <linux/mmc/tmio.h>
#include <mach/sdhi.h>

Go to the source code of this file.

Macros

#define OCR_FASTBOOT   (1<<29)
 
#define OCR_HCS   (1<<30)
 
#define OCR_BUSY   (1<<31)
 
#define RESP_CMD12   0x00000030
 
#define ALL_ERROR
 
#define CLK_MMC_ENABLE   (1 << 8)
 
#define CLK_MMC_INIT   (1 << 6) /* clk / 256 */
 
#define RESP_NONE   0x0300
 
#define RESP_R1   0x0400
 
#define RESP_R1B   0x0500
 
#define RESP_R2   0x0600
 
#define RESP_R3   0x0700
 
#define DATA_PRESENT   0x0800
 
#define TRANSFER_READ   0x1000
 
#define VOLTAGES   (MMC_VDD_32_33 | MMC_VDD_33_34)
 

Functions

int sdhi_boot_do_read (void __iomem *base, int high_capacity, unsigned long offset, unsigned short count, unsigned short *buf)
 
int sdhi_boot_init (void __iomem *base)
 

Macro Definition Documentation

#define ALL_ERROR
Value:
TMIO_STAT_STOPBIT_ERR | TMIO_STAT_DATATIMEOUT | \
TMIO_STAT_RXOVERFLOW | TMIO_STAT_TXUNDERRUN | \
TMIO_STAT_CMDTIMEOUT | TMIO_STAT_ILL_ACCESS | \
TMIO_STAT_ILL_FUNC)

Definition at line 51 of file sdhi-shmobile.c.

#define CLK_MMC_ENABLE   (1 << 8)

Definition at line 108 of file sdhi-shmobile.c.

#define CLK_MMC_INIT   (1 << 6) /* clk / 256 */

Definition at line 109 of file sdhi-shmobile.c.

#define DATA_PRESENT   0x0800

Definition at line 186 of file sdhi-shmobile.c.

#define OCR_BUSY   (1<<31)

Definition at line 25 of file sdhi-shmobile.c.

#define OCR_FASTBOOT   (1<<29)

Definition at line 23 of file sdhi-shmobile.c.

#define OCR_HCS   (1<<30)

Definition at line 24 of file sdhi-shmobile.c.

#define RESP_CMD12   0x00000030

Definition at line 27 of file sdhi-shmobile.c.

#define RESP_NONE   0x0300

Definition at line 181 of file sdhi-shmobile.c.

#define RESP_R1   0x0400

Definition at line 182 of file sdhi-shmobile.c.

#define RESP_R1B   0x0500

Definition at line 183 of file sdhi-shmobile.c.

#define RESP_R2   0x0600

Definition at line 184 of file sdhi-shmobile.c.

#define RESP_R3   0x0700

Definition at line 185 of file sdhi-shmobile.c.

#define TRANSFER_READ   0x1000

Definition at line 187 of file sdhi-shmobile.c.

#define VOLTAGES   (MMC_VDD_32_33 | MMC_VDD_33_34)

Definition at line 283 of file sdhi-shmobile.c.

Function Documentation

int sdhi_boot_do_read ( void __iomem base,
int  high_capacity,
unsigned long  offset,
unsigned short  count,
unsigned short buf 
)

Definition at line 265 of file sdhi-shmobile.c.

int sdhi_boot_init ( void __iomem base)

Definition at line 285 of file sdhi-shmobile.c.