drivers: sdhc: imx_usdhc: explicitly set host_io fields
Explicitly set host_io fields, instead of using memset(). This way the fields should have values that are defined in the enum types for each field. Fixes #63130 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
3732aae0e0
commit
0b365359dc
|
@ -1031,7 +1031,15 @@ static int imx_usdhc_init(const struct device *dev)
|
|||
}
|
||||
data->dev = dev;
|
||||
k_mutex_init(&data->access_mutex);
|
||||
memset(&data->host_io, 0, sizeof(data->host_io));
|
||||
/* Setup initial host IO values */
|
||||
data->host_io.clock = 0;
|
||||
data->host_io.bus_mode = SDHC_BUSMODE_PUSHPULL;
|
||||
data->host_io.power_mode = SDHC_POWER_OFF;
|
||||
data->host_io.bus_width = SDHC_BUS_WIDTH1BIT;
|
||||
data->host_io.timing = SDHC_TIMING_LEGACY;
|
||||
data->host_io.driver_type = SD_DRIVER_TYPE_B;
|
||||
data->host_io.signal_voltage = SD_VOL_3_3_V;
|
||||
|
||||
return k_sem_init(&data->transfer_sem, 0, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue