From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugeniy Paltsev Date: Thu, 5 Apr 2018 12:40:19 +0000 Subject: [U-Boot] [PATCH v2 1/2] SPI Flash: add support of sst26wf* flash series In-Reply-To: References: <20180326110823.28921-1-Eugeniy.Paltsev@synopsys.com> <20180326110823.28921-2-Eugeniy.Paltsev@synopsys.com> Message-ID: <1522932018.2830.8.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 2018-04-04 at 19:58 +0530, Jagan Teki wrote: > On Mon, Mar 26, 2018 at 4:38 PM, Eugeniy Paltsev > 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