coreboot/src
Marc Jones 2a58ecde78 Add new finalize functions for devices and chips
Many chipset devices require additional configuration after
device init. It is not uncommmon for a device early in the devicetree
list to need to change a setting after a device later in the tree does
PCI init. A final function call has been added to device ops to handle
this case. It is called prior to coreboot table setup.

Another problem that is often seen is that the chipset or mainboard
need to do some final cleanup just before loading the OS. The chip
finalize has been added for this case. It is call after all coreboot
tables are setup and the payload is ready to be called.

Similar functionality could be implemented with the hardwaremain
states, but those don't fit well in the device tree function pointer
structure and should be used sparingly.

Change-Id: Ib37cce104ae41ec225a8502942d85e54d99ea75f
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-on: http://review.coreboot.org/4012
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-11-08 19:55:17 +01:00
..
arch arch/x86/Makefile.inc: Pass $(AS) and $(CPP) to SeaBIOS 2013-10-17 01:59:50 +02:00
console usbdebug: Fix boards without EARLY_CBMEM_INIT 2013-10-22 21:35:05 +02:00
cpu vendorcode/amd/agesa/f16kb: Update Kabini PI from v1.0.0.0 to v1.0.0.7 2013-10-15 05:01:11 +02:00
device Add new finalize functions for devices and chips 2013-11-08 19:55:17 +01:00
drivers Rename cpu/x86/car.h to arch/early_variables.h 2013-10-13 12:47:05 +02:00
ec ec/kontron/it8516e: Add sanity checks for values from nvram 2013-07-29 23:22:12 +02:00
include Add new finalize functions for devices and chips 2013-11-08 19:55:17 +01:00
lib Add new finalize functions for devices and chips 2013-11-08 19:55:17 +01:00
mainboard winent-mb6047: initial WIN Enterprises MB-60470 board port 2013-10-19 16:10:56 +02:00
northbridge northbridge/intel/i945/raminit.c: Remove set but unused variable reg16 2013-11-05 21:35:13 +01:00
southbridge southbridge/via/vt8237r/ctrl.c: Remove set but unused variable regm3 2013-11-05 21:33:38 +01:00
superio w83627hf/acpi: Move floppy drive enumeration from _INI into _FDE. 2013-08-15 21:30:53 +02:00
vendorcode vendorcode/amd/agesa/f16kb: Update Kabini PI from v1.0.0.0 to v1.0.0.7 2013-10-15 05:01:11 +02:00
Kconfig Have option of timestamps, CBMEM console and usbdebug for most boards 2013-10-15 13:15:18 +02:00