rk27xx: Add status led (icon) support to SD driver

Change-Id: I47a36c0cf7319c2b100b813fdcbea024c7ae0b0a
This commit is contained in:
Marcin Bukat 2012-12-16 12:14:44 +01:00
parent 3ac7af95a9
commit dac6dbc013
4 changed files with 11 additions and 0 deletions

View file

@ -176,6 +176,9 @@
/* Define this if you have adjustable CPU frequency */ /* Define this if you have adjustable CPU frequency */
#define HAVE_ADJUSTABLE_CPU_FREQ #define HAVE_ADJUSTABLE_CPU_FREQ
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
#define RKW_FORMAT #define RKW_FORMAT
#define BOOTFILE_EXT "rkw" #define BOOTFILE_EXT "rkw"
#define BOOTFILE "rockbox." BOOTFILE_EXT #define BOOTFILE "rockbox." BOOTFILE_EXT

View file

@ -164,6 +164,9 @@
/* Define this if you have adjustable CPU frequency */ /* Define this if you have adjustable CPU frequency */
#define HAVE_ADJUSTABLE_CPU_FREQ #define HAVE_ADJUSTABLE_CPU_FREQ
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
#define RKW_FORMAT #define RKW_FORMAT
#define BOOTFILE_EXT "rkw" #define BOOTFILE_EXT "rkw"
#define BOOTFILE "rockbox." BOOTFILE_EXT #define BOOTFILE "rockbox." BOOTFILE_EXT

View file

@ -182,6 +182,9 @@
/* Define this if you have adjustable CPU frequency */ /* Define this if you have adjustable CPU frequency */
#define HAVE_ADJUSTABLE_CPU_FREQ #define HAVE_ADJUSTABLE_CPU_FREQ
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
#define RKW_FORMAT #define RKW_FORMAT
#define BOOTFILE_EXT "rkw" #define BOOTFILE_EXT "rkw"
#define BOOTFILE "rockbox." BOOTFILE_EXT #define BOOTFILE "rockbox." BOOTFILE_EXT

View file

@ -730,10 +730,12 @@ void sd_enable(bool on)
if (on) if (on)
{ {
SCU_CLKCFG &= ~(1<<22); SCU_CLKCFG &= ~(1<<22);
led(true);
} }
else else
{ {
SCU_CLKCFG |= (1<<22); SCU_CLKCFG |= (1<<22);
led(false);
} }
} }