mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 01:50:53 +00:00
This change adds a new software panic type PANIC_SW_PMIC_FAULT that can be used to report any PMIC faults during previous boot. BUG=b:65732924,b:69334392 BRANCH=None TEST=make -j buildall Change-Id: I218b5d01ee145bb02a773495046f4255f1ec8986 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/797910 Reviewed-by: Shawn N <shawnn@chromium.org>
27 lines
885 B
C
27 lines
885 B
C
/* Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* Software panic constants. This file must be parsable by the assembler.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_SOFTWARE_PANIC_H
|
|
#define __CROS_EC_SOFTWARE_PANIC_H
|
|
|
|
/* Holds software panic reason PANIC_SW_* */
|
|
#define SOFTWARE_PANIC_REASON_REG r4
|
|
#define SOFTWARE_PANIC_INFO_REG r5
|
|
|
|
#define PANIC_SW_BASE 0xDEAD6660
|
|
|
|
/* Software panic reasons */
|
|
#define PANIC_SW_DIV_ZERO (PANIC_SW_BASE + 0)
|
|
#define PANIC_SW_STACK_OVERFLOW (PANIC_SW_BASE + 1)
|
|
#define PANIC_SW_PD_CRASH (PANIC_SW_BASE + 2)
|
|
#define PANIC_SW_ASSERT (PANIC_SW_BASE + 3)
|
|
#define PANIC_SW_WATCHDOG (PANIC_SW_BASE + 4)
|
|
#define PANIC_SW_BAD_RNG (PANIC_SW_BASE + 5)
|
|
#define PANIC_SW_PMIC_FAULT (PANIC_SW_BASE + 6)
|
|
|
|
#endif /* __CROS_EC_SOFTWARE_PANIC_H */
|