- 19 10月, 2019 3 次提交
-
-
由 Tzung-Bi Shih 提交于
Extract DMIC EC command from I2S RX. Setting and getting microphone gains is common features. Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-By: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20191014180059.03.I93d9c65964f3c30f85a36d228e31150ff1917706@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Tzung-Bi Shih 提交于
Refactor by the following items: - reformat copyright declaration - use more specific name "i2s rx" - use verbose symbol names to separate namespaces - make some short functions inline - remove unused TDM-related code Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-By: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20191014180059.02.I43373b9a66dbb70196b3f216b3aa86111c410836@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Tzung-Bi Shih 提交于
Remove unused EC_FEATURE_AUDIO_CODEC. Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-By: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20191014180059.01.I374c311eaca0d47944a37b07acbe48fdb74f734d@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 02 9月, 2019 1 次提交
-
-
由 Enric Balletbo i Serra 提交于
There is a bit of mess between cros-ec mfd includes and platform includes. For example, we have a linux/mfd/cros_ec.h include that exports the interface implemented in platform/chrome/cros_ec_proto.c. Or we have a linux/mfd/cros_ec_commands.h file that is non related to the multifunction device (in the sense that is not exporting any function of the mfd device). This causes crossed includes between mfd and platform/chrome subsystems and makes the code difficult to read, apart from creating 'curious' situations where a platform/chrome driver includes a linux/mfd/cros_ec.h file just to get the exported functions that are implemented in another platform/chrome driver. In order to have a better separation on what the cros-ec multifunction driver does and what the cros-ec core provides move and rework the affected includes doing: - Move cros_ec_commands.h to include/linux/platform_data/cros_ec_commands.h - Get rid of the parts that are implemented in the platform/chrome/cros_ec_proto.c driver from include/linux/mfd/cros_ec.h to a new file include/linux/platform_data/cros_ec_proto.h - Update all the drivers with the new includes, so - Drivers that only need to know about the protocol include - linux/platform_data/cros_ec_proto.h - linux/platform_data/cros_ec_commands.h - Drivers that need to know about the cros-ec mfd device also include - linux/mfd/cros_ec.h Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: NMark Brown <broonie@kernel.org> Acked-by: NWolfram Sang <wsa@the-dreams.de> Acked-by: NNeil Armstrong <narmstrong@baylibre.com> Acked-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: NJonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: NSebastian Reichel <sebastian.reichel@collabora.com> Acked-by: NChanwoo Choi <cw00.choi@samsung.com> Reviewed-by: NGwendal Grignou <gwendal@chromium.org> Tested-by: NGwendal Grignou <gwendal@chromium.org> Series changes: 3 - Fix dereferencing pointer to incomplete type 'struct cros_ec_dev' (lkp) Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 12 8月, 2019 1 次提交
-
-
由 Yicheng Li 提交于
Update cros_ec_commands.h to match the fingerprint MCU section in the current ec_commands.h Signed-off-by: NYicheng Li <yichengli@chromium.org> Reviewed-by: NGwendal Grignou <gwendal@chromium.org> Reviewed-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 10 6月, 2019 30 次提交
-
-
由 Gwendal Grignou 提交于
Improve I2S API. Rename ec_response_codec_gain into ec_codec_i2s_gain, update caller accordlingly. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add commands for test and management. Add command space for future development. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API to store SKU, Cros board information in EC flash memory. Add API to store security data in EC. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add command to retrieve signature of image stored in the RW memory slot(s). Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API for fingerprint sensor presented by embedded controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API to control touchpad presented by Embedded Controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Allow EC to talk to other ECs that are not presented to the host. Neeed when EC are present in detachable keyboard. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Prevent direct i2c access to device behind EC when not in development mode. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API to update battery firmware. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add support for controlling hibernation of the Embedded Controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add command to allow keyboard testing in factory. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API for USB Powe delivery and power management. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API to retrieve temperature information. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add support for fingerprint sensors managed by embedded controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API between EC and Host to report events. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add new command for batched mode, add support for more sensors. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Introduce a new transport procotol between EC and host. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API to verify EC image signature. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
New API split commands, improve EC command latency. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API for fan control. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Added for supporting larger embedded controller flash. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Empty structure size is different between C and C++. To prevent clang warning when compiling this include file in C++ programs, remove empty structures. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Move near the end of file. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add more fields and improve API when EC presents data through ACPI memory space. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Replace (1 << ...) with BIT(). Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
This change is required for compilation of embedded controller firmware to work properly (See CONFIG_HOSTCMD_SECTION_SORTED). Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
To reduce code and improve performance of the embedded controller firmware, pragma __aligned(2) or __aligned(4) are used when alignment to 16 or 32 bit boundary is expected. Define all ec_align to packed when compiling kernel. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Fix comments syntax and spelling errors. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Defined out build macro used when compiling embedded controller firmware. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Update to SPDX-License-Identifier, GPL-2.0 Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 05 6月, 2019 1 次提交
-
-
由 Thomas Gleixner 提交于
Based on 1 normalized pattern(s): this software is licensed under the terms of the gnu general public license version 2 as published by the free software foundation and may be copied distributed and modified under those terms this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 285 file(s). Signed-off-by: NThomas Gleixner <tglx@linutronix.de> Reviewed-by: NAlexios Zavras <alexios.zavras@intel.com> Reviewed-by: NAllison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141900.642774971@linutronix.deSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 14 5月, 2019 3 次提交
-
-
由 Enric Balletbo i Serra 提交于
Update the feature enum for the Chromebook Embedded Controller to the latest version. Some of these enums are still not used in the kernel but we might be also interested on have these enums up to date. Userspace can use them to query the features to the EC via the cros-ec character device. While here, also fix a typo in one comment in the enum. Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Evan Green 提交于
Introduce the command and response structures for the second revision of the host sleep event. These structures are part of a new EC change that enables detection of failure to enter S0ix. The EC waits a kernel-specified timeout (or a default amount of time) for the S0_SLP pin to change, and wakes the system if that change does not occur in time. Signed-off-by: NEvan Green <evgreen@chromium.org> Reviewed-by: NRajat Jain <rajatja@chromium.org> Reviewed-by: NGuenter Roeck <groeck@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Rushikesh S Kadam 提交于
Integrated Sensor Hub (ISH) is also a MCU running EC having feature bit EC_FEATURE_ISH. Instantiate it as a special CrOS EC device with device name 'cros_ish'. Signed-off-by: NRushikesh S Kadam <rushikesh.s.kadam@intel.com> Reviewed-by: NAndy Shevchenko <andriy.shevchenko@intel.com> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: NGwendal Grignou <gwendal@chromium.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 03 1月, 2019 1 次提交
-
-
由 Cheng-Yi Chiang 提交于
Add EC host commands to control codec on EC. Signed-off-by: NCheng-Yi Chiang <cychiang@chromium.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-