UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor yelang1124
Visitor
2,520 Views
Registered: ‎05-10-2017

How to achieve the SD card detection? and i can‘t see the code where use the xlnx,has-cd = <0x1>; at kernel source code

for sd card detection , from  linux-kernel/Documentation/devicetree/bindings/mmc/mmc.txt  , i see the cd-gpios and wp-gpios can setting the gpio to use card-detect .  but for zedboard devicetree i can't find this, only see xlnx,has-cd = <0x1>; then i grep "xlnx,has-cd" at linux-kerbnel source code , i get noting no code use this,why?

 

my question is:

 

1、for zedboard sch , i can see sd-cd pin is mio47 , why i can't find cd-gpios = <&gpio0 47 0> in the zedboard dt.

2、what's mean xlnx,has-cd = <0x1>;  , Where's the code for using this? 

 

thanks very much for reply.

 

0 Kudos
1 Reply
Moderator
Moderator
2,480 Views
Registered: ‎11-09-2015

Re: How to achieve the SD card detection? and i can‘t see the code where use the xlnx,has-cd = <0x1>; at kernel source code

Hi @yelang1124,

 

You are looking for to detect the SD card before or after the kernel boot?

 

If before, just follow the tutorial about how to build a Linux system on the wiki page (link

 

Kind Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos