| 
									
										
										
										
											2013-01-18 15:12:20 +05:30
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2015-02-20 19:12:18 +05:30
										 |  |  |  * ARC simulation Platform support code | 
					
						
							| 
									
										
										
										
											2013-01-18 15:12:20 +05:30
										 |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <linux/init.h>
 | 
					
						
							| 
									
										
										
										
											2013-01-23 16:32:48 +05:30
										 |  |  | #include <asm/mach_desc.h>
 | 
					
						
							| 
									
										
										
										
											2014-09-10 19:05:38 +05:30
										 |  |  | #include <asm/mcip.h>
 | 
					
						
							| 
									
										
										
										
											2013-01-18 15:12:20 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-01-23 16:32:48 +05:30
										 |  |  | /*----------------------- Machine Descriptions ------------------------------
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Machine description is simply a set of platform/board specific callbacks | 
					
						
							|  |  |  |  * This is not directly related to DeviceTree based dynamic device creation, | 
					
						
							|  |  |  |  * however as part of early device tree scan, we also select the right | 
					
						
							|  |  |  |  * callback set, by matching the DT compatible name. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-10 11:08:39 +05:30
										 |  |  | static const char *simulation_compat[] __initconst = { | 
					
						
							|  |  |  | 	"snps,nsim", | 
					
						
							| 
									
										
										
										
											2015-03-09 14:30:19 +05:30
										 |  |  | 	"snps,nsim_hs", | 
					
						
							| 
									
										
										
										
											2013-04-18 11:40:39 +02:00
										 |  |  | 	"snps,nsimosci", | 
					
						
							| 
									
										
										
										
											2015-03-09 14:30:19 +05:30
										 |  |  | 	"snps,nsimosci_hs", | 
					
						
							| 
									
										
										
										
											2013-04-18 11:40:39 +02:00
										 |  |  | 	NULL, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-10 11:08:39 +05:30
										 |  |  | MACHINE_START(SIMULATION, "simulation") | 
					
						
							|  |  |  | 	.dt_compat	= simulation_compat, | 
					
						
							| 
									
										
										
										
											2014-09-10 19:05:38 +05:30
										 |  |  | #ifdef CONFIG_ARC_MCIP
 | 
					
						
							|  |  |  | 	.init_early	= mcip_init_early_smp, | 
					
						
							|  |  |  | 	.init_smp	= mcip_init_smp, | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2013-04-18 11:40:39 +02:00
										 |  |  | MACHINE_END |