[coreboot-gerrit] New patch to review for coreboot: soc/intel/common: Add weak global_reset()

Andrey Petrov (andrey.petrov@intel.com) gerrit at coreboot.org
Thu Jun 23 17:37:40 CEST 2016


Andrey Petrov (andrey.petrov at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15333

-gerrit

commit b9f5c9407176dc63004b06058c6447c25d069a3c
Author: Andrey Petrov <andrey.petrov at intel.com>
Date:   Wed Jun 22 23:39:08 2016 -0700

    soc/intel/common: Add weak global_reset()
    
    Add weak global_reset() that some SoC may provide.
    
    BUG=chrome-os-partner:54149
    BRANCH=none
    TEST=none
    
    Change-Id: I8afe076b6f4f675b3c6a3ec0e4dd69f950baa4ef
    Signed-off-by: Andrey Petrov <andrey.petrov at intel.com>
---
 src/include/reset.h          | 1 +
 src/soc/intel/common/reset.c | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/src/include/reset.h b/src/include/reset.h
index 9430ffe..f5e8467 100644
--- a/src/include/reset.h
+++ b/src/include/reset.h
@@ -8,5 +8,6 @@ void hard_reset(void);
 #endif
 void soft_reset(void);
 void cpu_reset(void);
+void global_reset(void);
 
 #endif
diff --git a/src/soc/intel/common/reset.c b/src/soc/intel/common/reset.c
index 79547c6..185e72b 100644
--- a/src/soc/intel/common/reset.c
+++ b/src/soc/intel/common/reset.c
@@ -48,3 +48,8 @@ void cpu_reset(void)
 	while (1)
 		hlt();
 }
+
+void __attribute__ ((weak)) global_reset(void)
+{
+	/* do nothing */
+}



More information about the coreboot-gerrit mailing list