arm/mcimx6ul-evk: use memdev for RAM
commit14dbfa556ba21cbf590b33bb66b8cb97728955a1
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:08:54 +0000 (19 11:08 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:49:55 +0000 (19 16:49 +0000)
treef4f4cf7a45bb75c0dfbf80312c9c016619c26e86
parent3865cfacfe470f71d0ca7332d8effe817809859d
arm/mcimx6ul-evk: use memdev for RAM

memory_region_allocate_system_memory() API is going away, so
replace it with memdev allocated MemoryRegion. The later is
initialized by generic code, so board only needs to opt in
to memdev scheme by providing
  MachineClass::default_ram_id
and using MachineState::ram instead of manually initializing
RAM memory region.

PS:
  remove no longer needed MCIMX6ULEVK

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200219160953.13771-21-imammedo@redhat.com>
hw/arm/mcimx6ul-evk.c