Root/qiboot/src/cpu/s3c6410/hs_mmc.h

1#ifndef __HS_MMC_H__
2#define __HS_MMC_H__
3
4/////////////////////////////////////////////////////////////////////////////////////////////////
5//#define SDHC_MONITOR (*(volatile unsigned *)0x4800004c)
6//#define SDHC_SLOT_INT_STAT (*(volatile unsigned *)0x480000fc)
7
8/////////////////////////////////////////////////////////////////////////////////////////////////
9#define SD_HCLK 1
10#define SD_EPLL 2
11#define SD_EXTCLK 3
12
13#define NORMAL 0
14#define HIGH 1
15
16//Normal Interrupt Signal Enable
17#define READWAIT_SIG_INT_EN (1<<10)
18#define CARD_SIG_INT_EN (1<<8)
19#define CARD_REMOVAL_SIG_INT_EN (1<<7)
20#define CARD_INSERT_SIG_INT_EN (1<<6)
21#define BUFFER_READREADY_SIG_INT_EN (1<<5)
22#define BUFFER_WRITEREADY_SIG_INT_EN (1<<4)
23#define DMA_SIG_INT_EN (1<<3)
24#define BLOCKGAP_EVENT_SIG_INT_EN (1<<2)
25#define TRANSFERCOMPLETE_SIG_INT_EN (1<<1)
26#define COMMANDCOMPLETE_SIG_INT_EN (1<<0)
27
28//Normal Interrupt Status Enable
29#define READWAIT_STS_INT_EN (1<<10)
30#define CARD_STS_INT_EN (1<<8)
31#define CARD_REMOVAL_STS_INT_EN (1<<7)
32#define CARD_INSERT_STS_INT_EN (1<<6)
33#define BUFFER_READREADY_STS_INT_EN (1<<5)
34#define BUFFER_WRITEREADY_STS_INT_EN (1<<4)
35#define DMA_STS_INT_EN (1<<3)
36#define BLOCKGAP_EVENT_STS_INT_EN (1<<2)
37#define TRANSFERCOMPLETE_STS_INT_EN (1<<1)
38#define COMMANDCOMPLETE_STS_INT_EN (1<<0)
39
40#endif /*__HS_MMC_H__*/
41

Archive Download this file



interactive