Commit c3323806 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

sh-pfc: Move sh_pfc.h from include/linux/ to driver directory

The header file isn't used by arch code anymore. Make it private to the
driver.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarPaul Mundt <lethal@linux-sh.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent b93911e3
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/pinctrl/machine.h> #include <linux/pinctrl/machine.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/sh_pfc.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "core.h" #include "core.h"
......
...@@ -11,9 +11,10 @@ ...@@ -11,9 +11,10 @@
#define __SH_PFC_CORE_H__ #define __SH_PFC_CORE_H__
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/sh_pfc.h>
#include <linux/types.h> #include <linux/types.h>
#include "sh_pfc.h"
struct sh_pfc_window { struct sh_pfc_window {
phys_addr_t phys; phys_addr_t phys;
void __iomem *virt; void __iomem *virt;
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pinctrl/consumer.h> #include <linux/pinctrl/consumer.h>
#include <linux/sh_pfc.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
......
...@@ -19,10 +19,11 @@ ...@@ -19,10 +19,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/r8a7740.h> #include <mach/r8a7740.h>
#include <mach/irqs.h> #include <mach/irqs.h>
#include "sh_pfc.h"
#define CPU_ALL_PORT(fn, pfx, sfx) \ #define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \ PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \ PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \
......
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/r8a7779.h> #include <mach/r8a7779.h>
#include "sh_pfc.h"
#define CPU_32_PORT(fn, pfx, sfx) \ #define CPU_32_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \ PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7203.h> #include <cpu/sh7203.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7264.h> #include <cpu/sh7264.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -11,9 +11,10 @@ ...@@ -11,9 +11,10 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7269.h> #include <cpu/sh7269.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -21,10 +21,11 @@ ...@@ -21,10 +21,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/irqs.h> #include <mach/irqs.h>
#include <mach/sh7372.h> #include <mach/sh7372.h>
#include "sh_pfc.h"
#define CPU_ALL_PORT(fn, pfx, sfx) \ #define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \ PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
PORT_10(fn, pfx##10, sfx), PORT_10(fn, pfx##11, sfx), \ PORT_10(fn, pfx##10, sfx), PORT_10(fn, pfx##11, sfx), \
......
...@@ -19,10 +19,11 @@ ...@@ -19,10 +19,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/sh73a0.h> #include <mach/sh73a0.h>
#include <mach/irqs.h> #include <mach/irqs.h>
#include "sh_pfc.h"
#define CPU_ALL_PORT(fn, pfx, sfx) \ #define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
PORT_10(fn, pfx##2, sfx), PORT_10(fn, pfx##3, sfx), \ PORT_10(fn, pfx##2, sfx), PORT_10(fn, pfx##3, sfx), \
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7720.h> #include <cpu/sh7720.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7722.h> #include <cpu/sh7722.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7723.h> #include <cpu/sh7723.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7724.h> #include <cpu/sh7724.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7734.h> #include <cpu/sh7734.h>
#include "sh_pfc.h"
#define CPU_32_PORT(fn, pfx, sfx) \ #define CPU_32_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \ PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \
......
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7757.h> #include <cpu/sh7757.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7785.h> #include <cpu/sh7785.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7786.h> #include <cpu/sh7786.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -9,9 +9,10 @@ ...@@ -9,9 +9,10 @@
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/shx3.h> #include <cpu/shx3.h>
#include "sh_pfc.h"
enum { enum {
PINMUX_RESERVED = 0, PINMUX_RESERVED = 0,
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/pinctrl/pinconf-generic.h> #include <linux/pinctrl/pinconf-generic.h>
#include <linux/pinctrl/pinctrl.h> #include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinmux.h> #include <linux/pinctrl/pinmux.h>
#include <linux/sh_pfc.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment