aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Damm <damm+renesas@opensource.se>2014-06-17 03:48:01 -0400
committerSimon Horman <horms+renesas@verge.net.au>2014-06-17 04:09:40 -0400
commit62872989bdbf1245d7239b9f4c05a8ee7c775ed5 (patch)
treedb60b4d8f260a72eb098c538c082e5c5425ec492
parent585c09df3738d4f72cee36eb0b975351fd9a339a (diff)
ARM: shmobile: Move rcar-gen2.h, cleanup r8a7790 case
Change location of rcar-gen2.h so it can be used as #include "rcar-gen2.h" instead of the old style #include <mach/rcar-gen2.h>. Also clean up the r8a7790 case to follow the same style as r8a7791. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/mach-shmobile/board-koelsch-reference.c2
-rw-r--r--arch/arm/mach-shmobile/board-koelsch.c2
-rw-r--r--arch/arm/mach-shmobile/board-lager-reference.c2
-rw-r--r--arch/arm/mach-shmobile/board-lager.c1
-rw-r--r--arch/arm/mach-shmobile/clock-r8a7790.c1
-rw-r--r--arch/arm/mach-shmobile/clock-r8a7791.c2
-rw-r--r--arch/arm/mach-shmobile/include/mach/r8a7790.h2
-rw-r--r--arch/arm/mach-shmobile/rcar-gen2.h (renamed from arch/arm/mach-shmobile/include/mach/rcar-gen2.h)0
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7790.c1
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7791.c2
-rw-r--r--arch/arm/mach-shmobile/setup-rcar-gen2.c2
-rw-r--r--arch/arm/mach-shmobile/smp-r8a7791.c2
12 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c
index 10fd0858c98c..1d3f67d4ccd6 100644
--- a/arch/arm/mach-shmobile/board-koelsch-reference.c
+++ b/arch/arm/mach-shmobile/board-koelsch-reference.c
@@ -23,12 +23,12 @@
23#include <linux/kernel.h> 23#include <linux/kernel.h>
24#include <linux/of_platform.h> 24#include <linux/of_platform.h>
25#include <linux/platform_data/rcar-du.h> 25#include <linux/platform_data/rcar-du.h>
26#include <mach/rcar-gen2.h>
27#include <mach/r8a7791.h> 26#include <mach/r8a7791.h>
28#include <asm/mach/arch.h> 27#include <asm/mach/arch.h>
29#include "clock.h" 28#include "clock.h"
30#include "common.h" 29#include "common.h"
31#include "irqs.h" 30#include "irqs.h"
31#include "rcar-gen2.h"
32 32
33/* DU */ 33/* DU */
34static struct rcar_du_encoder_data koelsch_du_encoders[] = { 34static struct rcar_du_encoder_data koelsch_du_encoders[] = {
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index 1d8b6e6bebdb..0d44e7eb6508 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -46,11 +46,11 @@
46#include <linux/spi/rspi.h> 46#include <linux/spi/rspi.h>
47#include <linux/spi/spi.h> 47#include <linux/spi/spi.h>
48#include <mach/r8a7791.h> 48#include <mach/r8a7791.h>
49#include <mach/rcar-gen2.h>
50#include <asm/mach-types.h> 49#include <asm/mach-types.h>
51#include <asm/mach/arch.h> 50#include <asm/mach/arch.h>
52#include "common.h" 51#include "common.h"
53#include "irqs.h" 52#include "irqs.h"
53#include "rcar-gen2.h"
54 54
55/* DU */ 55/* DU */
56static struct rcar_du_encoder_data koelsch_du_encoders[] = { 56static struct rcar_du_encoder_data koelsch_du_encoders[] = {
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c
index 6e1a2618a8d1..4f0af91ebc81 100644
--- a/arch/arm/mach-shmobile/board-lager-reference.c
+++ b/arch/arm/mach-shmobile/board-lager-reference.c
@@ -22,12 +22,12 @@
22#include <linux/init.h> 22#include <linux/init.h>
23#include <linux/of_platform.h> 23#include <linux/of_platform.h>
24#include <linux/platform_data/rcar-du.h> 24#include <linux/platform_data/rcar-du.h>
25#include <mach/rcar-gen2.h>
26#include <mach/r8a7790.h> 25#include <mach/r8a7790.h>
27#include <asm/mach/arch.h> 26#include <asm/mach/arch.h>
28#include "clock.h" 27#include "clock.h"
29#include "common.h" 28#include "common.h"
30#include "irqs.h" 29#include "irqs.h"
30#include "rcar-gen2.h"
31 31
32/* DU */ 32/* DU */
33static struct rcar_du_encoder_data lager_du_encoders[] = { 33static struct rcar_du_encoder_data lager_du_encoders[] = {
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
index f0249ca237eb..83bbb5c48863 100644
--- a/arch/arm/mach-shmobile/board-lager.c
+++ b/arch/arm/mach-shmobile/board-lager.c
@@ -58,6 +58,7 @@
58#include <sound/simple_card.h> 58#include <sound/simple_card.h>
59#include "common.h" 59#include "common.h"
60#include "irqs.h" 60#include "irqs.h"
61#include "rcar-gen2.h"
61 62
62/* 63/*
63 * SSI-AK4643 64 * SSI-AK4643
diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c
index b6781a0ea747..ca980669806f 100644
--- a/arch/arm/mach-shmobile/clock-r8a7790.c
+++ b/arch/arm/mach-shmobile/clock-r8a7790.c
@@ -25,6 +25,7 @@
25#include <mach/r8a7790.h> 25#include <mach/r8a7790.h>
26#include "clock.h" 26#include "clock.h"
27#include "common.h" 27#include "common.h"
28#include "rcar-gen2.h"
28 29
29/* 30/*
30 * MD EXTAL PLL0 PLL1 PLL3 31 * MD EXTAL PLL0 PLL1 PLL3
diff --git a/arch/arm/mach-shmobile/clock-r8a7791.c b/arch/arm/mach-shmobile/clock-r8a7791.c
index 494aaf69461a..10e193d707f5 100644
--- a/arch/arm/mach-shmobile/clock-r8a7791.c
+++ b/arch/arm/mach-shmobile/clock-r8a7791.c
@@ -23,9 +23,9 @@
23#include <linux/kernel.h> 23#include <linux/kernel.h>
24#include <linux/sh_clk.h> 24#include <linux/sh_clk.h>
25#include <linux/clkdev.h> 25#include <linux/clkdev.h>
26#include <mach/rcar-gen2.h>
27#include "clock.h" 26#include "clock.h"
28#include "common.h" 27#include "common.h"
28#include "rcar-gen2.h"
29 29
30/* 30/*
31 * MD EXTAL PLL0 PLL1 PLL3 31 * MD EXTAL PLL0 PLL1 PLL3
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h
index 0b95babe84ba..d7555440fc7b 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7790.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h
@@ -1,8 +1,6 @@
1#ifndef __ASM_R8A7790_H__ 1#ifndef __ASM_R8A7790_H__
2#define __ASM_R8A7790_H__ 2#define __ASM_R8A7790_H__
3 3
4#include <mach/rcar-gen2.h>
5
6/* DMA slave IDs */ 4/* DMA slave IDs */
7enum { 5enum {
8 RCAR_DMA_SLAVE_INVALID, 6 RCAR_DMA_SLAVE_INVALID,
diff --git a/arch/arm/mach-shmobile/include/mach/rcar-gen2.h b/arch/arm/mach-shmobile/rcar-gen2.h
index 43f606eb2d82..43f606eb2d82 100644
--- a/arch/arm/mach-shmobile/include/mach/rcar-gen2.h
+++ b/arch/arm/mach-shmobile/rcar-gen2.h
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index 7bbe5c05d2a5..4212c8de987a 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -31,6 +31,7 @@
31#include "common.h" 31#include "common.h"
32#include "dma-register.h" 32#include "dma-register.h"
33#include "irqs.h" 33#include "irqs.h"
34#include "rcar-gen2.h"
34 35
35/* Audio-DMAC */ 36/* Audio-DMAC */
36#define AUDIO_DMAC_SLAVE(_id, _addr, t, r) \ 37#define AUDIO_DMAC_SLAVE(_id, _addr, t, r) \
diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c
index 6d8c61f42895..f554cda4a96a 100644
--- a/arch/arm/mach-shmobile/setup-r8a7791.c
+++ b/arch/arm/mach-shmobile/setup-r8a7791.c
@@ -27,10 +27,10 @@
27#include <linux/serial_sci.h> 27#include <linux/serial_sci.h>
28#include <linux/sh_timer.h> 28#include <linux/sh_timer.h>
29#include <mach/r8a7791.h> 29#include <mach/r8a7791.h>
30#include <mach/rcar-gen2.h>
31#include <asm/mach/arch.h> 30#include <asm/mach/arch.h>
32#include "common.h" 31#include "common.h"
33#include "irqs.h" 32#include "irqs.h"
33#include "rcar-gen2.h"
34 34
35static const struct resource pfc_resources[] __initconst = { 35static const struct resource pfc_resources[] __initconst = {
36 DEFINE_RES_MEM(0xe6060000, 0x250), 36 DEFINE_RES_MEM(0xe6060000, 0x250),
diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index 1c41227bb770..fdc714ebc4cd 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -22,9 +22,9 @@
22#include <linux/clocksource.h> 22#include <linux/clocksource.h>
23#include <linux/io.h> 23#include <linux/io.h>
24#include <linux/kernel.h> 24#include <linux/kernel.h>
25#include <mach/rcar-gen2.h>
26#include <asm/mach/arch.h> 25#include <asm/mach/arch.h>
27#include "common.h" 26#include "common.h"
27#include "rcar-gen2.h"
28 28
29#define MODEMR 0xe6160060 29#define MODEMR 0xe6160060
30 30
diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c
index bf88c66b3c18..2648d68650e4 100644
--- a/arch/arm/mach-shmobile/smp-r8a7791.c
+++ b/arch/arm/mach-shmobile/smp-r8a7791.c
@@ -19,8 +19,8 @@
19#include <linux/io.h> 19#include <linux/io.h>
20#include <asm/smp_plat.h> 20#include <asm/smp_plat.h>
21#include <mach/r8a7791.h> 21#include <mach/r8a7791.h>
22#include <mach/rcar-gen2.h>
23#include "common.h" 22#include "common.h"
23#include "rcar-gen2.h"
24 24
25#define RST 0xe6160000 25#define RST 0xe6160000
26#define CA15BAR 0x0020 26#define CA15BAR 0x0020