On Tue, 27 Jul 2021 at 09:02, Joel Stanley <j...@jms.id.au> wrote: > > On Mon, 19 Jul 2021 at 16:02, Cédric Le Goater <c...@kaod.org> wrote: > > > > On 7/13/21 8:58 AM, Joel Stanley wrote: > > > The macro used to calculate the maximum memory size of the MMIO region > > > had a mistake, causing all GPIO models to create a mapping of 0x9D8. > > > The intent was to have it be 0x9D8 - 0x800. > > > > > > This extra size doesn't matter on ast2400 and ast2500, which have a 4KB > > > region set aside for the GPIO controller. > > > > > > On the ast2600 the 3.3V and 1.8V GPIO controllers are 2KB apart, so the > > > regions would overlap. Worse was the 1.8V controller would map over the > > > top of the following perianal, which happens to be the RTC.
I'm going to assume this is an unfortunate autocorrect for "following peripheral", and will tweak the commit message... > > > > > > The mmio region used by each device is a maximum of 2KB, so avoid the > > > calculations and hard code this as the maximum. > > > > > > Fixes: 36d737ee82b2 ("hw/gpio: Add in AST2600 specific implementation") > > > Signed-off-by: Joel Stanley <j...@jms.id.au> > > > > Reviewed-by: Cédric Le Goater <c...@kaod.org> > > Cedric, Peter; can we please get this merged for 6.1? Without it the > RTC model is not functional on the ast2500. I'm doing an arm pullreq today so I'll put it into that. thanks -- PMM