Commit Graph

47 Commits

Author SHA1 Message Date
bushing
5122d749ee simplify sdhc code by removing voltage checking code and some other disabled code 2009-10-26 14:29:44 -07:00
bushing
c53d5f58c7 sd simplification: get rid of sc_flags, because we're always running on the same hardware 2009-10-26 14:29:44 -07:00
bushing
a1de353e6b merge sdhc header files 2009-10-26 14:29:44 -07:00
bushing
f9e873115c merge sdmmc header files 2009-10-26 14:29:44 -07:00
bushing
e000264f3b fixes from booto for CMD16 problem 2009-10-26 14:29:44 -07:00
Sven Peter
c9caa47916 Revert 4bit bus width because it just breaks stuff
This reverts commit b531ece84dca341ecafb880600299b8942cf60c9.
2009-08-31 01:55:16 -07:00
Sven Peter
be3f3c0559 sdhctrl: allow different timeouts for each command 2009-08-31 01:54:50 -07:00
Albert Herranz
68791a05fe sdhc: add ipc call IPC_SDHC_EXIT
In some cases it is desirable to let the Broadway processor take complete
control of hardware initially managed by 'mini'.
Add a new IPC call to instruct 'mini' to relinquish control of the
SD Host Controller.

One immediate user of this IPC call is Linux on the Nintendo Wii which
takes complete control of the SDHC hardware.

Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
2009-05-24 20:56:47 -07:00
Sven Peter
f8368c1374 sdhctrl: use sane timeouts 2009-05-16 18:14:36 +02:00
Sven Peter
1e2d42e984 sdhctrl: use a 4bit bus 2009-05-16 18:14:15 +02:00
Sven Peter
e06fbf3b1e prepare sdmmc_abort in irq handler 2009-05-15 05:35:18 -07:00
Sven Peter
9211533614 merge loader/sdhc.c and mini/sdhc.c 2009-05-15 05:35:18 -07:00
Sven Peter
f09e899399 moar less sdhc fail 2009-05-15 05:35:18 -07:00
Sven Peter
e010fc3a61 sdhc fix? 2009-05-15 05:35:18 -07:00
dhewg
5b4ebdf739 stfu 2009-05-15 05:35:17 -07:00
bushing
84f89611b8 changes to make sync mini and loader/sdhc.c 2009-05-15 05:35:17 -07:00
bushing
a137980ac1 desperately trying to sync up sdhc.c 2009-05-15 05:35:16 -07:00
bushing
aebf594314 make mini use new string code 2009-05-15 05:35:01 -07:00
dhewg
2100d84d7c IPC cleanup.
New function ipc_enqueue_slow() to enqueue to the slow in_queue from
within mini's irq context. The SDHC driver and the geckoloader uses
this, which in return gets our irq stack size down again to a sane
value.
2009-05-15 05:33:12 -07:00
Sven Peter
456b26c1b7 decrease the irq stack usage a bit 2009-05-15 05:33:12 -07:00
Sven Peter
5346a42d2d already done. i just forgot to remove the TODO 2009-05-15 05:33:11 -07:00
bushing
e5aec6fcc9 compiler warnings -- 2009-05-15 05:33:11 -07:00
Sven Peter
b84f393c92 sdhc seems to work now :> 2009-05-15 05:33:10 -07:00
Sven Peter
5ba315148b dma for sdhc.
it still fails after having read a few blocks
2009-05-15 05:33:10 -07:00
Sven Peter
2ad64f59a8 sdhc/sdmmc is getting closer to read valid data :> 2009-05-15 05:33:09 -07:00
Sven Peter
cccd6f5332 less sd fail. 2009-05-15 05:33:09 -07:00
Sven Peter
6b5ca1a194 did i mention that i hate this sd controller yet? 2009-05-15 05:33:09 -07:00
Sven Peter
ca7836a7a6 some more sd fail. 2009-05-15 05:33:09 -07:00
Sven Peter
3438ba21bb port of the BSD sdhc driver. breaks sd support atm 2009-05-15 05:33:09 -07:00
Sven Peter
753c97a90a added some copyright headers to mini 2009-05-15 05:33:08 -07:00
marcan
9b8f1df12c Kill sdhc.c stack hogs 2009-05-15 05:28:54 -07:00
bushing
12ac9bc4eb proper CSD handling, so we can detect SD card capacity
and format the card appropriately for BackupMii
2009-05-15 05:28:53 -07:00
bushing
aed064fa37 correctly handle CID and CSD (but the volume size calc is borked) 2009-05-15 05:28:53 -07:00
bushing
69102c9b0c try to decode and display CID / CSD 2009-05-15 05:28:53 -07:00
Sven Peter
711873e0c3 :/ 2009-05-15 05:28:53 -07:00
Sven Peter
ee8004d9c0 sdhc: CSD fixed 2009-05-15 05:28:53 -07:00
Sven Peter
320f255a5c response for CID fixed
CSD does not seem to work yet :s
2009-05-15 05:28:51 -07:00
marcan
689f718c64 Add ahb stuff for SD 2009-05-15 05:28:51 -07:00
marcan
766e793372 Make sdhc.c use dma_addr also 2009-05-15 05:28:50 -07:00
Sven Peter
e14be86d6c fix for dma problems? 2009-05-15 05:28:15 -07:00
bushing
3fc45b7dd8 some compiler warning fixes 2009-05-15 05:28:15 -07:00
Sven Peter
66982e9c37 sd ipc fix 2009-05-15 05:28:15 -07:00
bushing
902d0adac0 added code to support IPC for SDHC 2009-05-15 05:28:15 -07:00
Sven Peter
a02074a8ae removed some sd debug stuff 2009-05-15 05:28:13 -07:00
marcan
99c38eebe1 Woo MMU Woo Caches Woo AHBMemFlush! 2009-05-15 05:28:13 -07:00
John Kelley
5118037493 Added most fo the boot2 reg init shit to our code 2008-12-29 05:39:52 +01:00
marcan
91836dca85 Add miniios 2008-12-28 14:35:37 +01:00