ARM: Separate the early console (romstage) from the bootblock console.
It might be that you want an early console in romstage before RAM is up, but you can't or don't want to support the console all the way back in the bootblock. By making the console in those two different environments configurable seperately that becomes possible. On the 5250 console output as early as the bootblock works, but on the 5420 it only starts working in the ROM stage after clocks have been initialized. BUG=chrome-os-partner:19420 TEST=Built and booted on pit with another change and an external tool, and was able to get serial output. Built for snow. BRANCH=None Change-Id: Ie27ae7a7b22f336d23893618969efde4145fefd7 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/57725 Reviewed-by: Stefan Reinauer <reinauer@google.com> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
bcb646d693
commit
53119fdeab
10 changed files with 31 additions and 18 deletions
|
|
@ -2,6 +2,7 @@ config CPU_SAMSUNG_EXYNOS5250
|
|||
depends on ARCH_ARMV7
|
||||
select HAVE_MONOTONIC_TIMER
|
||||
select HAVE_UART_SPECIAL
|
||||
select DEFAULT_BOOTBLOCK_CONSOLE
|
||||
select DEFAULT_EARLY_CONSOLE
|
||||
bool
|
||||
default n
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@ INTERMEDIATE += exynos5250_add_bl1
|
|||
bootblock-y += spi.c
|
||||
bootblock-y += pinmux.c mct.c power.c
|
||||
# Clock is required for UART
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += clock_init.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += clock.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += monotonic_timer.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += uart.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock_init.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += monotonic_timer.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c
|
||||
bootblock-y += wakeup.c
|
||||
bootblock-y += gpio.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += pwm.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += timer.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pwm.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += timer.c
|
||||
|
||||
romstage-y += spi.c
|
||||
romstage-y += clock.c
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@ INTERMEDIATE += exynos5420_add_bl1
|
|||
bootblock-y += spi.c
|
||||
bootblock-y += pinmux.c mct.c power.c
|
||||
# Clock is required for UART
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += clock_init.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += clock.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += monotonic_timer.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += uart.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock_init.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += monotonic_timer.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c
|
||||
bootblock-y += wakeup.c
|
||||
bootblock-y += gpio.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += pwm.c
|
||||
bootblock-$(CONFIG_EARLY_CONSOLE) += timer.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pwm.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += timer.c
|
||||
|
||||
romstage-y += spi.c
|
||||
romstage-y += clock.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue