Searched refs:cpsdvsr (Results 1 – 2 of 2) sorted by relevance
1737 static inline u32 spi_rate(u32 rate, u16 cpsdvsr, u16 scr) in spi_rate() argument1739 return rate / (cpsdvsr * (1 + scr)); in spi_rate()1746 u16 cpsdvsr = CPSDVR_MIN, scr = SCR_MIN; in calculate_effective_freq() local1772 while ((cpsdvsr <= CPSDVR_MAX) && !found) { in calculate_effective_freq()1774 tmp = spi_rate(rate, cpsdvsr, scr); in calculate_effective_freq()1788 best_cpsdvsr = cpsdvsr; in calculate_effective_freq()1800 cpsdvsr += 2; in calculate_effective_freq()1807 clk_freq->cpsdvsr = (u8) (best_cpsdvsr & 0xFF); in calculate_effective_freq()1813 clk_freq->cpsdvsr, clk_freq->scr); in calculate_effective_freq()1852 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