David Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Stefan Reinauer | 08dc357 | 2013-05-14 16:57:50 -0700 | [diff] [blame] | 4 | * Copyright 2013 Google Inc. |
David Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 5 | * |
| 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 Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 14 | */ |
| 15 | |
Gabe Black | 8b68539 | 2013-09-29 03:02:55 -0700 | [diff] [blame] | 16 | #include <bootblock_common.h> |
Julius Werner | 1ed0c8c | 2014-10-20 13:16:29 -0700 | [diff] [blame] | 17 | #include <soc/clk.h> |
| 18 | #include <soc/wakeup.h> |
Stefan Reinauer | 043eb0e | 2013-05-10 16:21:58 -0700 | [diff] [blame] | 19 | |
Vadim Bendebury | 0b341b3 | 2014-04-23 11:09:44 -0700 | [diff] [blame] | 20 | void bootblock_soc_init(void) |
David Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 21 | { |
Stefan Reinauer | 043eb0e | 2013-05-10 16:21:58 -0700 | [diff] [blame] | 22 | 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 Hendricks | 694719a | 2013-01-11 11:34:06 -0800 | [diff] [blame] | 31 | } |