ppc440_sdram: Move RAM size check to ppc440_sdram_init
commitef10aebb9a71f0c60f0b7aae808498333bb7bfd9
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 24 Sep 2022 12:28:03 +0000 (24 14:28 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Oct 2022 19:15:09 +0000 (17 16:15 -0300)
treefd50f47f16ab6726dcaad03da43dcca6a3dbdc3f
parent1e545fbc88bb5abe21553972a2244f272153476d
ppc440_sdram: Move RAM size check to ppc440_sdram_init

Move the check for valid memory sizes from board to sdram controller
init. This adds the missing valid memory sizes of 16 and 8 MiB to the
DoC and the board now only checks for additional restrictions imposed
by its firmware then sdram init checks for valid sizes for SoC.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <41da3797392acaacc7963b79512c8af8005fa4b0.1664021647.git.balaton@eik.bme.hu>
[danielhb: avoid 4*GiB size due to 32 bit build problems]
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/ppc440.h
hw/ppc/ppc440_uc.c
hw/ppc/sam460ex.c