add mode selection 

add SD_SetDeviceMode() and code for switching SDIO into DMA mode