hw/riscv: microchip_pfsoc: Hook the I2C1 controller
commit90742c5496f3bf76203c0759f783444af10fb61a
authorBin Meng <bin.meng@windriver.com>
Wed, 28 Oct 2020 05:30:10 +0000 (28 13:30 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 3 Nov 2020 15:17:23 +0000 (3 07:17 -0800)
treedc8ee2b2723bab642a2b6e333a412ecc58d1950b
parentf03100d718579f022316349687dc9127ff01f0ee
hw/riscv: microchip_pfsoc: Hook the I2C1 controller

The latest SD card image [1] released by Microchip ships a Linux
kernel with built-in PolarFire SoC I2C driver support. The device
tree file includes the description for the I2C1 node hence kernel
tries to probe the I2C1 device during boot.

It is enough to create an unimplemented device for I2C1 to allow
the kernel to continue booting to the shell.

[1] ftp://ftpsoc.microsemi.com/outgoing/core-image-minimal-dev-icicle-kit-es-sd-20201009141623.rootfs.wic.gz

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 1603863010-15807-11-git-send-email-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/microchip_pfsoc.c
include/hw/riscv/microchip_pfsoc.h