[coreboot-gerrit] Patch set updated for coreboot: eeb56c0 storm: add hard_reset template

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Mon Apr 13 16:22:19 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9581

-gerrit

commit eeb56c004e2c74f7eb98741bbe2af6ad55f3b847
Author: Daisuke Nojiri <dnojiri at chromium.org>
Date:   Wed Nov 12 14:37:25 2014 -0800

    storm: add hard_reset template
    
    this is required to do early firmware selection using vboot2. actual
    implementation can be done later.
    
    BUG=chrome-os-partner:33755
    BRANCH=ToT
    TEST=Booted storm.
    
    Change-Id: I8e9e168ea6fa3af149d5ad4ca51c5c9bba4d986d
    Signed-off-by: Stefan Reinauer <reinauer at chromium.org>
    Original-Commit-Id: 611c24773478c8c212d567bb4f2cb9a09898ddc8
    Original-Change-Id: Idd1a1de4991a19902ffe45f01be89d47f4413779
    Original-Signed-off-by: Daisuke Nojiri <dnojiri at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/229425
    Original-Commit-Queue: Vadim Bendebury <vbendeb at chromium.org>
    Original-Tested-by: Vadim Bendebury <vbendeb at chromium.org>
---
 src/mainboard/google/storm/Kconfig      |  1 +
 src/mainboard/google/storm/Makefile.inc |  5 +++++
 src/mainboard/google/storm/reset.c      | 26 ++++++++++++++++++++++++++
 3 files changed, 32 insertions(+)

diff --git a/src/mainboard/google/storm/Kconfig b/src/mainboard/google/storm/Kconfig
index 5e010fc..00405e1 100644
--- a/src/mainboard/google/storm/Kconfig
+++ b/src/mainboard/google/storm/Kconfig
@@ -25,6 +25,7 @@ config BOARD_SPECIFIC_OPTIONS
 	select BOARD_ID_SUPPORT
 	select BOARD_ROMSIZE_KB_4096
 	select COMMON_CBFS_SPI_WRAPPER
+	select HAVE_HARD_RESET
 	select MAINBOARD_HAS_BOOTBLOCK_INIT
 	select SPI_FLASH
 	select SPI_FLASH_SPANSION
diff --git a/src/mainboard/google/storm/Makefile.inc b/src/mainboard/google/storm/Makefile.inc
index 6ee0841..5add3b3 100644
--- a/src/mainboard/google/storm/Makefile.inc
+++ b/src/mainboard/google/storm/Makefile.inc
@@ -18,13 +18,18 @@
 ##
 
 bootblock-y += cdp.c
+bootblock-y += reset.c
+
+verstage-y += reset.c
 
 romstage-y += romstage.c
 romstage-y += cdp.c
+romstage-y += reset.c
 
 ramstage-y += boardid.c
 ramstage-y += cdp.c
 ramstage-y += mainboard.c
+ramstage-y += reset.c
 
 bootblock-y += memlayout.ld
 romstage-y += memlayout.ld
diff --git a/src/mainboard/google/storm/reset.c b/src/mainboard/google/storm/reset.c
new file mode 100644
index 0000000..8020fbf
--- /dev/null
+++ b/src/mainboard/google/storm/reset.c
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ *
+ * 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 <reset.h>
+
+void hard_reset(void)
+{
+	while (1)
+		;
+}



More information about the coreboot-gerrit mailing list