coreboot/src/drivers/spi
Gabe Black 93d9f92cfb spi: Change spi_xfer to work in units of bytes instead of bits.
Whenever spi_xfer is called and whenver it's implemented, the natural unit for
the amount of data being transfered is bytes. The API expected things to be
expressed in bits, however, which led to a lot of multiplying and dividing by
eight, and checkes to make sure things were multiples of eight. All of that
can now be removed.

BUG=None
TEST=Built and booted on link, falco, peach_pit and nyan and looked for SPI
errors in the firmware log. Built for rambi.
BRANCH=None

Change-Id: I02365bdb6960a35def7be7a0cd1aa0a2cc09392f
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/192049
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
[km: cherry-pick from chromium]
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/6175
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2014-07-05 11:36:20 +02:00
..
adesto.c drivers/spi: Add support for adesto SPI flash parts 2014-03-12 01:03:31 +01:00
amic.c src/drivers/spi: introduce AMIC support 2014-02-17 10:21:48 +01:00
eon.c drivers/spi/eon: Add EN25Q64 2014-01-12 18:07:02 +01:00
gigadevice.c Claim the SPI bus before writes if the IMC ROM is present 2012-12-12 22:34:16 +01:00
Kconfig spi flash: Organise options list 2014-07-05 11:35:53 +02:00
macronix.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
Makefile.inc drivers/spi: Add support for adesto SPI flash parts 2014-03-12 01:03:31 +01:00
spansion.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
spi_flash.c spi: Change spi_xfer to work in units of bytes instead of bits. 2014-07-05 11:36:20 +02:00
spi_flash_internal.h drivers/spi: Add support for adesto SPI flash parts 2014-03-12 01:03:31 +01:00
sst.c drivers/spi/sst.c: Remove unused func to_sst_spi_flash() 2014-05-18 18:05:42 +02:00
stmicro.c SPI: Support STMicro partial page write 2013-08-23 05:07:11 +02:00
winbond.c spi: Add support for Winbod W25Q64DW 2014-01-28 22:24:06 +01:00