summaryrefslogtreecommitdiff
path: root/chip/mchp/pwm_chip.h
diff options
context:
space:
mode:
authorScott Worley <scott.worley@microchip.corp-partner.google.com>2017-12-21 14:13:47 -0500
committerchrome-bot <chrome-bot@chromium.org>2017-12-28 14:50:31 -0800
commiteb29ab7acdcb5b9d88794a3f5d36850f6e33a2a5 (patch)
treec6392eb68abbbf98be8470561ce809670f720dd8 /chip/mchp/pwm_chip.h
parent0a6a7be572cf74af531f922ad84b767749e852a7 (diff)
downloadchrome-ec-eb29ab7acdcb5b9d88794a3f5d36850f6e33a2a5.tar.gz
ec_chip_mchp: Add PWM and fan files
Add Microchip MEC17xx family PWM and fan source files for review BRANCH=none BUG= TEST=Review only. Change-Id: I91439ab999a4662d690b58b0fbbb887f643b3673 Signed-off-by: Scott Worley <scott.worley@microchip.corp-partner.google.com>
Diffstat (limited to 'chip/mchp/pwm_chip.h')
-rw-r--r--chip/mchp/pwm_chip.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/chip/mchp/pwm_chip.h b/chip/mchp/pwm_chip.h
new file mode 100644
index 0000000000..85ff484f86
--- /dev/null
+++ b/chip/mchp/pwm_chip.h
@@ -0,0 +1,23 @@
+/* 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.
+ */
+
+/* MEC1701H-specific PWM module for Chrome EC */
+#ifndef __CROS_EC_PWM_CHIP_H
+#define __CROS_EC_PWM_CHIP_H
+
+/* Data structure to define PWM channels. */
+struct pwm_t {
+ /* PWM Channel ID */
+ int channel;
+
+ /* PWM channel flags. See include/pwm.h */
+ uint32_t flags;
+};
+
+extern const struct pwm_t pwm_channels[];
+
+void pwm_keep_awake(void);
+
+#endif /* __CROS_EC_PWM_CHIP_H */