soc/intel/apollolake: make SPI support early stages
commit1ad9f946b6886f08c2cae8503d7efc3f569c1a93
authorAaron Durbin <adurbin@chromium.org>
Thu, 11 Aug 2016 22:09:57 +0000 (11 17:09 -0500)
committerMartin Roth <martinroth@google.com>
Fri, 19 Aug 2016 01:09:01 +0000 (19 03:09 +0200)
treeb82eeb41195ecdd0e94d4399ca069353f046bee3
parent504b8f2da211735e60b861106bf665a62091c36d
soc/intel/apollolake: make SPI support early stages

Using malloc() in SPI code is unnecessary as there's only
one SPI device that the SoC support code handles: boot
device. Therefore, use CAR to for the storage to work around
the current limiations of the SPI API which expects one to
return pointers to objects that are writable.

BUG=chrome-os-partner:56151

Change-Id: If4f5484e27d68b2dd1b17a281cf0b760086850a7
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16195
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/soc/intel/apollolake/spi.c