]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
sdcard: Allow the sdcard driver to run on real hardware
authorKevin O'Connor <kevin@koconnor.net>
Mon, 10 Aug 2015 19:41:03 +0000 (15:41 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 17 Aug 2015 16:11:25 +0000 (12:11 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/Kconfig
src/hw/sdcard.c

index d70624e441cbc231c377ac038565e651670f0d3f..62562420202e1dfe5e79fc9ab32645adc891179d 100644 (file)
@@ -161,7 +161,7 @@ menu "Hardware support"
         help
             Support for AHCI disk code.
     config SDCARD
-        depends on DRIVES && QEMU_HARDWARE
+        depends on DRIVES
         bool "SD controllers"
         default y
         help
index 68888bfa59ebefc140e5a42a350acbb49551a9ee..540e97c106f297d7659e20f4004521d1b0d99b3c 100644 (file)
@@ -5,7 +5,6 @@
 // This file may be distributed under the terms of the GNU LGPLv3 license.
 
 #include "block.h" // struct drive_s
-#include "fw/paravirt.h" // runningOnQEMU
 #include "malloc.h" // malloc_fseg
 #include "output.h" // znprintf
 #include "pci.h" // pci_config_readl
@@ -297,8 +296,6 @@ sdcard_process_op(struct disk_op_s *op)
 static int
 sdcard_card_setup(struct sdhci_s *regs, int volt)
 {
-    // XXX - works on QEMU; probably wont on real hardware!
-
     // Reset card
     u32 param[4] = { };
     int ret = sdcard_pio(regs, SC_GO_IDLE_STATE, param);
@@ -429,9 +426,6 @@ sdcard_controller_setup(void *data)
                      PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
 
     // Initialize controller
-    if (!runningOnQEMU())
-        // XXX - this init logic will probably only work on qemu!
-        return;
     u32 present_state = readl(&regs->present_state);
     if (!(present_state & SP_CARD_INSERTED))
         // No card present