coreboot/src/include
David Hendricks 9acbd6ff99 elog: Do not attempt to init SPI
This severs a dependency the eventlog code has on initializing
chipset/SoC SPI controller. Currently elog_init() calls spi_init()
as a catch-all. This worked for x86 since the SPI controller is only
used for one thing on existing platforms. As we add eventlogging
support to non-x86 platforms we need to consider the more generalized
case where the assumptions about how SPI works on x86 are no longer
valid.

BUG=none
BRANCH=none
Signed-off-by: David Hendricks <dhendrix@chromium.org>
TEST=built and booted on Link, Beltino and Rambi. See below for
"mosys eventlog list" output on Link showing boot and suspend/resume
events (including lid close/open) added successfully.

localhost ~ # mosys eventlog list
0 | 2014-04-14 13:52:44 | Log area cleared | 4096
1 | 2014-04-14 13:52:44 | System boot | 50
2 | 2014-04-14 13:52:44 | EC Event | Power Button
3 | 2014-04-14 13:52:44 | SUS Power Fail
4 | 2014-04-14 13:52:44 | System Reset
5 | 2014-04-14 13:52:44 | ACPI Wake | S5
6 | 2014-04-14 13:53:25 | ACPI Enter | S3
7 | 2014-04-14 13:53:35 | ACPI Wake | S3
8 | 2014-04-14 13:53:35 | Wake Source | RTC Alarm | 0
9 | 2014-04-14 13:53:49 | ACPI Enter | S3
10 | 2014-04-14 13:54:00 | EC Event | Lid Open
11 | 2014-04-14 13:54:00 | ACPI Wake | S3
12 | 2014-04-14 13:54:00 | Wake Source | GPIO | 15

Original-Change-Id: I26e25c0a856f7b8db5ab6b8e7e1acae291d2eadc
Original-Reviewed-on: https://chromium-review.googlesource.com/194526
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Original-Commit-Queue: David Hendricks <dhendrix@chromium.org>
Original-Tested-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit 2971d20b6e)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: Ia5f2913fd8e4fee6e741e6d1e39d32bb86525cb3
Reviewed-on: http://review.coreboot.org/7831
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2014-12-17 02:12:03 +01:00
..
boot Export board-status info. 2014-11-26 23:18:47 +01:00
console CBMEM console: Fix boards with BROKEN_CAR_MIGRATE 2014-12-16 20:41:02 +01:00
cpu Drop GX1, CS5330 and related boards 2014-12-16 21:17:36 +01:00
device i2c: Replace the i2c API. 2014-12-16 00:02:43 +01:00
pc80 cmos: Rename the CMOS related functions. 2014-10-22 03:55:14 +02:00
smp SMP: Add arch-agnostic boot_cpu() 2014-02-11 21:55:30 +01:00
superio superio/common/conf_mode.c: Introduce 'new' enter/exit keys for SIO's 2014-11-01 21:27:50 +01:00
assert.h gen: Add "assert" in assert.h. 2014-10-07 23:38:08 +02:00
bootmem.h coreboot: introduce notion of bootmem for memory map at boot 2014-03-03 21:47:27 +01:00
bootmode.h Declare get_write_protect_state() without ChromeOS 2014-05-08 16:25:30 +02:00
bootstate.h bootstate: don't use header in romstage code 2014-08-16 08:35:03 +02:00
cbfs.h coreboot: unify infrastructure for loading payloads 2014-03-03 19:48:02 +01:00
cbfs_core.h ARM: Generalize armv7 as arm. 2014-09-08 18:59:23 +02:00
cbmem.h Move nehalem/sandy/ivy to per-device acpi 2014-09-11 21:53:33 +02:00
delay.h Get rid of HAVE_INIT_TIMER config option 2014-04-26 13:25:28 +02:00
edid.h edid: remove float use 2014-12-16 21:31:35 +01:00
elog.h elog: Do not attempt to init SPI 2014-12-17 02:12:03 +01:00
endian.h Extend CBFS to support arbitrary ROM source media. 2013-01-30 17:58:32 +01:00
fallback.h Make set_boot_successful depend on PC80_SYSTEM 2012-11-30 21:33:35 +01:00
halt.h Introduce halt() 2014-11-30 12:20:05 +01:00
inttypes.h x86: provide more C standard environment 2013-03-20 04:20:25 +01:00
ip_checksum.h Drop prototype guarding for romcc 2013-05-10 00:06:46 +02:00
kconfig.h Add config_enabled() from Linux 2012-05-08 00:36:09 +02:00
lib.h lib/hexdump: Use size_t for length parameter of hexdump32() 2014-05-05 08:59:05 +02:00
memrange.h mtrr: only add prefetchable resources as WRCOMB for VGA devices 2014-02-09 22:08:53 +01:00
option.h option: Add arch-agnostic get_option() 2014-03-04 15:23:10 +01:00
payload_loader.h x86: add MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING option 2014-03-07 15:30:27 +01:00
ramstage_cache.h ramstage_cache: allow ramstage usage add valid helper 2014-05-10 06:31:45 +02:00
ramstage_loader.h coreboot: infrastructure for different ramstage loaders 2014-02-15 18:39:29 +01:00
reg_script.h reg_script: Fix bug in IO macros 2014-10-01 17:26:26 +02:00
reset.h Drop prototype guarding for romcc 2013-05-10 00:06:46 +02:00
rmodule-defs.h rmodules: use rmodtool to create rmodules 2014-03-20 23:55:55 +01:00
rmodule.h rmodules: use rmodtool to create rmodules 2014-03-20 23:55:55 +01:00
romstage_handoff.h coreboot: infrastructure for different ramstage loaders 2014-02-15 18:39:29 +01:00
rules.h build rules: Identify build stage with simple variables 2014-04-18 16:40:32 +02:00
sdram_mode.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
smbios.h intel/gma: consolidate vbt code 2014-09-13 14:27:03 +02:00
spd.h spd.h: Add all known SPD_MEMORY_TYPE definitions. 2013-06-03 22:35:21 +02:00
spd_cache.h gizmosphere/gizmo: Move support of SPD data in CBFS 2014-07-05 11:41:52 +02:00
spd_ddr2.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
spi-generic.h spi: Eliminate the spi_cs_activate and spi_cs_deactivate functions. 2014-12-09 20:32:18 +01:00
spi_flash.h SPI: Split writes using spi_crop_chunk() 2014-07-14 19:42:49 +02:00
stddef.h Add check_member macro to allow clean and easy struct offset checking 2014-09-22 18:42:20 +02:00
stdlib.h tegra124: A couple clock fixes. 2014-12-15 19:57:49 +01:00
string.h Replace includes of build.h with version.h 2014-11-20 07:28:37 +01:00
swab.h include: Fix spelling 2013-07-11 22:36:19 +02:00
thread.h Possible thread stack implementation. 2014-08-07 23:55:15 +02:00
timer.h timer: Add functions to initialize absolute timer structures. 2014-07-31 18:32:52 +02:00
timestamp.h Intel FSP: add a shared set of functions for the FSP 2014-05-09 21:35:56 +02:00
tpm.h tpm: Clean up I2C TPM driver 2014-09-10 19:37:49 +02:00
trace.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
types.h pc80/keyboard: Ignore interface test failure. 2014-01-26 17:39:42 +01:00
vbe.h intel/gma: Clarify code and use dedicated init for Google Peppy 2014-08-25 22:36:03 +02:00
version.h Export board-status info. 2014-11-26 23:18:47 +01:00
watchdog.h watchdog.h: Fix compile time error on disabling watchdog handling 2013-03-12 12:06:43 +01:00