Device driver for SD card connected using a custom bus - Platform driver or block driver?

418 Views Asked by At

I have to write a driver for a custom chip, to interface it with an SD card using SD protocol, which will have filesystems on it. Now the obvious answer is that, since its an SD card(a block device), I will have to go with Block device driver development.

One of the answers from a previous question suggest that "

Platform devices are inherently not discoverable, i.e. the hardware cannot say "Hey! I'm present!" to the software.

By reading from the SD card internal registers, I can make the SD card identify itself, so does that mean SD card cannot be treated as a Platform device?

However, since we are having our own bus for connecting this SD card host controller to the CPU, would I have to write a platform driver instead of a block one?

I am new to Linux device drivers, help me out here so I can get this thing done right!

0

There are 0 best solutions below