summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Lewis <sam.vr.lewis@gmail.com>2020-08-03 20:47:50 +1000
committerPatrick Georgi <pgeorgi@google.com>2020-09-09 10:48:56 +0000
commitf58fb59ea0d16e1213e3c9844416dfe9b605a333 (patch)
tree2f09426a6cf718fe66298693a1f1c200bde48a26 /src
parent3ecee09ebbad82ecc8e60b10907accc7bb372dd3 (diff)
downloadcoreboot-f58fb59ea0d16e1213e3c9844416dfe9b605a333.tar.xz
mb/ti/beaglebone: Init UART in early init
The console is initialized before mainboard_init, so the peripheral should be initialized in bootblock_mainboard_early_init rather than bootblock_mainboard_init. Change-Id: I9f4ba29798eb0b1efea76f5ade4a234fb35a2f83 Signed-off-by: Sam Lewis <sam.vr.lewis@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44380 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/ti/beaglebone/bootblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/ti/beaglebone/bootblock.c b/src/mainboard/ti/beaglebone/bootblock.c
index ca1a39060d..b7b0ee9806 100644
--- a/src/mainboard/ti/beaglebone/bootblock.c
+++ b/src/mainboard/ti/beaglebone/bootblock.c
@@ -9,7 +9,7 @@
#include "leds.h"
-void bootblock_mainboard_init(void)
+void bootblock_mainboard_early_init(void)
{
write32(&am335x_cm_wkup->wkup_gpio0, CM_ST_SW_WKUP | CM_FCLK_EN);
write32(&am335x_cm_per->gpio1, CM_ST_SW_WKUP | CM_FCLK_EN);