i2c: Add drivers for the AMD PCIe MP2 I2C controller
authorElie Morisse <syniurge@gmail.com>
Tue, 5 Mar 2019 15:13:19 +0000 (12:13 -0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 25 Mar 2019 14:21:17 +0000 (15:21 +0100)
commit529766e0a0114438887382a68d97341fbf8349fb
treef395ffc1566849462bba7005cd81c8e22146bd71
parent36ea73cb9a42aaf67451f6a9373777363a6ce508
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 <syniurge@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/i2c/busses/i2c-amd-mp2 [new file with mode: 0644]
MAINTAINERS
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-amd-mp2-pci.c [new file with mode: 0644]
drivers/i2c/busses/i2c-amd-mp2-plat.c [new file with mode: 0644]
drivers/i2c/busses/i2c-amd-mp2.h [new file with mode: 0644]