Commit Graph
130 Commits
Author SHA1 Message Date
CTCaer 9d0ed664cb sdmmc: modernize SD/eMMC cmds
Add up to SDA 8.0.0 and eMMC 5.1 and correct some
2026-06-17 06:29:50 +02:00
CTCaer e69ef9ee0d sdmmc: identify SD Express cards 2026-06-17 06:27:44 +02:00
CTCaer de7cf0cf83 sdmmc: add get sda spec version function
Returned number is major version.
2026-06-17 06:25:34 +02:00
CTCaer 4626816d40 sdmmc: refactor ICR/OCR defines
And others.
Also add some debug prints and move ocr argument to get op cond.
2026-06-17 06:25:29 +02:00
NaGa 1c7792e386 emuSD & other fixes 2026-04-08 17:03:38 +02:00
NaGa 45318f691f . 2026-03-28 01:42:43 +01:00
CTCaer 1561af252f bdk: sdmmc: parse bkops info 2026-03-27 20:44:15 +01:00
CTCaer 387b5b07ed bdk: sdmmc: rename bkops define
And remove dead code.
2026-03-27 20:44:15 +01:00
CTCaer 0e49d62bed bdk: se: homogenize return values 2026-03-27 20:16:31 +01:00
CTCaer eb62a31a1a bdk: sdmmc: remove dependency to ram for init 2026-03-27 20:08:45 +01:00
CTCaer bf5372628a bdk: mem: rename sdmmc dma buffer 2026-03-27 20:05:57 +01:00
CTCaer 89795a4c96 bdk: se: use classic naming convention for XTS 2026-03-27 09:59:42 +01:00
CTCaer 61cb77a016 bdk: sdmmc: add defines for max block number 2026-03-27 09:54:06 +01:00
CTCaer ef0ab0b0f1 bdk: sdmmc: correct drive ohms comment 2026-03-27 09:51:47 +01:00
CTCaer fa2d7854d3 bdk: clock: streamline sdmmc func naming
Additionally, restored the pclock variable because of _clock_sdmmc_config_clock_host store order.
2026-03-27 09:51:46 +01:00
CTCaer 6cc3aee389 bdk: storage: small mmc refactoring
- Correct some Response Type names
- And use _def for mmc defines similarly to sd_def
2026-03-27 09:44:07 +01:00
CTCaer baea3b0265 bdk: use f_unmount instead of null f_mount 2026-03-27 09:07:45 +01:00
CTCaer 380c1dc9b2 bdk: refactor several comments and defines 2026-03-27 09:05:58 +01:00
Christoph Baumann bc42579f01 boot_storage_mount: only deinitialize storage, if it wasnt initialized to begin with 2025-10-09 12:36:35 +02:00
Christoph Baumann d6fda80057 remove prints, fix backup/restore 2025-05-21 12:31:17 +02:00
Christoph Baumann 9b95d026f3 support for file based and sd partition based emusd 2025-05-20 00:40:48 +02:00
Christoph Baumann 154ed594fc Support for hekate to boot hos with emusd/emmc base emummc 2025-05-14 02:24:33 +02:00
CTCaer 8978ba9e54 bdk: mc: fix warning for arbiter check 2025-05-13 16:27:15 +02:00
CTCaer 3412714402 bdk: sdmmc: add extention regs read/parse 2025-05-13 16:16:45 +02:00
CTCaer 4c4a63795e bdk: sdmmc: refactor error checking on rw
And also check if card status is ok after a read/write.
2025-05-13 16:11:13 +02:00
CTCaer 04dc8d2a86 bdk: sdmmc: check that cmd timed out if SDSC
Instead of assuming that, check it.
This fix will make SDUC not to be assumed as SDSC.
2025-05-13 16:10:59 +02:00
CTCaer ed4b638545 bdk: sdmmc: update unstuff_bits to use mod
Since unstuff_bits only supports 128bits, instead of subtracting the correct amount of bits with the offset array, use % 128.
2025-05-13 16:10:48 +02:00
CTCaer 1e54d538fd bdk: sdmmc: small refactor 2025-05-13 16:10:13 +02:00
CTCaer 20487cb8b9 bdk: sdmmc: check for out bounds access 2025-05-13 16:09:06 +02:00
Christoph Baumann 76508c74e8 file based emmc emummc, some other stuff 2025-05-12 01:24:01 +02:00
Christoph Baumann 0a7a004839 file based emummc on emmc 2025-05-08 01:48:04 +02:00
Christoph Baumann 7521055bec fix name 2025-05-07 17:29:04 +02:00
Christoph Baumann 4bfe1fe2cd add missing fsync 2025-05-07 17:27:58 +02:00
Christoph Baumann 6d09e65d85 fix emummc bis 2025-05-07 16:46:48 +02:00
Christoph Baumann e5ceb4a2de add mmc types for emummc, used only for emummc ums 2025-05-07 16:45:26 +02:00
Christoph Baumann 942e7defe3 add methods to access file based emummc 2025-05-07 16:42:36 +02:00
Christoph Baumann 39b74dd50d file based bis support 2025-05-07 12:17:13 +02:00
Christoph Baumann 241b0f2274 . 2025-05-06 12:37:46 +02:00
Christoph Baumann 7941a3d4d6 fix boot storage selection 2025-05-02 17:07:42 +02:00
Christoph Baumann 4f72660603 fuck 2025-05-02 01:43:51 +02:00
Christoph Baumann 2440318cb5 emmc bis storage 2025-04-30 11:29:06 +02:00
Christoph Baumann 28796b417b fix indicators, add emmc_mount, various fixes 2025-04-29 12:36:32 +02:00
Christoph Baumann 337f219ac6 Support for NYX to load from BOOT1/GPP/SD in that order, UMS option to mount whatever volume is selected as boot storage 2025-04-24 12:06:15 +02:00
Christoph Baumann 4e9e21b3b1 move boot_storage.h/.c to bdk/storage, check result of ensure_partition 2025-04-22 14:25:14 +02:00
Christoph Baumann 5798dcde0d Add support for reading boot files from FAT partition on BOOT1/GPP/SD in that order
Emummc config is read from boot partition, file based files still read from SD
2025-04-22 13:42:20 +02:00
CTCaer 9e239df39e bdk: constify various args 2024-10-04 21:45:57 +03:00
CTCaer 75a4a8ba1d bdk: sdmmc: remove higher power limits
UHS-I Cards force a max of 1.44W even if higher modes are selected.
This does not change functionality, so remove them as unused.
2024-06-10 13:37:28 +03:00
CTCaer a37b5c7841 bdk: sdmmc: no need to raise power limit for HS25 2024-06-10 13:24:07 +03:00
CTCaer 48334779a5 bdk: sdmmc: error reporting changes
- Correct transfer error message
- Add debug print for deinit
2024-06-08 17:41:11 +03:00
CTCaer 85eb5489fe bdk: pmc: rename io/det power defines 2024-06-08 12:16:07 +03:00