From ed704825d2a4422c366c82ae3a2dfa62c06a6935 Mon Sep 17 00:00:00 2001 From: Jack Halpin Date: Mon, 10 May 2010 17:35:00 +0000 Subject: [PATCH] sd-as3525v2: Set LP bits in MCI_CLKENA for cards after they have been initialized. The OF does this and while we don't have the documentation to be sure I think it's highly likely this is a low power mode referred to in one of the product "briefs". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25936 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sd-as3525v2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 0eb6943531..ead3dc2694 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c @@ -562,6 +562,8 @@ static int sd_init_card(const int drive) card_info[drive].initialized = 1; + MCI_CLKENA |= 1<<(drive + 16); /* Set low power mode */ + return 0; }