Files
OpenCellular/include/gaia_power.h
Randall Spangler f8393fab2c Move gaia event handler declarations to gaia_power.h
This removes duplicated code in 3 different board.c files.

No functional changes, just moving declarations.

BUG=chrome-os-partner:18343
BRANCH=none
TEST=build daisy,spring,snow

Change-Id: Ie6266dca7d7d160e154fce1a09452e5cc9a1095c
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45898
2013-03-20 17:42:03 -07:00

31 lines
668 B
C

/* 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.
*/
/* Gaia power module for Chrome EC */
#ifndef __CROS_EC_GAIA_POWER_H
#define __CROS_EC_GAIA_POWER_H
#include "gpio.h"
#ifdef CONFIG_CHIPSET_GAIA
/**
* Interrupt handlers for Gaia chipset GPIOs.
*/
void gaia_power_event(enum gpio_signal signal);
void gaia_lid_event(enum gpio_signal signal);
void gaia_suspend_event(enum gpio_signal signal);
#else
#define gaia_power_event NULL
#define gaia_suspend_event NULL
#define gaia_lid_event NULL
#endif
#endif /* __CROS_EC_GAIA_POWER_H */