2018-12-28 15:32:00 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2008-10-08 18:42:29 +07:00
|
|
|
/*
|
|
|
|
* SH7203 Pinmux
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Magnus Damm
|
|
|
|
*/
|
|
|
|
|
2013-02-17 01:23:58 +07:00
|
|
|
#include <linux/bug.h>
|
2008-10-08 18:42:29 +07:00
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/kernel.h>
|
2013-02-17 01:23:58 +07:00
|
|
|
#include <linux/ioport.h>
|
2012-12-16 05:51:05 +07:00
|
|
|
#include <cpu/pfc.h>
|
2008-10-08 18:42:29 +07:00
|
|
|
|
2013-02-17 01:23:58 +07:00
|
|
|
static struct resource sh7203_pfc_resources[] = {
|
|
|
|
[0] = {
|
|
|
|
.start = 0xfffe3800,
|
|
|
|
.end = 0xfffe3a9f,
|
|
|
|
.flags = IORESOURCE_MEM,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2008-10-08 18:42:29 +07:00
|
|
|
static int __init plat_pinmux_setup(void)
|
|
|
|
{
|
2013-02-17 01:23:58 +07:00
|
|
|
return sh_pfc_register("pfc-sh7203", sh7203_pfc_resources,
|
|
|
|
ARRAY_SIZE(sh7203_pfc_resources));
|
2008-10-08 18:42:29 +07:00
|
|
|
}
|
|
|
|
arch_initcall(plat_pinmux_setup);
|