Added SD card in disk subsystem

Added SD card in disk subsystem and other update. 
- added function to single and multiple write/read
- fix function "set_SD_clock"
- transferring a simple description of the controller registers to another file
- frequency increase to 25 MHz
TODO:
 - frequency increase to 50 MHz
 - switch card in 4 bit mode
 - fix mask interrupt
 - add ADMA creat description table
This commit is contained in:
Doczom
2023-02-17 02:55:36 +05:00
committed by GitHub
parent 3ad71398af
commit 870202a99f
6 changed files with 803 additions and 671 deletions

View File

@@ -3,6 +3,9 @@
; for ADMA2
; edi = virtual addr, edx = block count
; block size = 512
; OUT: edi = phys addr table
proc create_adma2_table
ret
@@ -31,15 +34,15 @@ endp
; WARNING!!! buffer align 9
; 4096 = 0..4 sectors + 1022*4 sectors + 0..4 sectors
proc create_mem_table
;proc create_mem_table
;
; ret
;endp
ret
endp
proc destruct_mem_table
ret
endp
;proc destruct_mem_table
;
; ret
;endp
; SDMA
; send command