2013-09-27 01:22:09 +02:00
|
|
|
config SOC_NVIDIA_TEGRA124
|
2014-08-14 01:29:44 +02:00
|
|
|
select ARCH_BOOTBLOCK_ARMV7
|
|
|
|
select ARCH_ROMSTAGE_ARMV7
|
|
|
|
select ARCH_RAMSTAGE_ARMV7
|
tegra124: add custom uart
tegra124: Add a test function which spams exclamation points on the UART.
This function spews characters on the console and, until we have a working
console, is an easy way to see whether the system boots to a particular point.
For some reason waiting for transmitter to be empty hangs, but transmitting
characters still works.
Old-Change-Id: I1622c8a58849f4b8bdcaa67500b81042d7346df4
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/171030
Reviewed-by: Ronald Minnich <rminnich@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit e0059181958cfe8afec2f3a7ea732e81f5d55e5d)
tegra124: Re-enable waiting for the transmitter to empty in the test function.
The compiler was emitting code compatible with armv7-a, but the bootblock was
running on a core which uses armv4t. By coincidence, it was emitting an
instruction which is unavailable on armv4t when checking the value of the
UART's LSR register. Now that the bootblock is compiled with more appropriate
flags, this code can be re-introduced.
Old-Change-Id: I7ecada4138b0889b963d1a8b19a4bab8e0bb1add
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/170997
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit 2a0adceb5029c8ee633d17c82dbb11e48d30349d)
tegra124: Seperate out the non-UART specific hardcoded init in the bootblock.
The hardcoded init in the test function in the bootblock is actually useful
generally because it doesn't belong in the UART driver itself but is necessary
for the UART to work. Until we have real implementations for the pinmux, etc.,
we can use that code to get the UART and console going.
Old-Change-Id: I2efe0b571d8b022eb2a2e5569620558540b28373
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/171334
Reviewed-by: Ronald Minnich <rminnich@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit ae7d4d890be1936cc86dc15adeb33f3b46a51ae5)
tegra124: Implement and enable serial console support for tegra124.
The driver is very similar to the 8250 driver, except it isn't in two parts,
and it also spaces its registers 4 bytes apart instead of having them directly
adjacent to each other.
Also, eliminate the UART test function in the bootblock. It's no longer needed
since the actual console output serves the same purpose.
Right now the clock divisor is fixed for now, and we'll want to actually
figure out what value to use at some point.
Old-Change-Id: Idd659222901eb76b0ed8cbb986deb5124096f2f6
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/171337
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit 86f5e2875b18901b349283cfbcd4f8cc88b7a019)
Squashed 4 commits related to uart support for tegra124. Modified the
new uart.c to look like the uart.c for exynos5420.
Change-Id: I490cba014a43d58c30c48ca9ddcae2b00095b7a6
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6764
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
2013-09-29 16:06:08 +02:00
|
|
|
select HAVE_UART_SPECIAL
|
|
|
|
select BOOTBLOCK_CONSOLE
|
2013-09-29 15:32:27 +02:00
|
|
|
select ARM_BOOTBLOCK_CUSTOM
|
2013-09-27 01:22:09 +02:00
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
if SOC_NVIDIA_TEGRA124
|
|
|
|
|
|
|
|
config BOOTBLOCK_CPU_INIT
|
|
|
|
string
|
|
|
|
default "soc/nvidia/tegra124/bootblock.c"
|
|
|
|
help
|
|
|
|
CPU/SoC-specific bootblock code. This is useful if the
|
|
|
|
bootblock must load microcode or copy data from ROM before
|
|
|
|
searching for the bootblock.
|
|
|
|
|
|
|
|
# ROM image layout.
|
|
|
|
#
|
|
|
|
# 0x00000 Combined bootblock and BCT blob
|
|
|
|
# 0x18000 Master CBFS header.
|
|
|
|
# 0x18080 Free for CBFS data.
|
|
|
|
|
|
|
|
config BOOTBLOCK_ROM_OFFSET
|
|
|
|
hex
|
|
|
|
default 0x0
|
|
|
|
|
|
|
|
config CBFS_HEADER_ROM_OFFSET
|
|
|
|
hex "offset of master CBFS header in ROM"
|
|
|
|
default 0x18000
|
|
|
|
|
|
|
|
config CBFS_ROM_OFFSET
|
|
|
|
hex "offset of CBFS data in ROM"
|
|
|
|
default 0x18080
|
|
|
|
|
|
|
|
config SYS_SDRAM_BASE
|
|
|
|
hex
|
|
|
|
default 0x80000000
|
|
|
|
|
|
|
|
config BOOTBLOCK_BASE
|
|
|
|
hex
|
|
|
|
default 0x80000000
|
|
|
|
|
2013-10-17 08:50:58 +02:00
|
|
|
config ROMSTAGE_BASE
|
|
|
|
hex
|
|
|
|
default 0x80100000
|
|
|
|
|
|
|
|
config RAMSTAGE_BASE
|
|
|
|
hex
|
|
|
|
default 0x80200000
|
|
|
|
|
2013-09-29 05:39:21 +02:00
|
|
|
config STACK_TOP
|
|
|
|
hex
|
|
|
|
default 0x80400000
|
|
|
|
|
|
|
|
config STACK_BOTTOM
|
|
|
|
hex
|
|
|
|
default 0x803f8000
|
|
|
|
|
|
|
|
config STACK_SIZE
|
|
|
|
hex
|
|
|
|
default 0x800
|
|
|
|
|
2013-09-27 01:22:09 +02:00
|
|
|
endif
|