b98dec032f
It turns out that the exynos5-common code previously imported from u-boot is not common code at all but very specific to the 5250 and not compatible with the 5450. Hence, unify the directories exynos5250 and exynos5-common. We will try to factor out common code while progressing with the 5450 port. Change-Id: Iab595e66fcd01eda8365c96fb8bef896f7602f03 Signed-off-by: Stefan Reinauer <reinauer@google.com> Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3641 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* Copyright (C) 2013 Google, Inc. 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 <arch/gpio.h>
|
|
#include <arch/hlt.h>
|
|
#include <console/console.h>
|
|
#include <cpu/samsung/exynos5250/gpio.h>
|
|
#include <cpu/samsung/exynos5250/power.h>
|
|
#include <cpu/samsung/exynos5250/exynos5-common.h>
|
|
|
|
#include <cpu/samsung/exynos5250/wakeup.h>
|
|
|
|
int wakeup_need_reset(void)
|
|
{
|
|
/* The "wake up" event is not reliable (known as "bad wakeup") and needs
|
|
* reset if GPIO value is high. */
|
|
return gpio_get_value(GPIO_Y10);
|
|
}
|
|
|