storm: Fix timer init order problem
Commit257aaee9e3(arm: Add bootblock_mainboard_early_init() for pre-console initialization) inadvertently moved the timer initialization after console initialization for IPQ806x, which is apparently not a good idea for this platform. This patch solves the issue by moving init_timer() to bootblock_mainboard_early_init(), which is the new hook explicitly provided to perform pre-console tasks. BRANCH=None BUG=None TEST=Built and booted Storm with257aaee9ereverted. Noticed that it was already broken. Bisected coreboot and tracked down breakage to commita126a62f(ipq8064: use the new utility to build bootblock). Built and booted successfully with this patch and a revert ofa126a62fto confirm that the bug in question here is fixed. Change-Id: Ie4aa2d06cb6fda6d5ff8dd5ea052257fb7b8a24b Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/233290 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
parent
b4d4a2da1c
commit
752d1f879f
3 changed files with 2 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
|||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
bootblock-y += bootblock.c
|
||||
bootblock-y += cdp.c
|
||||
|
||||
romstage-y += romstage.c
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#include <bootblock_common.h>
|
||||
#include <delay.h>
|
||||
|
||||
void bootblock_soc_init(void)
|
||||
void bootblock_mainboard_early_init(void)
|
||||
{
|
||||
init_timer();
|
||||
}
|
||||
|
|
@ -17,7 +17,6 @@
|
|||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
bootblock-y += bootblock.c
|
||||
bootblock-y += clock.c
|
||||
bootblock-y += gpio.c
|
||||
bootblock-$(CONFIG_SPI_FLASH) += spi.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue