sdhci-internal.h (ea55a221bfc04bde7c7874ecd98881e09763a192) | sdhci-internal.h (da34692234a03b6ffabd0b5b7864b423ac8eca56) |
---|---|
1/* 2 * SD Association Host Standard Specification v2.0 controller emulation 3 * 4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. 5 * Mitsyanko Igor <i.mitsyanko@samsung.com> 6 * Peter A.G. Crosthwaite <peter.crosthwaite@petalogix.com> 7 * 8 * Based on MMC controller for Samsung S5PC1xx-based board emulation --- 68 unchanged lines hidden (view full) --- 77#define SDHC_DAT_LINE_ACTIVE 0x00000004 78#define SDHC_DOING_WRITE 0x00000100 79#define SDHC_DOING_READ 0x00000200 80#define SDHC_SPACE_AVAILABLE 0x00000400 81#define SDHC_DATA_AVAILABLE 0x00000800 82#define SDHC_CARD_PRESENT 0x00010000 83#define SDHC_CARD_DETECT 0x00040000 84#define SDHC_WRITE_PROTECT 0x00080000 | 1/* 2 * SD Association Host Standard Specification v2.0 controller emulation 3 * 4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. 5 * Mitsyanko Igor <i.mitsyanko@samsung.com> 6 * Peter A.G. Crosthwaite <peter.crosthwaite@petalogix.com> 7 * 8 * Based on MMC controller for Samsung S5PC1xx-based board emulation --- 68 unchanged lines hidden (view full) --- 77#define SDHC_DAT_LINE_ACTIVE 0x00000004 78#define SDHC_DOING_WRITE 0x00000100 79#define SDHC_DOING_READ 0x00000200 80#define SDHC_SPACE_AVAILABLE 0x00000400 81#define SDHC_DATA_AVAILABLE 0x00000800 82#define SDHC_CARD_PRESENT 0x00010000 83#define SDHC_CARD_DETECT 0x00040000 84#define SDHC_WRITE_PROTECT 0x00080000 |
85FIELD(SDHC_PRNSTS, DAT_LVL, 20, 4); 86FIELD(SDHC_PRNSTS, CMD_LVL, 24, 1); |
|
85#define TRANSFERRING_DATA(x) \ 86 ((x) & (SDHC_DOING_READ | SDHC_DOING_WRITE)) 87 88/* R/W Host control Register 0x0 */ 89#define SDHC_HOSTCTL 0x28 90#define SDHC_CTRL_LED 0x01 91#define SDHC_CTRL_DATATRANSFERWIDTH 0x02 /* SD mode only */ 92#define SDHC_CTRL_HIGH_SPEED 0x04 --- 202 unchanged lines hidden --- | 87#define TRANSFERRING_DATA(x) \ 88 ((x) & (SDHC_DOING_READ | SDHC_DOING_WRITE)) 89 90/* R/W Host control Register 0x0 */ 91#define SDHC_HOSTCTL 0x28 92#define SDHC_CTRL_LED 0x01 93#define SDHC_CTRL_DATATRANSFERWIDTH 0x02 /* SD mode only */ 94#define SDHC_CTRL_HIGH_SPEED 0x04 --- 202 unchanged lines hidden --- |