coreboot-kgpe-d16/src/soc/imgtec/pistachio
Vadim Bendebury 52a8879853 pistachio: implement timer support
C0_COUNT register is a free running counter clocked by the CPU
frequency divided by two. On the FPGA board it results in 25 MHz, on
real SOCs it will have to be figured out later.

Some magic addresses and numbers are used to find out if the code is
running on the FPGA board.

timestamp_get() and timer_monotonic_get() are kept in the same file.

The CPU initialization makes sure that CO COUNT is in fact enabled and
starts from zero.

BRANCH=none
BUG=chrome-os-partner:33595,chrome-os-partner:31438
TEST=with timer enabled, the startup code properly initializes UART
     and prints the coreboot bootblock banner message on the serial
     console.

Change-Id: I98fe330b961f677448b222917ab7d586494ed4b7
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Id: a7324221c1d856ac72fa2b0ab586b5ea8cab3a05
Original-Change-Id: I2d518213de939e91a35f8aea174aed76d297dd72
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/227888
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9188
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-04-09 00:29:09 +02:00
..
include/soc pistachio: implement timer support 2015-04-09 00:29:09 +02:00
bootblock.c pistachio: implement timer support 2015-04-09 00:29:09 +02:00
cbmem.c New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
Kconfig New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
Makefile.inc pistachio: implement timer support 2015-04-09 00:29:09 +02:00
monotonic_timer.c pistachio: implement timer support 2015-04-09 00:29:09 +02:00
romstage.c pistachio: don't open code ramstage loading 2015-03-28 17:43:47 +01:00
spi.c pistachio: Change all SoC headers to <soc/headername.h> system 2015-04-07 19:38:03 +02:00
uart.c imgtec/pistachio: Bring uart driver to modern standards 2015-03-30 20:41:22 +02:00