coreboot/src
Julius Werner 4783db2cf1 spi: Add helper functions for bit-banging
Sometimes when bringing up a new board it can take a while until you
have all the peripheral drivers ready. For those cases it is nice to be
able to bitbang certain protocols so that you can already get further in
the boot flow while those drivers are still being worked on. We already
have this support for I2C, but it would be nice to have something for
SPI as well, since without SPI you're not going to boot very far.

This patch adds a couple of helper functions that platforms can use to
implement bit-banging SPI with minimal effort. It also adds a proof of
concept implementation using the RK3399.

Change-Id: Ie3551f51cc9a9f8bf3a47fd5cea6d9c064da8a62
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/25394
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-04-03 00:34:52 +00:00
..
acpi arch/x86: Add common AMD ACPI hardware definitions 2017-11-10 19:15:38 +00:00
arch x86: Increase time out for parking APs to 250ms 2018-04-01 20:01:34 +00:00
commonlib timestamps: Add timestamps around the vbios load & init 2018-03-08 18:14:54 +00:00
console console: only allow console messages after initialization 2018-03-02 15:22:24 +00:00
cpu x86: Increase time out for parking APs to 250ms 2018-04-01 20:01:34 +00:00
device src/device/dram/ddr2: Fix supported burst lengths 2018-03-14 11:17:42 +00:00
drivers spi: Add helper functions for bit-banging 2018-04-03 00:34:52 +00:00
ec chromeec: fix an uninitialized local variable 2018-04-01 19:50:30 +00:00
include spi: Add helper functions for bit-banging 2018-04-03 00:34:52 +00:00
lib lib/lzma: Respect dstn argument 2018-03-26 10:19:11 +00:00
mainboard mb/google/octopus: Fix Trackpad interrupt GPIO config 2018-04-02 21:40:24 +00:00
northbridge nb/intel/gm45: Allocate a 8M TSEG region 2018-03-28 06:49:19 +00:00
security vboot: Update to most recent GBB flag usage 2018-03-26 22:46:44 +00:00
soc spi: Add helper functions for bit-banging 2018-04-03 00:34:52 +00:00
southbridge sb/intel/common: Add common code for SMM setup and smihandler 2018-03-28 06:49:08 +00:00
superio Intel i3100 boards & chips: Remove - using LATE_CBMEM_INIT 2018-01-15 23:25:12 +00:00
vendorcode vendorcode/intel: Update FSP Header files per v2.0.0 2018-03-23 01:23:14 +00:00
Kconfig Timestamps: Add option to print timestamps to debug console 2018-03-09 17:16:21 +00:00