Lines Matching full:io
14 static struct sdhc_io io; variable
20 /* Prepare IO settings for card */
28 io.clock = props.f_min; in sdhc_power_on()
29 io.bus_mode = SDHC_BUSMODE_PUSHPULL; in sdhc_power_on()
30 io.power_mode = SDHC_POWER_ON; in sdhc_power_on()
31 io.bus_width = SDHC_BUS_WIDTH1BIT; in sdhc_power_on()
32 io.timing = SDHC_TIMING_LEGACY; in sdhc_power_on()
33 io.signal_voltage = SD_VOL_3_3_V; in sdhc_power_on()
35 ret = sdhc_set_io(sdhc_dev, &io); in sdhc_power_on()
36 zassert_equal(ret, 0, "Setting io configuration failed"); in sdhc_power_on()
84 io.clock = props.f_min; in ZTEST()
85 io.bus_mode = SDHC_BUSMODE_PUSHPULL; in ZTEST()
86 io.power_mode = SDHC_POWER_ON; in ZTEST()
87 io.bus_width = SDHC_BUS_WIDTH1BIT; in ZTEST()
88 io.timing = SDHC_TIMING_LEGACY; in ZTEST()
89 io.signal_voltage = SD_VOL_3_3_V; in ZTEST()
91 ret = sdhc_set_io(sdhc_dev, &io); in ZTEST()
92 zassert_equal(ret, 0, "IO configuration failed"); in ZTEST()
94 /* Verify that IO configuration fails with high frequency */ in ZTEST()
98 io.clock = props.f_max + SDHC_FREQUENCY_SLIP; in ZTEST()
99 ret = sdhc_set_io(sdhc_dev, &io); in ZTEST()
100 zassert_not_equal(ret, 0, "Invalid io configuration should not succeed"); in ZTEST()
153 io.power_mode = SDHC_POWER_OFF; in ZTEST()
154 ret = sdhc_set_io(sdhc_dev, &io); in ZTEST()
155 zassert_equal(ret, 0, "Setting io configuration failed"); in ZTEST()
157 io.power_mode = SDHC_POWER_ON; in ZTEST()
158 ret = sdhc_set_io(sdhc_dev, &io); in ZTEST()
159 zassert_equal(ret, 0, "Setting io configuration failed"); in ZTEST()