ARM PBX-A9 memory map tweaks
Add core tile memeory to the RealView PBX-A9 board. Document the memeory maps that are known to work with the qemu bootloader. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
		
							parent
							
								
									209bf9658a
								
							
						
					
					
						commit
						21a8894168
					
				@ -192,11 +192,19 @@ static void realview_init(ram_addr_t ram_size,
 | 
				
			|||||||
        proc_id = 0x02000000;
 | 
					        proc_id = 0x02000000;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (is_pb && ram_size > 0x20000000) {
 | 
				
			||||||
 | 
					        /* Core tile RAM.  */
 | 
				
			||||||
 | 
					        low_ram_size = ram_size - 0x20000000;
 | 
				
			||||||
 | 
					        ram_size = 0x20000000;
 | 
				
			||||||
 | 
					        ram_offset = qemu_ram_alloc(low_ram_size);
 | 
				
			||||||
 | 
					        cpu_register_physical_memory(0x20000000, low_ram_size,
 | 
				
			||||||
 | 
					                                     ram_offset | IO_MEM_RAM);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ram_offset = qemu_ram_alloc(ram_size);
 | 
					    ram_offset = qemu_ram_alloc(ram_size);
 | 
				
			||||||
    low_ram_size = ram_size;
 | 
					    low_ram_size = ram_size;
 | 
				
			||||||
    if (low_ram_size > 0x10000000)
 | 
					    if (low_ram_size > 0x10000000)
 | 
				
			||||||
      low_ram_size = 0x10000000;
 | 
					      low_ram_size = 0x10000000;
 | 
				
			||||||
    /* ??? RAM should repeat to fill physical memory space.  */
 | 
					 | 
				
			||||||
    /* SDRAM at address zero.  */
 | 
					    /* SDRAM at address zero.  */
 | 
				
			||||||
    cpu_register_physical_memory(0, low_ram_size, ram_offset | IO_MEM_RAM);
 | 
					    cpu_register_physical_memory(0, low_ram_size, ram_offset | IO_MEM_RAM);
 | 
				
			||||||
    if (is_pb) {
 | 
					    if (is_pb) {
 | 
				
			||||||
@ -356,7 +364,7 @@ static void realview_init(ram_addr_t ram_size,
 | 
				
			|||||||
    realview_binfo.initrd_filename = initrd_filename;
 | 
					    realview_binfo.initrd_filename = initrd_filename;
 | 
				
			||||||
    realview_binfo.nb_cpus = smp_cpus;
 | 
					    realview_binfo.nb_cpus = smp_cpus;
 | 
				
			||||||
    realview_binfo.board_id = realview_board_id[board_type];
 | 
					    realview_binfo.board_id = realview_board_id[board_type];
 | 
				
			||||||
    realview_binfo.loader_start = is_pb ? 0x70000000 : 0;
 | 
					    realview_binfo.loader_start = (board_type == BOARD_PB_A8 ? 0x70000000 : 0);
 | 
				
			||||||
    arm_load_kernel(first_cpu, &realview_binfo);
 | 
					    arm_load_kernel(first_cpu, &realview_binfo);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1659,8 +1659,17 @@ LSI53C895A PCI SCSI Host Bus Adapter with hard disk and CD-ROM devices.
 | 
				
			|||||||
PL181 MultiMedia Card Interface with SD card.
 | 
					PL181 MultiMedia Card Interface with SD card.
 | 
				
			||||||
@end itemize
 | 
					@end itemize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The ARM RealView Emulation/Platform baseboard is emulated with the following
 | 
					Several variants of the ARM RealView baseboard are emulated,
 | 
				
			||||||
devices:
 | 
					including the EB, PB-A8 and PBX-A9.  Due to interactions with the
 | 
				
			||||||
 | 
					bootloader, only certain Linux kernel configurations work out
 | 
				
			||||||
 | 
					of the box on these boards.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Kernels for the PB-A8 board should have CONFIG_REALVIEW_HIGH_PHYS_OFFSET
 | 
				
			||||||
 | 
					enabled in the kernel, and expect 512M RAM.  Kernels for The PBX-A9 board
 | 
				
			||||||
 | 
					should have CONFIG_SPARSEMEM enabled, CONFIG_REALVIEW_HIGH_PHYS_OFFSET
 | 
				
			||||||
 | 
					disabled and expect 1024M RAM.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The following devices are emuilated:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@itemize @minus
 | 
					@itemize @minus
 | 
				
			||||||
@item
 | 
					@item
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user