[flashrom] [PATCH] Convert chips to block erasers: SST

Michael Karcher flashrom at mkarcher.dialup.fu-berlin.de
Wed Jan 20 14:53:36 CET 2010


Am Mittwoch, den 20.01.2010, 05:19 -0800 schrieb Sean Nelson:
> -static int erase_sector_49lfxxxc(struct flashchip *flash, unsigned long address, int sector_size)
> +int erase_sector_49lfxxxc(struct flashchip *flash, unsigned int address, unsigned int sector_size)
>  {
>         unsigned char status;
>         chipaddr bios = flash->virtual_memory;
>  
> +       unlock_block_49lfxxxc(flash, (address & 0xffff0000), 0);
> +
because of non-uniform block size, this is not going to work in the top
block.

Regards,
  Michael Karcher.





More information about the flashrom mailing list