Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101426
b: refs/heads/master
c: 9972885
h: refs/heads/master
v: v3
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed Jul 15, 2008
1 parent 45db9d6 commit dcc4525
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b62220b608ab71876d8920d5590f1db4ee2eb4a
refs/heads/master: 997288517ec839b7639fcba77111256b13a66000
45 changes: 0 additions & 45 deletions trunk/include/asm-mips/mach-db1x00/db1x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,51 +145,6 @@ typedef volatile struct
#define SET_VCC_VPP(VCC, VPP, SLOT)\
((((VCC) << 2) | ((VPP) << 0)) << ((SLOT) * 8))

/*
* SD controller macros
*/

/* Detect card. */
#define mmc_card_inserted(_n_, _res_) \
do { \
BCSR * const bcsr = (BCSR *)0xAE000000; \
unsigned long mmc_wp, board_specific; \
if ((_n_)) { \
mmc_wp = BCSR_BOARD_SD1_WP; \
} else { \
mmc_wp = BCSR_BOARD_SD0_WP; \
} \
board_specific = au_readl((unsigned long)(&bcsr->specific)); \
if (!(board_specific & mmc_wp)) {/* low means card present */ \
*(int *)(_res_) = 1; \
} else { \
*(int *)(_res_) = 0; \
} \
} while (0)

/*
* Apply power to card slot(s).
*/
#define mmc_power_on(_n_) \
do { \
BCSR * const bcsr = (BCSR *)0xAE000000; \
unsigned long mmc_pwr, mmc_wp, board_specific; \
if ((_n_)) { \
mmc_pwr = BCSR_BOARD_SD1_PWR; \
mmc_wp = BCSR_BOARD_SD1_WP; \
} else { \
mmc_pwr = BCSR_BOARD_SD0_PWR; \
mmc_wp = BCSR_BOARD_SD0_WP; \
} \
board_specific = au_readl((unsigned long)(&bcsr->specific)); \
if (!(board_specific & mmc_wp)) {/* low means card present */ \
board_specific |= mmc_pwr; \
au_writel(board_specific, (int)(&bcsr->specific)); \
au_sync(); \
} \
} while (0)


/*
* NAND defines
*
Expand Down

0 comments on commit dcc4525

Please sign in to comment.