Updated after investigation:
I understood the driver's structure. If I figured out right, there's SD card partial initialization (lines 58-80) in c3_xmem. Why it's there?
And another question: you said sd_cache isn't supported anymore, but its ported version (without cache logic, as you explained) still in the current master branch (sd_xmem.spin). Is it deprecated?
I'm asking these questions just to make sure I can rely on some established code as a reference.
Updated after investigation:
I understood the driver's structure. If I figured out right, there's SD card partial initialization (lines 58-80) in c3_xmem. Why it's there?
And another question: you said sd_cache isn't supported anymore, but its ported version (without cache logic, as you explained) still in the current master branch (sd_xmem.spin). Is it deprecated?
I'm asking these questions just to make sure I can rely on some established code as a reference.
I don't think the sd_xmem.spin driver works. Or, if it does, it won't work for both the SD cache and the SD filesystem. I'll have to check. Also, the C3 driver initializes the SD card because you have to put the SD card into SPI mode to avoid having it interfere with using the same SPI bus to talk to the SPI flash and SRAM chips.
Also, the C3 driver initializes the SD card because you have to put the SD card into SPI mode to avoid having it interfere with using the same SPI bus to talk to the SPI flash and SRAM chips.
Got it. Just forgot all of them are on a single bus.
Comments
Updated after investigation:
I understood the driver's structure. If I figured out right, there's SD card partial initialization (lines 58-80) in c3_xmem. Why it's there?
And another question: you said sd_cache isn't supported anymore, but its ported version (without cache logic, as you explained) still in the current master branch (sd_xmem.spin). Is it deprecated?
I'm asking these questions just to make sure I can rely on some established code as a reference.
Got it. Just forgot all of them are on a single bus.