mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
This unifies all the EC header files to use __CROS_EC_FILENAME_H as the include guard. Well, except for test/ util/ and extra/ which use __TEST_ __UTIL_ and __EXTRA_ prefixes respectively. BUG=chromium:496895 BRANCH=none TEST=make buildall -j Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: Iea71b3a08bdec94a11239de810a2b2e152b15029 Reviewed-on: https://chromium-review.googlesource.com/278121 Reviewed-by: Randall Spangler <rspangler@chromium.org>
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
/* Copyright (c) 2014 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.
|
|
*/
|
|
|
|
/* NPCX-specific SIB module for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_SYSTEM_CHIP_H
|
|
#define __CROS_EC_SYSTEM_CHIP_H
|
|
|
|
/* Indices for battery-backed ram (BBRAM) data position */
|
|
enum bbram_data_index {
|
|
BBRM_DATA_INDEX_SCRATCHPAD = 0, /* General-purpose scratchpad */
|
|
BBRM_DATA_INDEX_SAVED_RESET_FLAGS = 4, /* Saved reset flags */
|
|
BBRM_DATA_INDEX_WAKE = 8, /* Wake reasons for hibernate */
|
|
BBRM_DATA_INDEX_PBUTTON = 12, /* Power button for hibernate */
|
|
BBRM_DATA_INDEX_VBNVCNTXT = 16, /* VbNvContext for ARM arch */
|
|
BBRM_DATA_INDEX_RAMLOG = 32, /* RAM log for Booter */
|
|
};
|
|
|
|
/* Init lpc register through SIB */
|
|
void system_lpc_host_register_init(void);
|
|
/* Issue a watchdog reset*/
|
|
void system_watchdog_reset(void);
|
|
/* Check reset cause and return reset flags */
|
|
void system_check_reset_cause(void);
|
|
|
|
/* End address for the .lpram section; defined in linker script */
|
|
extern unsigned int __lpram_fw_end;
|
|
/* Begin flash address for the lpram codes; defined in linker script */
|
|
extern unsigned int __flash_lpfw_start;
|
|
/* End flash address for the lpram codes; defined in linker script */
|
|
extern unsigned int __flash_lpfw_end;
|
|
|
|
#endif /* __CROS_EC_SYSTEM_CHIP_H */
|