On Wed, 2018-04-04 at 19:58 +0530, Jagan Teki wrote: > On Mon, Mar 26, 2018 at 4:38 PM, Eugeniy Paltsev > <eugeniy.palt...@synopsys.com> wrote: > > sst26wf flash series block protection implementation differs > > from other SST series, so add implementation for sst26wf > > lock/unlock/is_locked functions. [snip] > > > > +/* sst26wf series block protection implementation differs from other > > series */ > > +#if defined(CONFIG_SPI_FLASH_SST) > > + if (JEDEC_MFR(info) == SPI_FLASH_CFI_MFR_SST && > > + (JEDEC_ID(info) >> 8) == 0x26) { > > You can directly use JEDEC_ID that may cover id[0], id[1]? or does > this only for id[0]?
It is only for "JEDEC Device Type Byte" (byte 1) == 0x26; "Device ID Byte" (byte 2) can be any. But I can write it like (info->id[1] == 0x26) instead of ((JEDEC_ID(info) >> 8) == 0x26) -- Eugeniy Paltsev _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot