]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
i2c: Add drivers for the AMD PCIe MP2 I2C controller
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 25 Apr 2019 04:43:36 +0000 (12:43 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 15 May 2019 12:46:29 +0000 (14:46 +0200)
commit7642bbb1842e74b10e1c424b33002ccb082012cb
tree328ce74fda87fb5c88fe6b76fcac5e504c114042
parent3a9503a601b3f6bdb1035c690266360b336db60b
i2c: Add drivers for the AMD PCIe MP2 I2C controller

BugLink: https://bugs.launchpad.net/bugs/1787775
From: Elie Morisse <syniurge@gmail.com>

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>
(backported from commit 529766e0a0114438887382a68d97341fbf8349fb linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Kleber Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
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]