mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
i2c: Add drivers for the AMD PCIe MP2 I2C controller
MP2 controllers have two separate busses, so may accommodate up to two I2C adapters. Those adapters are listed in the ACPI namespace with the "AMDI0011" HID, and probed by a platform driver. Communication with the MP2 takes place through MMIO registers, or through DMA for more than 32 bytes transfers. This is major rework of the patch submitted by Nehal-bakulchandra Shah from AMD (https://patchwork.kernel.org/patch/10597369/). Most of the event handling of v3 was rewritten to make it work with more than one bus (e.g on Ryzen-based Lenovo Yoga 530), and this version contains many other improvements. Signed-off-by: Elie Morisse <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
36ea73cb9a
commit
529766e0a0
7 changed files with 1111 additions and 0 deletions
23
Documentation/i2c/busses/i2c-amd-mp2
Normal file
23
Documentation/i2c/busses/i2c-amd-mp2
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Kernel driver i2c-amd-mp2
|
||||
|
||||
Supported adapters:
|
||||
* AMD MP2 PCIe interface
|
||||
|
||||
Datasheet: not publicly available.
|
||||
|
||||
Authors:
|
||||
Shyam Sundar S K <[email protected]>
|
||||
Nehal Shah <[email protected]>
|
||||
Elie Morisse <[email protected]>
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
The MP2 is an ARM processor programmed as an I2C controller and communicating
|
||||
with the x86 host through PCI.
|
||||
|
||||
If you see something like this:
|
||||
|
||||
03:00.7 MP2 I2C controller: Advanced Micro Devices, Inc. [AMD] Device 15e6
|
||||
|
||||
in your 'lspci -v', then this driver is for your device.
|
||||
Loading…
Reference in a new issue