diff options
author | Yen Lin <yelin@nvidia.com> | 2013-09-03 12:04:55 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-10-17 22:52:12 +0000 |
commit | 140404ffdfb54faa432128435e87aacd9a5761a6 (patch) | |
tree | 1c5f958d30632c3c1b5443d4117df64eea886bef /include | |
parent | 99472d5cb577681b6b711e001f5a50e6abc2e356 (diff) | |
download | chrome-ec-140404ffdfb54faa432128435e87aacd9a5761a6.tar.gz |
ec: add nyan board
This is to add nyan board support:
- new files in board/nyan folder, including battery.c
- new common/chipset_tegra.c, which is mostly based on
chipset_gaia.c
- new include/tegra_power.h
- modified build.mk and flash_ec for nyan
BUG=none
BRANCH=nyan
TEST=tested on Venice 2 board
Change-Id: I36895f34f2f4d144a9440aff358c8274797ebbd6
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/168078
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 2 | ||||
-rw-r--r-- | include/tegra_power.h | 28 |
2 files changed, 30 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 2610a35284..7092d3da86 100644 --- a/include/config.h +++ b/include/config.h @@ -182,6 +182,7 @@ #undef CONFIG_CHIPSET_GAIA /* Gaia and Ares (ARM) */ #undef CONFIG_CHIPSET_HASWELL /* Intel Haswell (x86) */ #undef CONFIG_CHIPSET_IVYBRIDGE /* Intel Ivy Bridge (x86) */ +#undef CONFIG_CHIPSET_TEGRA /* Tegra */ /* Compile common x86 chipset infrastructure. Required for x86 chips. */ #undef CONFIG_CHIPSET_X86 @@ -776,6 +777,7 @@ #undef CONFIG_CHIPSET_HASWELL #undef CONFIG_CHIPSET_IVYBRIDGE #undef CONFIG_CHIPSET_X86 +#undef CONFIG_CHIPSET_TEGRA #endif #ifndef HAS_TASK_KEYPROTO diff --git a/include/tegra_power.h b/include/tegra_power.h new file mode 100644 index 0000000000..9b02a9feaf --- /dev/null +++ b/include/tegra_power.h @@ -0,0 +1,28 @@ +/* Copyright (c) 2013 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. + */ + +/* Tegra power module for Chrome EC */ + +#ifndef __CROS_EC_TEGRA_POWER_H +#define __CROS_EC_TEGRA_POWER_H + +#include "gpio.h" + +#ifdef CONFIG_CHIPSET_TEGRA + +/** + * Interrupt handlers for Tegra chipset GPIOs. + */ +void tegra_power_event(enum gpio_signal signal); +void tegra_suspend_event(enum gpio_signal signal); + +#else + +#define tegra_power_event NULL +#define tegra_suspend_event NULL + +#endif + +#endif /* __CROS_EC_TEGRA_POWER_H */ |