eSDHC on the P2020

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eSDHC on the P2020

1,711 Views
virtualpaul
Contributor I

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.

0 Kudos
Reply
5 Replies

1,489 Views
morel_hunter1
Contributor II

I' ve used uboot as a reference for eSDHC on a PowerQUICC (MPC8536) project and have found this code a good start.

0 Kudos
Reply

1,489 Views
virtualpaul
Contributor I

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 \
 ...

 

0 Kudos
Reply

1,489 Views
morel_hunter1
Contributor II

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.

0 Kudos
Reply

1,489 Views
virtualpaul
Contributor I

I started to look at the code you suggested.

 

I also downloaded the SDHC specification.

 

This thing is huge!   :smileyfrustrated:

 

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.

0 Kudos
Reply

1,488 Views
virtualpaul
Contributor I

Thanks.  :smileyhappy:

I will have a look at those.

0 Kudos
Reply