blob: a831da4bb140c6ef07bed3a3a251e2b8e279ffc5 [file] [log] [blame]
Angel Pons1ddb8942020-04-04 18:51:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
David Hendricks694719a2013-01-11 11:34:06 -08002
Gabe Black8b685392013-09-29 03:02:55 -07003#include <bootblock_common.h>
Julius Werner1ed0c8c2014-10-20 13:16:29 -07004#include <soc/clk.h>
5#include <soc/wakeup.h>
Stefan Reinauer043eb0e2013-05-10 16:21:58 -07006
Vadim Bendebury0b341b32014-04-23 11:09:44 -07007void bootblock_soc_init(void)
David Hendricks694719a2013-01-11 11:34:06 -08008{
Stefan Reinauer043eb0e2013-05-10 16:21:58 -07009 if (get_wakeup_state() == WAKEUP_DIRECT) {
10 wakeup();
11 /* Never returns. */
12 }
13
14 /* For most ARM systems, we have to initialize firmware media source
15 * (ex, SPI, SD/MMC, or eMMC) now; but for Exynos platform, that is
16 * already handled by iROM so there's no need to setup again.
17 */
David Hendricks694719a2013-01-11 11:34:06 -080018}