OSDN Git Service

ppc4xx_sdram: Generalise bank setup
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 19 Oct 2022 16:02:57 +0000 (18:02 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:15:23 +0000 (13:15 -0300)
commit424a660c58a6b950363d42b79a30e651c1037550
treebdbf3f952b41bcf196b66283cd55b16df1dc2ea5
parent61cfe0df903c1c1a0654781db0788da9cd4da32a
ppc4xx_sdram: Generalise bank setup

Currently only base and size are set on initial bank creation and bcr
value is computed on mapping the region. Set bcr at init so the bcr
encoding method becomes local to the controller model and mapping and
unmapping can operate on the bank so it can be shared between
different controller models. This patch converts the DDR2 controller.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <51b957b4b2d714a1072aa2589b979e08411640df.1666194485.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/ppc4xx_sdram.c
hw/ppc/trace-events