Angel Pons | 1ddb894 | 2020-04-04 18:51:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
David Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 2 | |
Gabe Black | 8b68539 | 2013-09-29 03:02:55 -0700 | [diff] [blame] | 3 | #include <bootblock_common.h> |
Julius Werner | 1ed0c8c | 2014-10-20 13:16:29 -0700 | [diff] [blame] | 4 | #include <soc/clk.h> |
| 5 | #include <soc/wakeup.h> |
Stefan Reinauer | 043eb0e | 2013-05-10 16:21:58 -0700 | [diff] [blame] | 6 | |
Vadim Bendebury | 0b341b3 | 2014-04-23 11:09:44 -0700 | [diff] [blame] | 7 | void bootblock_soc_init(void) |
David Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 8 | { |
Stefan Reinauer | 043eb0e | 2013-05-10 16:21:58 -0700 | [diff] [blame] | 9 | 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 Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 18 | } |