coreboot-kgpe-d16/src/drivers
Kyösti Mälkki 77d1280d0c SPI flash: Fix alignment checks in Page Program commands
There are two separate restrictions to take into account:

  Page Program command must not cross address boundaries defined by the
  flash part's page size.

  Total number of bytes for any command sent to flash part is restricted
  by the SPI controller capabilities.

Consider

  CONTROLLER_PAGE_LIMIT=64, page_size=256, offset=62, len=4.
  This write would be split at offset 64 for no reason.

Consider

  CONTROLLER_PAGE_LIMIT=40, page_size=256, offset=254, len=4.
  This write would not be split at page boundary as required.

We do not really hit the second case. Nevertheless, CONTROLLER_PAGE_LIMIT
is a misnomer for the maximum payload length supported by the SPI controller
and is removed in a followup.

Change-Id: I727f2e7de86a91b6a509460ff1f374acd006a0bc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/6162
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
2014-07-14 19:42:27 +02:00
..
ati drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
dec GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
elog spi: Remove unused parameters from spi_flash_probe and setup_spi_slave. 2014-07-05 11:36:11 +02:00
emulation qemu: Support textmode gfx init. 2014-03-03 23:14:04 +01:00
generic Drop drivers/generic/debug 2014-04-22 13:42:48 +02:00
i2c lenovo: Add lenovo_mainboard_partnumber. 2014-05-25 15:59:19 +02:00
ics Get rid of drivers class 2012-11-27 22:00:49 +01:00
intel drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
ipmi Get rid of drivers class 2012-11-27 22:00:49 +01:00
maxim max77802: update header 2013-12-21 13:29:42 +01:00
net drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
parade Pit: move parade writes to mainboard.c 2013-12-21 08:06:52 +01:00
pc80 drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
sil Get rid of drivers class 2012-11-27 22:00:49 +01:00
spi SPI flash: Fix alignment checks in Page Program commands 2014-07-14 19:42:27 +02:00
ti [2/2] tps65090: re-factor for coreboot 2013-04-10 17:34:19 +02:00
trident drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
uart console: Drop EARLY_CONSOLE option 2014-04-30 07:00:20 +02:00
usb drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
xpowers xpowers/axp209: Add helper to set voltages from devicetree config 2014-01-13 06:24:54 +01:00
Kconfig drivers: Drop GbE stub drivers 2014-05-20 13:46:35 +02:00
Makefile.inc drivers: Drop GbE stub drivers 2014-05-20 13:46:35 +02:00