msm: Add memory map for HTC Dream
Add memory map to HTC Dream, so that boot can proceed further. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
This commit is contained in:
		
					parent
					
						
							
								348ee123a1
							
						
					
				
			
			
				commit
				
					
						5c43d49aec
					
				
			
		
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -21,6 +21,7 @@
 | 
				
			||||||
#include <asm/mach-types.h>
 | 
					#include <asm/mach-types.h>
 | 
				
			||||||
#include <asm/mach/arch.h>
 | 
					#include <asm/mach/arch.h>
 | 
				
			||||||
#include <asm/mach/map.h>
 | 
					#include <asm/mach/map.h>
 | 
				
			||||||
 | 
					#include <asm/setup.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <mach/board.h>
 | 
					#include <mach/board.h>
 | 
				
			||||||
#include <mach/hardware.h>
 | 
					#include <mach/hardware.h>
 | 
				
			||||||
| 
						 | 
					@ -44,6 +45,15 @@ static void __init trout_init_irq(void)
 | 
				
			||||||
	msm_init_irq();
 | 
						msm_init_irq();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
 | 
				
			||||||
 | 
									char **cmdline, struct meminfo *mi)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						mi->nr_banks = 1;
 | 
				
			||||||
 | 
						mi->bank[0].start = PHYS_OFFSET;
 | 
				
			||||||
 | 
						mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET);
 | 
				
			||||||
 | 
						mi->bank[0].size = (101*1024*1024);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void __init trout_init(void)
 | 
					static void __init trout_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	platform_add_devices(devices, ARRAY_SIZE(devices));
 | 
						platform_add_devices(devices, ARRAY_SIZE(devices));
 | 
				
			||||||
| 
						 | 
					@ -75,6 +85,7 @@ MACHINE_START(TROUT, "HTC Dream")
 | 
				
			||||||
	.phys_io	= MSM_DEBUG_UART_PHYS,
 | 
						.phys_io	= MSM_DEBUG_UART_PHYS,
 | 
				
			||||||
	.io_pg_offst	= ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
 | 
						.io_pg_offst	= ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
 | 
				
			||||||
	.boot_params	= 0x10000100,
 | 
						.boot_params	= 0x10000100,
 | 
				
			||||||
 | 
						.fixup		= trout_fixup,
 | 
				
			||||||
	.map_io		= trout_map_io,
 | 
						.map_io		= trout_map_io,
 | 
				
			||||||
	.init_irq	= trout_init_irq,
 | 
						.init_irq	= trout_init_irq,
 | 
				
			||||||
	.init_machine	= trout_init,
 | 
						.init_machine	= trout_init,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue