]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c
Merge tag 'sh-pinmux' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[mirror_ubuntu-focal-kernel.git] / arch / sh / kernel / cpu / sh4a / pinmux-sh7734.c
CommitLineData
856cb4bb
NI
1/*
2 * SH7734 processor support - PFC hardware block
3 *
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
10 */
5e9e6371 11#include <linux/bug.h>
856cb4bb
NI
12#include <linux/init.h>
13#include <linux/kernel.h>
856cb4bb 14#include <linux/ioport.h>
2c172182 15#include <cpu/pfc.h>
856cb4bb
NI
16
17static struct resource sh7734_pfc_resources[] = {
18 [0] = { /* PFC */
19 .start = 0xFFFC0000,
20 .end = 0xFFFC011C,
21 .flags = IORESOURCE_MEM,
22 },
23 [1] = { /* GPIO */
24 .start = 0xFFC40000,
25 .end = 0xFFC4502B,
26 .flags = IORESOURCE_MEM,
27 }
28};
29
856cb4bb
NI
30static int __init plat_pinmux_setup(void)
31{
5e9e6371
LP
32 return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources,
33 ARRAY_SIZE(sh7734_pfc_resources));
856cb4bb
NI
34}
35arch_initcall(plat_pinmux_setup);