Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
Dcore.c795 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_sr_and_check() local
800 ret = spi_nor_read_cr(nor, &sr_cr[1]); in spi_nor_write_16bit_sr_and_check()
819 sr_cr[1] = SR2_QUAD_EN_BIT1; in spi_nor_write_16bit_sr_and_check()
821 sr_cr[1] = 0; in spi_nor_write_16bit_sr_and_check()
824 sr_cr[0] = sr1; in spi_nor_write_16bit_sr_and_check()
826 ret = spi_nor_write_sr(nor, sr_cr, 2); in spi_nor_write_16bit_sr_and_check()
830 ret = spi_nor_read_sr(nor, sr_cr); in spi_nor_write_16bit_sr_and_check()
834 if (sr1 != sr_cr[0]) { in spi_nor_write_16bit_sr_and_check()
842 cr_written = sr_cr[1]; in spi_nor_write_16bit_sr_and_check()
844 ret = spi_nor_read_cr(nor, &sr_cr[1]); in spi_nor_write_16bit_sr_and_check()
[all …]
/kernel/linux/patches/linux-4.19/hispark_taurus_patch/
Dhispark_taurus.patch332734 u8 sr_cr[2] = {0, CR_QUAD_EN_SPAN};
332745 + sr_cr[1] = (regval & 0xff) | CR_QUAD_EN_SPAN;
332747 + sr_cr[0] = regval & 0xff;
332750 ret = write_sr_cr(nor, sr_cr);
332844 + u8 sr_cr[2] = {0};
332857 + sr_cr[0] = val & 0xff;
332858 + sr_cr[1] = val >> 8;
332860 + ret = write_sr_cr(nor, sr_cr);