2010-02-22 07:09:43 +01:00
|
|
|
#ifndef RESET_H
|
|
|
|
#define RESET_H
|
2003-09-02 01:45:32 +02:00
|
|
|
|
Clean up #ifs
Replace #if CONFIG_FOO==1 with #if CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*1[[:space:]]*\$,#if \1," {} +
Replace #if (CONFIG_FOO==1) with #if CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*(\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*1)[[:space:]]*\$,#if \1," {} +
Replace #if CONFIG_FOO==0 with #if !CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*0[[:space:]]*\$,#if \!\1," {} +
Replace #if (CONFIG_FOO==0) with #if !CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*(\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*0)[[:space:]]*\$,#if \!\1," {} +
(and some manual changes to fix false positives)
Change-Id: Iac6ca7605a5f99885258cf1a9a2473a92de27c42
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/1004
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Martin Roth <martin@se-eng.com>
2012-05-05 15:29:32 +02:00
|
|
|
#if CONFIG_HAVE_HARD_RESET
|
2003-09-02 01:45:32 +02:00
|
|
|
void hard_reset(void);
|
|
|
|
#else
|
2016-09-01 19:01:41 +02:00
|
|
|
#define hard_reset() do {} while (0)
|
2003-09-02 01:45:32 +02:00
|
|
|
#endif
|
2010-02-22 07:09:43 +01:00
|
|
|
void soft_reset(void);
|
2014-06-20 04:16:24 +02:00
|
|
|
void cpu_reset(void);
|
2016-06-23 08:39:08 +02:00
|
|
|
/* Some Intel SoCs use a special reset that is specific to SoC */
|
|
|
|
void global_reset(void);
|
2016-07-15 22:31:09 +02:00
|
|
|
/* Some Intel SoCs may need to prepare/wait before reset */
|
|
|
|
void reset_prepare(void);
|
2003-09-02 01:45:32 +02:00
|
|
|
#endif
|