2013-01-18 00:07:35 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 The ChromiumOS Authors. All rights reserved.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <types.h>
|
|
|
|
#include <arch/io.h>
|
2013-02-07 14:38:41 +01:00
|
|
|
#include <cbfs.h>
|
|
|
|
#include <uart.h>
|
2013-02-06 15:01:18 +01:00
|
|
|
#include <console/console.h>
|
2013-05-03 01:47:54 +02:00
|
|
|
#include <cpu/samsung/exynos5250/clk.h>
|
2013-02-07 14:38:41 +01:00
|
|
|
#include <cpu/samsung/exynos5250/periph.h>
|
|
|
|
#include <cpu/samsung/exynos5250/pinmux.h>
|
2013-04-25 13:49:40 +02:00
|
|
|
#include "mainboard.h"
|
2013-01-18 00:07:35 +01:00
|
|
|
|
|
|
|
void bootblock_mainboard_init(void);
|
|
|
|
void bootblock_mainboard_init(void)
|
|
|
|
{
|
2013-05-03 01:47:54 +02:00
|
|
|
/* kick off the multi-core timer.
|
2013-04-30 10:14:35 +02:00
|
|
|
* We want to do this as early as we can.
|
|
|
|
*/
|
2013-05-03 01:47:54 +02:00
|
|
|
mct_start();
|
2013-04-12 00:03:28 +02:00
|
|
|
|
2013-04-30 10:14:35 +02:00
|
|
|
if (snow_get_wakeup_state() == SNOW_WAKEUP_DIRECT) {
|
|
|
|
snow_wakeup();
|
|
|
|
/* Never returns. */
|
2013-04-25 13:49:40 +02:00
|
|
|
}
|
2013-04-30 10:11:32 +02:00
|
|
|
|
|
|
|
/* For most ARM systems, we have to initialize firmware media source
|
|
|
|
* (ex, SPI, SD/MMC, or eMMC) now; but for Exynos platform, that is
|
|
|
|
* already handled by iROM so there's no need to setup again.
|
|
|
|
*/
|
|
|
|
|
2013-02-06 15:01:18 +01:00
|
|
|
console_init();
|
2013-01-18 00:07:35 +01:00
|
|
|
}
|