diff options
Diffstat (limited to 'chip/mt_scp/mt818x/system.c')
-rw-r--r-- | chip/mt_scp/mt818x/system.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/chip/mt_scp/mt818x/system.c b/chip/mt_scp/mt818x/system.c index d07bd394a0..8bf523c0f7 100644 --- a/chip/mt_scp/mt818x/system.c +++ b/chip/mt_scp/mt818x/system.c @@ -1,10 +1,11 @@ -/* Copyright 2018 The Chromium OS Authors. All rights reserved. +/* Copyright 2018 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* System : hardware specific implementation */ +#include "builtin/assert.h" #include "clock_chip.h" #include "console.h" #include "cpu.h" @@ -80,9 +81,7 @@ void system_pre_init(void) scp_cm4_mod(); /* Clock */ - #ifdef CHIP_VARIANT_MT8183 scp_enable_clock(); - #endif /* Peripheral IRQ */ scp_enable_pirq(); @@ -127,7 +126,8 @@ void system_reset(int flags) } } - /* Set watchdog timer to small value, and spin wait for watchdog reset */ + /* Set watchdog timer to small value, and spin wait for watchdog reset + */ SCP_WDT_CFG = 0; SCP_WDT_CFG = SCP_WDT_ENABLE | SCP_WDT_PERIOD(1); watchdog_reload(); @@ -162,12 +162,9 @@ static void check_reset_cause(void) int system_is_reboot_warm(void) { const uint32_t cold_flags = - EC_RESET_FLAG_RESET_PIN | - EC_RESET_FLAG_POWER_ON | - EC_RESET_FLAG_WATCHDOG | - EC_RESET_FLAG_HARD | - EC_RESET_FLAG_SOFT | - EC_RESET_FLAG_HIBERNATE; + EC_RESET_FLAG_RESET_PIN | EC_RESET_FLAG_POWER_ON | + EC_RESET_FLAG_WATCHDOG | EC_RESET_FLAG_HARD | + EC_RESET_FLAG_SOFT | EC_RESET_FLAG_HIBERNATE; check_reset_cause(); |