summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorYou-Cheng Syu <youcheng@google.com>2019-01-23 19:54:05 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-01-24 13:53:16 +0000
commit44e9c37f356f2832c079b1b8a5145dd7be77a37c (patch)
treecf6f6ce11ed6a259221bf16bcda8f09a78124d5f /src/mainboard
parent514363541fd1f78cc786a0c1f8d5f047f3baebc7 (diff)
mediatek/mt8183: Move some initialization into mt8183_early_init
MT8183 only allows booting from eMMC, so we have to do eMMC emulation from an external source, for example EC, which makes the size of bootblock very important. This CL adds a new function mt8183_early_init, which includes all initializations that should be done in early stages. All mainboards using MT8183 should manually call it in either bootblock or verstage. BRANCH=none BUG=b:120588396 TEST=manually boot into kernel Change-Id: I35d7ab875395da913b967ae1f7b72359be3e744a Signed-off-by: You-Cheng Syu <youcheng@google.com> Reviewed-on: https://review.coreboot.org/c/31024 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/kukui/bootblock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/bootblock.c b/src/mainboard/google/kukui/bootblock.c
index 07285882d7..ab537d401a 100644
--- a/src/mainboard/google/kukui/bootblock.c
+++ b/src/mainboard/google/kukui/bootblock.c
@@ -16,6 +16,7 @@
#include <bootblock_common.h>
#include <gpio.h>
#include <soc/gpio.h>
+#include <soc/mt8183.h>
#include <soc/spi.h>
#include "gpio.h"
@@ -25,6 +26,8 @@
void bootblock_mainboard_init(void)
{
+ mt8183_early_init();
+
setup_chromeos_gpios();
/* Turn on real eMMC. */