ppc440_sdram: QOM'ify
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 24 Sep 2022 12:28:05 +0000 (14:28 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Oct 2022 19:15:09 +0000 (16:15 -0300)
commit5f7effe4df91702add08e3e3dc1871fd35a8903f
tree89358baf72693eebfcda20b276612de1d74dfc94
parentef10aebb9a71f0c60f0b7aae808498333bb7bfd9
ppc440_sdram: QOM'ify

Change the ppc440_sdram model to a QOM class derived from the
PPC4xx-dcr-device and name it ppc4xx-sdram-ddr2. This is mostly
modelling the DDR2 SDRAM controller found in the 460EX (used on the
sam460ex board). Newer SoCs (regardless of their PPC core, e.g. 405EX)
may have this controller but we only emulate enough of it for the
sam460ex u-boot firmware.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <3e82ae575c7c41e464a0082d55ecb4ebcc4d4329.1664021647.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/ppc440.h
hw/ppc/ppc440_uc.c
hw/ppc/sam460ex.c
include/hw/ppc/ppc4xx.h