Searched refs:sr_cr (Results 1 – 1 of 1) sorted by relevance
162 static int spi_nor_write_sr_cr(uint8_t *sr_cr) in spi_nor_write_sr_cr() argument171 ret = spi_nor_reg(SPI_NOR_OP_WRSR, sr_cr, 2, SPI_MEM_DATA_OUT); in spi_nor_write_sr_cr()186 uint8_t sr_cr[2]; in spi_nor_quad_enable() local189 ret = spi_nor_read_cr(&sr_cr[1]); in spi_nor_quad_enable()194 if ((sr_cr[1] & CR_QUAD_EN_SPAN) != 0U) { in spi_nor_quad_enable()198 sr_cr[1] |= CR_QUAD_EN_SPAN; in spi_nor_quad_enable()199 ret = spi_nor_read_sr(&sr_cr[0]); in spi_nor_quad_enable()204 ret = spi_nor_write_sr_cr(sr_cr); in spi_nor_quad_enable()209 ret = spi_nor_read_cr(&sr_cr[1]); in spi_nor_quad_enable()210 if ((ret != 0) || ((sr_cr[1] & CR_QUAD_EN_SPAN) == 0U)) { in spi_nor_quad_enable()