Searched refs:cpsdvsr (Results 1 – 2 of 2) sorted by relevance
1731 static inline u32 spi_rate(u32 rate, u16 cpsdvsr, u16 scr) in spi_rate() argument1733 return rate / (cpsdvsr * (1 + scr)); in spi_rate()1740 u16 cpsdvsr = CPSDVR_MIN, scr = SCR_MIN; in calculate_effective_freq() local1766 while ((cpsdvsr <= CPSDVR_MAX) && !found) { in calculate_effective_freq()1768 tmp = spi_rate(rate, cpsdvsr, scr); in calculate_effective_freq()1782 best_cpsdvsr = cpsdvsr; in calculate_effective_freq()1794 cpsdvsr += 2; in calculate_effective_freq()1801 clk_freq->cpsdvsr = (u8) (best_cpsdvsr & 0xFF); in calculate_effective_freq()1807 clk_freq->cpsdvsr, clk_freq->scr); in calculate_effective_freq()1845 struct ssp_clock_params clk_freq = { .cpsdvsr = 0, .scr = 0}; in pl022_setup()[all …]
59 u8 cpsdvsr; /* value from 2 to 254 (even only!) */ member