aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorAngus Clark <[email protected]>2014-03-26 16:39:18 +0000
committerBrian Norris <[email protected]>2014-04-14 11:22:59 -0700
commit5d0bddab397ff705d66e6f87b61ea8abc3c62948 (patch)
tree0ba81ad4a2aa8dce22d41364751df2da8886e9f6 /lib/mpi/mpi-bit.c
parentcc6668637ebed620eaafc807802f3d85b193f534 (diff)
mtd: st_spi_fsm: Refactor status register operations
This patch refactors the fsm_read_status() and fsm_write_status() code to support 1 or 2 byte operations, with a specified command. This allows us to remove device/register specific code, such as the N25Q fsm_wrvcr() function. The 'QE' configuration code is updated accordingly, with minor tweaks to ensure the register values are only written if actually required. One notable change in this area is that the 'W25Q_STATUS_QE' bit-field is now defined with respect to the 'SR2' register, rather than the combined 'SR1+SR2' register which is only used for write operations. Signed-off-by: Angus Clark <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions