i2c: designware: Add doorbell support for Mendocino
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 14 Apr 2023 14:40:08 +0000 (09:40 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Apr 2023 10:20:05 +0000 (18:20 +0800)
commit482c84e906e535072c55395acabd3a58e9443d12
treedeaa8a8e0d02aef6d549b1c28405294b0b233299
parent440da737cf8d35a1b2205678cc1879fa90948f7a
i2c: designware: Add doorbell support for Mendocino

Mendocino and later platform don't use the platform feature mailbox for
communication for I2C arbitration, they rely upon ringing a doorbell.

Detect the platform by the device ID of the root port and choose the
appropriate method.

Link: https://lore.kernel.org/linux-i2c/20220916131854.687371-3-jsd@semihalf.com/
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Mark Hasemeyer <markhas@chromium.org>
Tested-by: Mark Hasemeyer <markhas@chromium.org>
Acked-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-designware-amdpsp.c