PPC: E500: Add FSL I2C controller and integrate RTC with it
commit7abb479c7abd1f03da09f34cd77d25ecf66aac82
authorAndrew Randrianasulu <randrianasulu@gmail.com>
Wed, 6 Mar 2019 10:28:12 +0000 (6 13:28 +0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2019 03:33:04 +0000 (12 14:33 +1100)
treef517d5d2ae764e69457b07109dc1c025eedac70d
parent68f9f7084146b48acb68c606b81edcb04d69d41c
PPC: E500: Add FSL I2C controller and integrate RTC with it

Original commit message:
This patch adds an emulation model for i2c controller found on most of the FSL SoCs.
It also integrates the RTC (ds1338) that sits on the i2c Bus with e500 machine model.

Patch was originally written by Amit Singh Tomar <amit.tomar@freescale.com>
see http://patchwork.ozlabs.org/patch/431475/
I only fixed it enough for application on top of current qemu master
20b084c4b1401b7f8fbc385649d48c67b6f43d44, and hopefully fixed checkpatch errors

Tested by booting Linux kernel 4.20.12. Now e500 machine doesn't need
network time protocol daemon because it will have working RTC
(before all timestamps on files were from 2016)

Signed-off-by: Amit Singh Tomar <amit.tomar@freescale.com>
Signed-off-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Message-Id: <20190306102812.28972-1-randrianasulu@gmail.com>
[dwg: Add Kconfig stanza to define the new symbol, update MAINTAINERS]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
MAINTAINERS
default-configs/ppc-softmmu.mak
hw/i2c/Kconfig
hw/i2c/Makefile.objs
hw/i2c/mpc_i2c.c [new file with mode: 0644]
hw/ppc/e500.c