summaryrefslogtreecommitdiff
path: root/chip/mchp/clock_chip.h
diff options
context:
space:
mode:
authorscott worley <scott.worley@microchip.corp-partner.google.com>2018-05-10 13:59:52 -0400
committerchrome-bot <chrome-bot@chromium.org>2018-06-12 21:50:56 -0700
commitf83b350444ec7a543378589d7533be6514129288 (patch)
tree62a8cce69090048ed881a0a1a223bc5603779b98 /chip/mchp/clock_chip.h
parent201c5fb497d2c810eb95c9ddf05835adcde63b12 (diff)
downloadchrome-ec-f83b350444ec7a543378589d7533be6514129288.tar.gz
ec_chip_mchp: Fix hibernation timer and wake programming
Hibernation timer was not programmed to correct value for some cases and code was duplicated. Not all interrupt sources were properly configured in system hibernate. Remove debug only system pre-init board level call. BRANCH=none BUG=none TEST=Build all boards using chip mchp. Test with EC UART hibernate command. CQ-DEPEND=CL:1053576 Change-Id: I932443fa7a4e284168babdbb7f64033a55427fb2 Signed-off-by: scott worley <scott.worley@microchip.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1053956 Commit-Ready: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/mchp/clock_chip.h')
-rw-r--r--chip/mchp/clock_chip.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/chip/mchp/clock_chip.h b/chip/mchp/clock_chip.h
new file mode 100644
index 0000000000..2e7de60358
--- /dev/null
+++ b/chip/mchp/clock_chip.h
@@ -0,0 +1,17 @@
+/* Copyright 2017 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.
+ */
+
+/* Microchip MEC1701 specific module for Chrome EC */
+
+#ifndef __CROS_EC_CLOCK_CHIP_H
+#define __CROS_EC_CLOCK_CHIP_H
+
+#include <stdint.h>
+
+void htimer_init(void);
+void system_set_htimer_alarm(uint32_t seconds,
+ uint32_t microseconds);
+
+#endif /* __CROS_EC_I2C_CLOCK_H */