blob: 891d640a3937b8cbb6081c1acb11d6f98119540b [file] [log] [blame]
David Hendricks694719a2013-01-11 11:34:06 -08001/*
2 * This file is part of the coreboot project.
3 *
Stefan Reinauer08dc3572013-05-14 16:57:50 -07004 * Copyright 2013 Google Inc.
David Hendricks694719a2013-01-11 11:34:06 -08005 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
David Hendricks694719a2013-01-11 11:34:06 -080014 */
15
Gabe Black8b685392013-09-29 03:02:55 -070016#include <bootblock_common.h>
Julius Werner1ed0c8c2014-10-20 13:16:29 -070017#include <soc/clk.h>
18#include <soc/wakeup.h>
Stefan Reinauer043eb0e2013-05-10 16:21:58 -070019
Vadim Bendebury0b341b32014-04-23 11:09:44 -070020void bootblock_soc_init(void)
David Hendricks694719a2013-01-11 11:34:06 -080021{
Stefan Reinauer043eb0e2013-05-10 16:21:58 -070022 if (get_wakeup_state() == WAKEUP_DIRECT) {
23 wakeup();
24 /* Never returns. */
25 }
26
27 /* For most ARM systems, we have to initialize firmware media source
28 * (ex, SPI, SD/MMC, or eMMC) now; but for Exynos platform, that is
29 * already handled by iROM so there's no need to setup again.
30 */
David Hendricks694719a2013-01-11 11:34:06 -080031}