aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/cros_ec_lpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/chrome/cros_ec_lpc.c')
-rw-r--r--drivers/platform/chrome/cros_ec_lpc.c34
1 files changed, 12 insertions, 22 deletions
diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c
index 14684a56e40f..c9c240fbe7c6 100644
--- a/drivers/platform/chrome/cros_ec_lpc.c
+++ b/drivers/platform/chrome/cros_ec_lpc.c
@@ -1,25 +1,15 @@
1/* 1// SPDX-License-Identifier: GPL-2.0
2 * cros_ec_lpc - LPC access to the Chrome OS Embedded Controller 2// LPC interface for ChromeOS Embedded Controller
3 * 3//
4 * Copyright (C) 2012-2015 Google, Inc 4// Copyright (C) 2012-2015 Google, Inc
5 * 5//
6 * This software is licensed under the terms of the GNU General Public 6// This driver uses the ChromeOS EC byte-level message-based protocol for
7 * License version 2, as published by the Free Software Foundation, and 7// communicating the keyboard state (which keys are pressed) from a keyboard EC
8 * may be copied, distributed, and modified under those terms. 8// to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing,
9 * 9// but everything else (including deghosting) is done here. The main
10 * This program is distributed in the hope that it will be useful, 10// motivation for this is to keep the EC firmware as simple as possible, since
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11// it cannot be easily upgraded and EC flash/IRAM space is relatively
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12// expensive.
13 * GNU General Public License for more details.
14 *
15 * This driver uses the Chrome OS EC byte-level message-based protocol for
16 * communicating the keyboard state (which keys are pressed) from a keyboard EC
17 * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing,
18 * but everything else (including deghosting) is done here. The main
19 * motivation for this is to keep the EC firmware as simple as possible, since
20 * it cannot be easily upgraded and EC flash/IRAM space is relatively
21 * expensive.
22 */
23 13
24#include <linux/acpi.h> 14#include <linux/acpi.h>
25#include <linux/dmi.h> 15#include <linux/dmi.h>