diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2014-11-11 07:17:24 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-20 16:02:11 +0100 |
commit | 032d4d258030c0b25325d2906c2a97b59f82bf40 (patch) | |
tree | b7aa96c0e9b9a96ad7d0fa7e9b498ebdc3774883 /payloads/libpayload/curses/keyboard.c | |
parent | 93b9cb7f69381734da5ad9bdabf1c8b746a87a7f (diff) |
spi: do not use malloc in Winbond driver
When the driver is included in bootblock, malloc() is not available.
Come to think of it, it is perfectly fine to use a statically
allocated structure for the SPI device descriptor - coreboot is
unlikely to require concurrent support of multiple SPI devices of the
same kind.
BRANCH=none
BUG=chrome-os-partner:31438
TEST=bootblock on the FPGA board recognizes the installed Winbond
device:
coreboot-4.0 bootblock Tue Nov 11 07:27:24 PST 2014 starting...
SF: Detected W25Q16 with page size 1000, total 200000
Change-Id: Iea1936a219d38848580a10f75eb8bbcab17e6507
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 0b4082442aa526d387a80cb5872d78670e6b468b
Original-Change-Id: Iaa69d610ef18e69b1ae5ade2d958f9fe1595a723
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/228959
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8771
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'payloads/libpayload/curses/keyboard.c')
0 files changed, 0 insertions, 0 deletions