diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-15 15:52:31 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-25 20:52:32 +0000 |
commit | 050c7df0118855ea4c33003c176132821c18c794 (patch) | |
tree | 877eaf25e1f3ffc9f78896b9ed1087e9062f0ec7 /include | |
parent | b0f622543c098d3335bcf12a859c33ff215d7530 (diff) | |
download | chrome-ec-050c7df0118855ea4c33003c176132821c18c794.tar.gz |
Add inductive charging control module
This module controls the inductive charging transmitter. For now, the
policy is to charge whenever possible.
BUG=chrome-os-partner:31392
TEST=Unit test passed
BRANCH=None
Change-Id: Ie48a38ad92fe2bc3329c4962e96572f2bc40b4e6
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212715
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 6 | ||||
-rw-r--r-- | include/inductive_charging.h | 20 |
2 files changed, 26 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 97a08aeb36..8337c8ca03 100644 --- a/include/config.h +++ b/include/config.h @@ -570,6 +570,12 @@ #undef CONFIG_I2C_PASSTHRU_RESTRICTED /*****************************************************************************/ +/* Inductive charging */ + +/* Enable inductive charging support */ +#undef CONFIG_INDUCTIVE_CHARGING + +/*****************************************************************************/ /* Number of IRQs supported on the EC chip */ #undef CONFIG_IRQ_COUNT diff --git a/include/inductive_charging.h b/include/inductive_charging.h new file mode 100644 index 0000000000..60872914df --- /dev/null +++ b/include/inductive_charging.h @@ -0,0 +1,20 @@ +/* Copyright 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. + */ + +/* Inductive charging control */ + +#include "gpio.h" + +#ifndef __INDUCTIVE_CHARGING_H +#define __INDUCTIVE_CHARGING_H + +/* + * Interrupt handler for inductive charging signal. + * + * @param signal Signal which triggered the interrupt. + */ +void inductive_charging_interrupt(enum gpio_signal); + +#endif |