aboutsummaryrefslogtreecommitdiffstats
path: root/hw/android_arm.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-04-15 15:04:16 -0700
committerDavid 'Digit' Turner <digit@google.com>2010-04-15 15:04:16 -0700
commit92568958dd42bf35667cc6451b5edd7f7d1f73a1 (patch)
tree573e33581b6db6dfc9efc1ac34104887e994b015 /hw/android_arm.c
parentfbcab322c2a12bfe49d0faaef91fccdc7bb97d4e (diff)
downloadexternal_qemu-92568958dd42bf35667cc6451b5edd7f7d1f73a1.zip
external_qemu-92568958dd42bf35667cc6451b5edd7f7d1f73a1.tar.gz
external_qemu-92568958dd42bf35667cc6451b5edd7f7d1f73a1.tar.bz2
Revert previous patch to fix SD Card emulation
The previous patch modifies SD Card hardware emulation in a way that is not backwards compatible with previous SDK platform releases. This has the unfortunate effect of making SD Card emulation not work properly when running existing AVDs. Reverting the patch until we get a better one. Change-Id: I82dac87709d88aa3bd292bf2ed0008ae74d95853
Diffstat (limited to 'hw/android_arm.c')
-rw-r--r--hw/android_arm.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/hw/android_arm.c b/hw/android_arm.c
index ce36c8f..f5df7f2 100644
--- a/hw/android_arm.c
+++ b/hw/android_arm.c
@@ -49,18 +49,7 @@ static struct goldfish_device nand_device = {
/* Board init. */
-static void goldfish_sdcard_init(int n, unsigned base)
-{
- int idx = drive_get_index( IF_IDE, 0, n );
-
- goldfish_mmc_init(base, n);
-
- if (idx >= 0) {
- goldfish_mmc_insert(n, drives_table[idx].bdrv);
- }
-}
-
-// #define TEST_SWITCH 1
+#define TEST_SWITCH 1
#if TEST_SWITCH
uint32_t switch_test_write(void *opaque, uint32_t state)
{
@@ -131,9 +120,11 @@ static void android_arm_init_(ram_addr_t ram_size,
#ifdef HAS_AUDIO
goldfish_audio_init(0xff004000, 0, audio_input_source);
#endif
-
- goldfish_sdcard_init(0, 0xff005000);
- goldfish_sdcard_init(1, 0xff007000);
+ {
+ int idx = drive_get_index( IF_IDE, 0, 0 );
+ if (idx >= 0)
+ goldfish_mmc_init(0xff005000, 0, drives_table[idx].bdrv);
+ }
goldfish_memlog_init(0xff006000);