0

I have an sdio device made for linux and windows that I need to power cycle. Of course I can manually remove and reinsert it to achieve this, but that is highly inconvenient and I would prefer some way to fully automate the procedure. How would I do this? Is there some obscure cmd line utilities? C library? Does this functionality have to be built into the driver? Is it even possible?

I've been reading about mmc on linux, haven't been able to find much yet on the windows side. Everything so far seems very complicated, vague, and opaque as opposed to say USB which has many ways to achieve this feat including the wonderful libftdi. At this point it seems like it might be impossible for sdio, but that seems weird to me.

2
  • 1
    If this is a generic question about Linux and Windows SDIO, then this is not really an [embedded] tag question. If you are not writing software that executes on an embedded system, then the question is off-topic and mis-tagged.
    – Clifford
    Sep 24, 2021 at 12:39
  • implementing this on the embedded side is on the table, although would require more effort and would be less preferred to a host side solution Sep 24, 2021 at 18:41

1 Answer 1

1

Not in any generic way. The SDIO interface has a VDD power supply pin, a specific implementation might provide external power control. If the board is your own design, then it is for you to implement that as in this example (though do read the question and answer, as the design shown is flawed). You would then control the power via a GPIO.

The SDIO specification does provide a "reset" command that may achieve what you need. There are various types of reset:

  • CMD0 - GO_IDLE_STATE
  • CMD15 - GO_INACTIVE_STATE
  • CMD52 (for I/O not memory cards) - Write 1 to CCCR I/O Abort RES bit

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.