1720a6bd7SPaul Mundt /* 2720a6bd7SPaul Mundt * SH-X3 prototype CPU pinmux 3720a6bd7SPaul Mundt * 4720a6bd7SPaul Mundt * Copyright (C) 2010 Paul Mundt 5720a6bd7SPaul Mundt * 6720a6bd7SPaul Mundt * This file is subject to the terms and conditions of the GNU General Public 7720a6bd7SPaul Mundt * License. See the file "COPYING" in the main directory of this archive 8720a6bd7SPaul Mundt * for more details. 9720a6bd7SPaul Mundt */ 10a4b5a5e1SLaurent Pinchart #include <linux/bug.h> 11720a6bd7SPaul Mundt #include <linux/init.h> 12720a6bd7SPaul Mundt #include <linux/kernel.h> 13a4b5a5e1SLaurent Pinchart #include <linux/ioport.h> 143e347f08SLaurent Pinchart #include <cpu/pfc.h> 15720a6bd7SPaul Mundt 16a4b5a5e1SLaurent Pinchart static struct resource shx3_pfc_resources[] = { 17a4b5a5e1SLaurent Pinchart [0] = { 18a4b5a5e1SLaurent Pinchart .start = 0xffc70000, 19a4b5a5e1SLaurent Pinchart .end = 0xffc7001f, 20a4b5a5e1SLaurent Pinchart .flags = IORESOURCE_MEM, 21a4b5a5e1SLaurent Pinchart }, 22a4b5a5e1SLaurent Pinchart }; 23a4b5a5e1SLaurent Pinchart 24a4b5a5e1SLaurent Pinchart static int __init plat_pinmux_setup(void) 25720a6bd7SPaul Mundt { 26a4b5a5e1SLaurent Pinchart return sh_pfc_register("pfc-shx3", shx3_pfc_resources, 27a4b5a5e1SLaurent Pinchart ARRAY_SIZE(shx3_pfc_resources)); 28720a6bd7SPaul Mundt } 29a4b5a5e1SLaurent Pinchart arch_initcall(plat_pinmux_setup); 30