mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
The old backlight_x86 code did (backlight enable) = (lid is open) && (GPIO request from AP) Newer systems will AND those signals in hardware. Support those systems by separating CONFIG_BACKLIGHT_LID and CONFIG_BACKLIGHT_REQ_GPIO, and add tests for the case where the enable signal is dependent only on the lid position. BUG=chrome-os-partner:22960 BRANCH=none TEST=pass unit tests Change-Id: I1909426e49f00a8acd5047fd88c801cba1dacd76 Reviewed-on: https://chromium-review.googlesource.com/170925 Tested-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Queue: Randall Spangler <rspangler@chromium.org>
25 lines
563 B
C
25 lines
563 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.
|
|
*/
|
|
|
|
/* Backlight API for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_BACKLIGHT_H
|
|
#define __CROS_EC_BACKLIGHT_H
|
|
|
|
#include "common.h"
|
|
|
|
/**
|
|
* Interrupt handler for backlight.
|
|
*
|
|
* @param signal Signal which triggered the interrupt.
|
|
*/
|
|
#ifdef CONFIG_BACKLIGHT_REQ_GPIO
|
|
void backlight_interrupt(enum gpio_signal signal);
|
|
#else
|
|
#define backlight_interrupt NULL
|
|
#endif
|
|
|
|
#endif /* __CROS_EC_BACKLIGHT_H */
|