From 44e9c37f356f2832c079b1b8a5145dd7be77a37c Mon Sep 17 00:00:00 2001 From: You-Cheng Syu Date: Wed, 23 Jan 2019 19:54:05 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/31024 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/soc/mediatek/mt8183/include/soc/mt8183.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/soc/mediatek/mt8183/include/soc/mt8183.h (limited to 'src/soc/mediatek/mt8183/include') diff --git a/src/soc/mediatek/mt8183/include/soc/mt8183.h b/src/soc/mediatek/mt8183/include/soc/mt8183.h new file mode 100644 index 0000000000..5591ffd5cc --- /dev/null +++ b/src/soc/mediatek/mt8183/include/soc/mt8183.h @@ -0,0 +1,23 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2019 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __SOC_MEDIATEK_MT8183_H__ +#define __SOC_MEDIATEK_MT8183_H__ + +/* Mainboards should manually call this function in early stages (bootblock or + * verstage). */ +void mt8183_early_init(void); + +#endif /* __SOC_MEDIATEK_MT8183_H__ */ -- cgit v1.2.3