diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-04-08 00:04:51 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-04-08 00:04:51 +0000 |
commit | 91239472ae8884ea4077986b6e7956aea71a4982 (patch) | |
tree | 0f305ad6b5bbbae57a43cf01130ed3a7d15324e3 | |
parent | df54e640d3fa2cc73089792f50b43ea2ca98a946 (diff) |
Add LED indication to Jz4740 SD driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20649 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c index 6ee18a47d6..63b9913d29 100644 --- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c @@ -1700,6 +1700,8 @@ int sd_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf #ifdef HAVE_MULTIVOLUME (void)drive; #endif + led(true); + struct mmc_request request; struct mmc_response_r1 r1; int retval; @@ -1738,6 +1740,8 @@ int sd_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf if ((retval = mmc_unpack_r1(&request, &r1))) return retval; + led(false); + return retval; } @@ -1746,6 +1750,8 @@ int sd_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const vo #ifdef HAVE_MULTIVOLUME (void)drive; #endif + led(true); + struct mmc_request request; struct mmc_response_r1 r1; int retval; @@ -1782,6 +1788,8 @@ int sd_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const vo if ((retval = mmc_unpack_r1(&request, &r1))) return retval; + led(false); + return retval; } |