Hi rpdom,
I was looking into sdio host controller driver added in linux/drivers/mmc/host/bcm2835-sdhost.c.
I see that below are the register offsets used to send commands/responses to/from card:
#define SDCMD 0x00 /* Command to SD card - 16 R/W */
#define SDARG 0x04 /* Argument to SD card - 32 R/W */
#define SDTOUT 0x08 /* Start value for timeout counter - 32 R/W */
#define SDCDIV 0x0c /* Start value for clock divider - 11 R/W */
#define SDRSP0 0x10 /* SD card response (31:0) - 32 R */
#define SDRSP1 0x14 /* SD card response (63:32) - 32 R */
#define SDRSP2 0x18 /* SD card response (95:64) - 32 R */
#define SDRSP3 0x1c /* SD card response (127:96) - 32 R */
#define SDHSTS 0x20 /* SD host status - 11 R */
#define SDVDD 0x30 /* SD card power control - 1 R/W */
#define SDEDM 0x34 /* Emergency Debug Mode - 13 R/W */
#define SDHCFG 0x38 /* Host configuration - 2 R/W */
#define SDHBCT 0x3c /* Host byte count (debug) - 32 R/W */
#define SDDATA 0x40 /* Data to/from SD card - 32 R/W */
#define SDHBLC 0x50 /* Host block count (SDIO/SDHC) - 9 R/W */
I don't find explanation about the above registers at datasheets located at below link:
https://www.raspberrypi.org/documentati ... spberrypi/
Also, I don't find explanation at rpi-registers_master_rpi-registers.pdf.
It would be of great help if you can share SDIO host controller datasheet(or reference user-guide) which help in programming in any platfrom.
-pK