| 
									
										
										
										
											2010-10-02 19:20:51 +09:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * SH-X3 prototype CPU pinmux | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2010  Paul Mundt | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This file is subject to the terms and conditions of the GNU General Public | 
					
						
							|  |  |  |  * License.  See the file "COPYING" in the main directory of this archive | 
					
						
							|  |  |  |  * for more details. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2013-02-16 19:23:58 +01:00
										 |  |  | #include <linux/bug.h>
 | 
					
						
							| 
									
										
										
										
											2010-10-02 19:20:51 +09:00
										 |  |  | #include <linux/init.h>
 | 
					
						
							|  |  |  | #include <linux/kernel.h>
 | 
					
						
							| 
									
										
										
										
											2013-02-16 19:23:58 +01:00
										 |  |  | #include <linux/ioport.h>
 | 
					
						
							| 
									
										
										
										
											2012-12-15 23:51:16 +01:00
										 |  |  | #include <cpu/pfc.h>
 | 
					
						
							| 
									
										
										
										
											2010-10-02 19:20:51 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-16 19:23:58 +01:00
										 |  |  | static struct resource shx3_pfc_resources[] = { | 
					
						
							|  |  |  | 	[0] = { | 
					
						
							|  |  |  | 		.start	= 0xffc70000, | 
					
						
							|  |  |  | 		.end	= 0xffc7001f, | 
					
						
							|  |  |  | 		.flags	= IORESOURCE_MEM, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int __init plat_pinmux_setup(void) | 
					
						
							| 
									
										
										
										
											2010-10-02 19:20:51 +09:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2013-02-16 19:23:58 +01:00
										 |  |  | 	return sh_pfc_register("pfc-shx3", shx3_pfc_resources, | 
					
						
							|  |  |  | 			       ARRAY_SIZE(shx3_pfc_resources)); | 
					
						
							| 
									
										
										
										
											2010-10-02 19:20:51 +09:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2013-02-16 19:23:58 +01:00
										 |  |  | arch_initcall(plat_pinmux_setup); |