I am working on a P2020 (embedded) and would like to use the onboard eSDHC.
I am wondering if there are any driver I could use as a starting point to port it.
I downloaded the linux P2020RDB LTIB and I found a lot of source code related to SDHC but I am not too sure which one is compatible with it.
Is there some device ID or number that would make it more clear.
I' ve used uboot as a reference for eSDHC on a PowerQUICC (MPC8536) project and have found this code a good start.
Thanks. I found a reference to 'P2020DS_SDCARD' in the MAKEALL file but can't find that 'P2020DS_SDCARD' anywhere else on the DVD.
It is in:
LIST_85xx=" \
ATUM8548 \
...
P2020DS_SDCARD \
...
I'm guessing that the eSDHC module is that same in the 8536 as the 2020. For embedded work, the files fsl_esdhc.c, mmc_api.c, mmc.c, part,c provide the greatest wealth of reference from u-boot. Good luck.
I started to look at the code you suggested.
I also downloaded the SDHC specification.
This thing is huge!
I was only looking for a tiny piece of code to be able to read and write files on a SD card so I am wondering what is the bare minimum to do this.
Thanks.
I will have a look at those.