Re: [PATCH REPOST v3 19/80] arm/mcimx7d-sabre: use memdev for RAM

2020-01-23 Thread Andrew Jones
On Thu, Jan 23, 2020 at 12:37:44PM +0100, Igor Mammedov wrote: > 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 >

[PATCH REPOST v3 19/80] arm/mcimx7d-sabre: use memdev for RAM

2020-01-23 Thread Igor Mammedov
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