Home
last modified time | relevance | path

Searched refs:amd_spi_freq (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/spi/
H A Dspi-amd.c80 struct amd_spi_freq { struct
227 static const struct amd_spi_freq amd_spi_freq[] = { variable
246 for (i = 0; i < ARRAY_SIZE(amd_spi_freq); i++) in amd_set_spi_freq()
247 if (speed_hz >= amd_spi_freq[i].speed_hz) in amd_set_spi_freq()
250 if (amd_spi->speed_hz == amd_spi_freq[i].speed_hz) in amd_set_spi_freq()
253 amd_spi->speed_hz = amd_spi_freq[i].speed_hz; in amd_set_spi_freq()
255 alt_spd = (amd_spi_freq[i].enable_val << AMD_SPI_ALT_SPD_SHIFT) in amd_set_spi_freq()
264 if (amd_spi_freq[i].spd7_val) { in amd_set_spi_freq()
265 spd7_val = (amd_spi_freq[i].spd7_val << AMD_SPI_SPD7_SHIFT) in amd_set_spi_freq()