u-boot-brain/drivers
Vadim Bendebury 98ab435f73 x86: Add CBMEM console driver for coreboot
This patch builds upon the recently introduced CBMEM console
feature of coreboot.

CBMEM console uses a memry area allocated by coreboot to store
the console output. The memory area has a certain structure,
which allows to determine where the buffer is, the buffer size
and the location of the pointer in the buffer. This allows
different phases of the firmware (rom based coreboot, ram based
coreboot, u-boot after relocation with this change) to keep
adding text to the same buffer.

Note that this patch introduces a new console driver and adds the
driver to the list of drivers to be used for console output, i.e.
it engages only after u-boot relocates. Usiong CBMEM console for
capturing the pre-relocation console output will be done under a
separate change.

>From Linux, run the cbmem.py utility (which is a part of the coreboot
package) to see the output, e.g.:

vvvvvvvvvvvvvvvvv
SCSI:  AHCI 0001.0300 32 slots 6 ports ? Gbps 0xf impl SATA mode
flags: 64bit ilck stag led pmp pio
...
Magic signature found
Kernel command line: "cros_secure  quiet loglevel=1 console=tty2...
^^^^^^^^^^^^^^^^^

Note that the entire u-boot output fits into the buffer only if
the coreboot log level is reduced from the most verbose. Ether
the buffer size will have to be increased, or the coreboot
verbosity permanently reduced.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
2012-11-30 13:44:03 -08:00
..
bios_emulator Add abs() macro to return absolute value 2012-05-15 08:31:37 +02:00
block drivers/block/: sparse fixes 2012-11-04 11:00:37 -07:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
dfu dfu:usb:fix: Read the "filesize" environment variable only when file read 2012-09-21 00:05:00 +02:00
dma MX28: DMA: Prolong the DMA timeout 2012-09-01 14:58:29 +02:00
fpga FPGA: Cyclon II: Correctly reset the FPGA before configuration 2012-10-29 14:21:20 -07:00
gpio drivers/gpio/mpc83xx_gpio.c: sparse fixes 2012-11-04 11:00:37 -07:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-arm 2012-10-26 15:44:31 -07:00
input drivers/input/input.c: sparse fix 2012-11-04 11:00:37 -07:00
misc x86: Add CBMEM console driver for coreboot 2012-11-30 13:44:03 -08:00
mmc mmc: Properly determine maximum supported bus width 2012-11-27 17:48:46 -06:00
mtd nand: Add torture feature 2012-11-26 15:41:29 -06:00
net powerpc/85xx: add support for the Freescale P5040DS Superhydra reference board 2012-11-27 18:28:06 -06:00
pci powerpc/p4080ds: fix PCI-e x8 link training down failure 2012-11-27 18:28:07 -06:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power power:pmic: Rename CONFIG_DIALOG_PMIC defines to CONFIG_DIALOG_POWER 2012-11-14 11:21:12 +01:00
qe mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
rtc pmic: Extend PMIC framework to support multiple instances of PMIC devices 2012-11-14 11:21:09 +01:00
serial serial/ns16550: wait for TEMT before initializing 2012-11-26 15:41:20 -06:00
spi Merge remote-tracking branch 'u-boot-ti/master' 2012-10-26 07:00:28 +02:00
tpm Introduce generic TPM support in u-boot 2011-12-07 08:45:51 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Remove obsolete header file 2012-11-27 09:41:10 -07:00
video Video: fix compiler warnings in bus_vcxk 2012-11-14 12:27:49 +01:00
watchdog dm: wdt: arm: Move tnetv107x into drivers/watchdog/ 2012-10-18 06:52:02 +02:00