| Age | Commit message (Collapse) | Author |
|
Now the common probing is handled in spi_flash_probe.c
hence removed the unneeded flash drivers.
Signed-off-by: Jagannadha Sutradharudu Teki <[email protected]>
|
|
- line over 80 characters
- insert the expression in same line
Signed-off-by: Jagannadha Sutradharudu Teki <[email protected]>
|
|
Rather than each device having its own way to allocate a SPI flash
structure, use the new allocation function everywhere. This will make it
easier to extend the interface without breaking devices.
Signed-off-by: Simon Glass <[email protected]>
|
|
Looks like Shaohui Xie's patch got merged twice.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Analysis of the flash drivers shows that they all use 0x20 if the erase
size is 4KiB, or 0xd8 if it's larger. So with this info in hand, we can
unify all the erase functionality in one place.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
I imagine much of these constants are due to copy & pasting previous
drivers rather than an actual reflection of the hardware layout. At
any rate, inline the info that we don't care about externally as it
shrinks things nicely.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
In an effort to unify the spi flash drivers further, drop all the
unused and/or duplicate command defines.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Signed-off-by: Shaohui Xie <[email protected]>
|
|
Signed-off-by: Shaohui Xie <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
|
|
These defines are used in only one place, so just inline them.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Now that the common spi_flash structure tracks all the info that these
drivers need, kill off their local state indirection and use just what
the common code provides.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Once we add a new page_size field for write lengths, we can unify the
write methods for most of the spi flash drivers.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Every spi flash uses the same write enable command, so unify this in
the common code.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
No need for these to be exported as they are only accessed indirectly
via function pointers.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
This patch adds a new member to struct spi_flash (u16 sector_size)
and updates the spi flash drivers to start populating it.
This parameter can be used by spi flash commands that need to round
up units of operation to the flash's sector_size.
Having this number in one place also allows duplicated code to be
further collapsed into one common location (such as erase parameter
and the detected message).
Signed-off-by: Richard Retanubun <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Signed-off-by: Mike Frysinger <[email protected]>
|
|
All of the spi flash drivers implement the status register polling for
detecting the device ready state, so unify them all in a new helper
function -- spi_flash_wait_ready.
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Signed-off-by: Chong Huang <[email protected]>
Signed-off-by: Haitao Zhang <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
|