diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2012-12-16 12:14:44 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2012-12-16 12:14:44 +0100 |
commit | dac6dbc0139674c70b3c004600578c6b0f82fc21 (patch) | |
tree | 40a8dbab442144c5e96d2d8ee785a514acf28114 | |
parent | 3ac7af95a9718e5d4a12c8184c32e6223bc13da0 (diff) |
rk27xx: Add status led (icon) support to SD driver
Change-Id: I47a36c0cf7319c2b100b813fdcbea024c7ae0b0a
-rw-r--r-- | firmware/export/config/hifimanhm60x.h | 3 | ||||
-rw-r--r-- | firmware/export/config/hifimanhm801.h | 3 | ||||
-rw-r--r-- | firmware/export/config/rk27generic.h | 3 | ||||
-rw-r--r-- | firmware/target/arm/rk27xx/sd-rk27xx.c | 2 |
4 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/config/hifimanhm60x.h b/firmware/export/config/hifimanhm60x.h index d188d19201..088cc12b09 100644 --- a/firmware/export/config/hifimanhm60x.h +++ b/firmware/export/config/hifimanhm60x.h @@ -176,6 +176,9 @@ /* Define this if you have adjustable CPU frequency */ #define HAVE_ADJUSTABLE_CPU_FREQ +/* Virtual LED (icon) */ +#define CONFIG_LED LED_VIRTUAL + #define RKW_FORMAT #define BOOTFILE_EXT "rkw" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config/hifimanhm801.h b/firmware/export/config/hifimanhm801.h index 80b6ccbe41..e253fa0051 100644 --- a/firmware/export/config/hifimanhm801.h +++ b/firmware/export/config/hifimanhm801.h @@ -164,6 +164,9 @@ /* Define this if you have adjustable CPU frequency */ #define HAVE_ADJUSTABLE_CPU_FREQ +/* Virtual LED (icon) */ +#define CONFIG_LED LED_VIRTUAL + #define RKW_FORMAT #define BOOTFILE_EXT "rkw" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config/rk27generic.h b/firmware/export/config/rk27generic.h index 69c33301d0..10fbd451e4 100644 --- a/firmware/export/config/rk27generic.h +++ b/firmware/export/config/rk27generic.h @@ -182,6 +182,9 @@ /* Define this if you have adjustable CPU frequency */ #define HAVE_ADJUSTABLE_CPU_FREQ +/* Virtual LED (icon) */ +#define CONFIG_LED LED_VIRTUAL + #define RKW_FORMAT #define BOOTFILE_EXT "rkw" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/target/arm/rk27xx/sd-rk27xx.c b/firmware/target/arm/rk27xx/sd-rk27xx.c index 115240b08e..87a9e37b71 100644 --- a/firmware/target/arm/rk27xx/sd-rk27xx.c +++ b/firmware/target/arm/rk27xx/sd-rk27xx.c @@ -730,10 +730,12 @@ void sd_enable(bool on) if (on) { SCU_CLKCFG &= ~(1<<22); + led(true); } else { SCU_CLKCFG |= (1<<22); + led(false); } } |