]> git.proxmox.com Git - mirror_qemu.git/commit - hw/misc/macio/macio.c
ppc: Fix macio ESCC legacy mapping
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 2 Aug 2016 09:22:43 +0000 (19:22 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 7 Sep 2016 02:40:12 +0000 (12:40 +1000)
commitdd2fa4f72d1ce44ce1635fe3a744bd47d8f2ab05
tree5c1566cb872b9a28e5fc4840b3269abf0b278d31
parent3654fa95bc29e72c2eef22f26eb621af1f86feec
ppc: Fix macio ESCC legacy mapping

The current mapping, while correct for the base ports (which is all the
driver uses these days), is wrong for the extended registers.

I suspect the bugs come from incorrect tables in the CHRP IO Ref document,
I have verified the new values here match Apple's MacTech.pdf.

Note: Nothing that I know of actually uses these registers so it's not a
huge deal, but this patch has the added advantage of adding comments to
document what the registers are.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/macio/macio.c