Lines Matching refs:sscr0
346 uint32_t sscr0, sscr1, mode, clock, cs_delay; in intelspi_transfer() local
389 sscr0 = INTELSPI_READ(sc, INTELSPI_SSPREG_SSCR0); in intelspi_transfer()
390 sscr0 &= ~SSCR0_SSE; in intelspi_transfer()
391 INTELSPI_WRITE(sc, INTELSPI_SSPREG_SSCR0, sscr0); in intelspi_transfer()
396 sscr0 = INTELSPI_READ(sc, INTELSPI_SSPREG_SSCR0); in intelspi_transfer()
397 sscr0 &= ~SSCR0_SCR(0xfff); in intelspi_transfer()
399 sscr0 |= SSCR0_SCR(CLOCK_DIV_10MHZ); in intelspi_transfer()
401 sscr0 |= SSCR0_SCR(howmany(MAX_CLOCK_RATE, min(MAX_CLOCK_RATE, clock))); in intelspi_transfer()
402 INTELSPI_WRITE(sc, INTELSPI_SSPREG_SSCR0, sscr0); in intelspi_transfer()
418 sscr0 = INTELSPI_READ(sc, INTELSPI_SSPREG_SSCR0); in intelspi_transfer()
419 sscr0 |= SSCR0_SSE; in intelspi_transfer()
420 INTELSPI_WRITE(sc, INTELSPI_SSPREG_SSCR0, sscr0); in intelspi_transfer()