From: qianfan Zhao <qianfangui...@163.com> v1: 2023-03-02
The first three patches try fix allwinner i2c driver and I already send them as a standalone PR and can read it from: https://patchwork.kernel.org/project/qemu-devel/patch/20230220081252.25348-3-qianfangui...@163.com/ Hope that patch can merged first before this. The next patches will add allwinner R40 device support, including ccu, mmc, i2c, axp221 pmic, sdram controller, emac and gmac. Now the mainline u-boot and kernel can work fine (It doesn't support booting allwinner bsp code and there are no plans to support it now). qianfan Zhao (12): hw: allwinner-i2c: Make the trace message more readable hw: allwinner-i2c: Fix TWI_CNTR_INT_FLAG on SUN6i SoCs hw: arm: allwinner-h3: Fix and complete H3 i2c devices hw: arm: Add bananapi M2-Ultra and allwinner-r40 support hw/arm/allwinner-r40: add Clock Control Unit hw: allwinner-r40: Complete uart devices hw: arm: allwinner-r40: Add 5 TWI controllers hw/misc: AXP221 PMU Emulation hw/arm/allwinner-r40: add SDRAM controller device hw: sd: allwinner-sdhost: Add sun50i-a64 SoC support hw: arm: allwinner-r40: Fix the mmc controller's type hw: arm: allwinner-r40: Add emac and gmac support configs/devices/arm-softmmu/default.mak | 1 + hw/arm/Kconfig | 10 + hw/arm/allwinner-h3.c | 29 +- hw/arm/allwinner-r40.c | 555 ++++++++++++++++++++++++ hw/arm/bananapi_m2u.c | 128 ++++++ hw/arm/meson.build | 1 + hw/i2c/allwinner-i2c.c | 136 +++++- hw/i2c/trace-events | 5 +- hw/misc/Kconfig | 4 + hw/misc/allwinner-r40-ccu.c | 207 +++++++++ hw/misc/allwinner-r40-dramc.c | 499 +++++++++++++++++++++ hw/misc/axp221.c | 196 +++++++++ hw/misc/meson.build | 3 + hw/misc/trace-events | 19 + hw/sd/allwinner-sdhost.c | 70 ++- include/hw/arm/allwinner-h3.h | 6 + include/hw/arm/allwinner-r40.h | 148 +++++++ include/hw/i2c/allwinner-i2c.h | 6 + include/hw/misc/allwinner-r40-ccu.h | 65 +++ include/hw/misc/allwinner-r40-dramc.h | 108 +++++ include/hw/sd/allwinner-sdhost.h | 9 + 21 files changed, 2191 insertions(+), 14 deletions(-) create mode 100644 hw/arm/allwinner-r40.c create mode 100644 hw/arm/bananapi_m2u.c create mode 100644 hw/misc/allwinner-r40-ccu.c create mode 100644 hw/misc/allwinner-r40-dramc.c create mode 100644 hw/misc/axp221.c create mode 100644 include/hw/arm/allwinner-r40.h create mode 100644 include/hw/misc/allwinner-r40-ccu.h create mode 100644 include/hw/misc/allwinner-r40-dramc.h -- 2.25.1