drivers: sdhc: imx_usdhc: add support for SDIO RW extended command

Add support for CMD53 (read/write extended) to imx USDHC driver.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-08-15 18:05:46 -05:00 committed by Anas Nashif
parent 0fc49b6290
commit c28ffb4305

View file

@ -698,6 +698,14 @@ static int imx_usdhc_request(const struct device *dev, struct sdhc_command *cmd,
case SD_APP_SEND_NUM_WRITTEN_BLK:
host_data.rxData = data->data;
break;
case SDIO_RW_EXTENDED:
/* Use R/W bit to determine data direction */
if (host_cmd.argument & BIT(SDIO_CMD_ARG_RW_SHIFT)) {
host_data.txData = data->data;
} else {
host_data.rxData = data->data;
}
break;
default:
return -ENOTSUP;