2016-03-02 08:45:47 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
|
|
|
* Copyright 2014 Google Inc.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <console/console.h>
|
|
|
|
#include <soc/iomap.h>
|
|
|
|
#include <reset.h>
|
|
|
|
|
|
|
|
void hard_reset(void)
|
|
|
|
{
|
2016-01-06 09:43:25 +01:00
|
|
|
/*
|
|
|
|
* At boot time the boot loaders would have set a magic cookie
|
|
|
|
* here to detect watchdog reset. However, since this is a
|
|
|
|
* normal reset clear the magic numbers.
|
|
|
|
*/
|
|
|
|
write32(TCSR_BOOT_MISC_DETECT, 0);
|
|
|
|
write32(TCSR_RESET_DEBUG_SW_ENTRY, 0);
|
2015-09-08 11:42:46 +02:00
|
|
|
write32(GCNT_PSHOLD, 0);
|
2016-03-02 08:45:47 +01:00
|
|
|
}
|