Skip to content

Commit

Permalink
soc/imgtec/pistachio: Implement hard_reset()
Browse files Browse the repository at this point in the history
Verified boot needs hard_reset() now, so offer a dummy implementation
for the Imagination chip. Sorry, I don't have the specs for this chip
anymore to make a real implementation, but I would like to keep this
code from bit rotting.

Change-Id: I15aa47f7d248b99901a2ac0e65a46b43d7718717
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/12723
Tested-by: build bot (Jenkins)
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
  • Loading branch information
reinauer authored and Martin Roth committed Dec 17, 2015
1 parent 74babff commit 3bdd45e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/soc/imgtec/pistachio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ config CPU_IMGTEC_PISTACHIO
select HAVE_UART_SPECIAL
select SPI_ATOMIC_SEQUENCING
select GENERIC_GPIO_LIB
select HAVE_HARD_RESET
bool

if CPU_IMGTEC_PISTACHIO
Expand Down
1 change: 1 addition & 0 deletions src/soc/imgtec/pistachio/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ bootblock-y += monotonic_timer.c
ramstage-y += cbmem.c
ramstage-y += monotonic_timer.c
ramstage-y += soc.c
ramstage-y += reset.c

romstage-y += cbmem.c
romstage-y += ddr2_init.c
Expand Down
25 changes: 25 additions & 0 deletions src/soc/imgtec/pistachio/reset.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* This file is part of the coreboot project.
*
* 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 <reset.h>

void hard_reset(void)
{
printk(BIOS_EMERG, "reset failed!\n");
/* TBD */
for (;;)
;
}

0 comments on commit 3bdd45e

Please sign in to comment.