Re: [RESEND PATCH v2 2/3] mtd: spi-nor: parse SFDP Sector Map Parameter Table

2018-09-07 Thread Tudor Ambarus
On 09/03/2018 08:40 PM, Marek Vasut wrote: > On 08/27/2018 12:26 PM, Tudor Ambarus wrote: > [...] >> +static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 >> *smpt) >> +{ >> +const u32 *ret = NULL; >> +u32 i, addr; >> +int err; >> +u8 addr_width, read_opcode,

Re: [RESEND PATCH v2 2/3] mtd: spi-nor: parse SFDP Sector Map Parameter Table

2018-09-03 Thread Marek Vasut
On 08/27/2018 12:26 PM, Tudor Ambarus wrote: [...] > +static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 > *smpt) > +{ > + const u32 *ret = NULL; > + u32 i, addr; > + int err; > + u8 addr_width, read_opcode, read_dummy; > + u8 read_data_mask, data_byte, map

[RESEND PATCH v2 2/3] mtd: spi-nor: parse SFDP Sector Map Parameter Table

2018-08-27 Thread Tudor Ambarus
Add support for the SFDP (JESD216B) Sector Map Parameter Table. This table is optional, but when available, we parse it to identify the location and size of sectors within the main data array of the flash memory device and to identify which Erase Types are supported by each sector. Signed-off-by: