1*add5ca2cSKuninori Morimoto // SPDX-License-Identifier: GPL-2.0 20835f127SMagnus Damm /* 30835f127SMagnus Damm * SH7785 Pinmux 40835f127SMagnus Damm * 50835f127SMagnus Damm * Copyright (C) 2008 Magnus Damm 60835f127SMagnus Damm */ 70835f127SMagnus Damm 86b1a2637SLaurent Pinchart #include <linux/bug.h> 90835f127SMagnus Damm #include <linux/init.h> 100835f127SMagnus Damm #include <linux/kernel.h> 116b1a2637SLaurent Pinchart #include <linux/ioport.h> 1277bd27b2SLaurent Pinchart #include <cpu/pfc.h> 130835f127SMagnus Damm 146b1a2637SLaurent Pinchart static struct resource sh7785_pfc_resources[] = { 156b1a2637SLaurent Pinchart [0] = { 166b1a2637SLaurent Pinchart .start = 0xffe70000, 176b1a2637SLaurent Pinchart .end = 0xffe7008f, 186b1a2637SLaurent Pinchart .flags = IORESOURCE_MEM, 196b1a2637SLaurent Pinchart }, 206b1a2637SLaurent Pinchart }; 216b1a2637SLaurent Pinchart plat_pinmux_setup(void)220835f127SMagnus Dammstatic int __init plat_pinmux_setup(void) 230835f127SMagnus Damm { 246b1a2637SLaurent Pinchart return sh_pfc_register("pfc-sh7785", sh7785_pfc_resources, 256b1a2637SLaurent Pinchart ARRAY_SIZE(sh7785_pfc_resources)); 260835f127SMagnus Damm } 270835f127SMagnus Damm arch_initcall(plat_pinmux_setup); 28