Linux Audio

Check our new training course

Loading...
v3.15
 
 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 */
11#include <linux/bug.h>
12#include <linux/init.h>
13#include <linux/kernel.h>
14#include <linux/ioport.h>
15#include <cpu/pfc.h>
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
30static int __init plat_pinmux_setup(void)
31{
32	return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources,
33			       ARRAY_SIZE(sh7734_pfc_resources));
34}
35arch_initcall(plat_pinmux_setup);
v6.2
 1// SPDX-License-Identifier: GPL-2.0
 2/*
 3 * SH7734 processor support - PFC hardware block
 4 *
 5 * Copyright (C) 2012  Renesas Solutions Corp.
 6 * Copyright (C) 2012  Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
 
 
 
 
 7 */
 8#include <linux/bug.h>
 9#include <linux/init.h>
10#include <linux/kernel.h>
11#include <linux/ioport.h>
12#include <cpu/pfc.h>
13
14static struct resource sh7734_pfc_resources[] = {
15	[0] = { /* PFC */
16		.start	= 0xFFFC0000,
17		.end	= 0xFFFC011C,
18		.flags	= IORESOURCE_MEM,
19	},
20	[1] = { /* GPIO */
21		.start	= 0xFFC40000,
22		.end	= 0xFFC4502B,
23		.flags	= IORESOURCE_MEM,
24	}
25};
26
27static int __init plat_pinmux_setup(void)
28{
29	return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources,
30			       ARRAY_SIZE(sh7734_pfc_resources));
31}
32arch_initcall(plat_pinmux_setup);