diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-01-27 06:24:15 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-02-02 05:01:28 -0500 |
commit | edd942247fe69b0488e6dc2da97f415b3bc09545 (patch) | |
tree | 0f74cd7d82630558e86dfdd9fed42ee0e5057a15 /arch/arm | |
parent | 6bd3e3f491062f075c689345763b6172d8438007 (diff) |
ARM: at91: remove at91_boot_soc
at91_boot_soc and at91_init_soc structures are not used by any SoC, remove
their use. Also remove all the now empty SoC files.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
[nicolas.ferre@atmel.com: different organization of the patches]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-at91/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91rm9200.c | 32 | ||||
-rw-r--r-- | arch/arm/mach-at91/sama5d3.c | 29 | ||||
-rw-r--r-- | arch/arm/mach-at91/sama5d4.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-at91/setup.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-at91/soc.h | 41 |
6 files changed, 1 insertions, 142 deletions
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index ad7fc5834188..3362f51ffd82 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile | |||
@@ -7,9 +7,7 @@ obj-y := setup.o | |||
7 | obj-$(CONFIG_SOC_AT91SAM9) += sam9_smc.o | 7 | obj-$(CONFIG_SOC_AT91SAM9) += sam9_smc.o |
8 | 8 | ||
9 | # CPU-specific support | 9 | # CPU-specific support |
10 | obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o at91rm9200_time.o | 10 | obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200_time.o |
11 | obj-$(CONFIG_SOC_SAMA5D3) += sama5d3.o | ||
12 | obj-$(CONFIG_SOC_SAMA5D4) += sama5d4.o | ||
13 | 11 | ||
14 | # AT91SAM board with device-tree | 12 | # AT91SAM board with device-tree |
15 | obj-$(CONFIG_SOC_AT91RM9200) += board-dt-rm9200.o | 13 | obj-$(CONFIG_SOC_AT91RM9200) += board-dt-rm9200.o |
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c deleted file mode 100644 index ae0d5f0eb108..000000000000 --- a/arch/arm/mach-at91/at91rm9200.c +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91/at91rm9200.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/clk/at91_pmc.h> | ||
15 | |||
16 | #include <asm/mach/map.h> | ||
17 | #include <asm/system_misc.h> | ||
18 | #include <mach/at91_st.h> | ||
19 | #include <mach/hardware.h> | ||
20 | |||
21 | #include "soc.h" | ||
22 | #include "generic.h" | ||
23 | |||
24 | |||
25 | |||
26 | /* -------------------------------------------------------------------- | ||
27 | * AT91RM9200 processor initialization | ||
28 | * -------------------------------------------------------------------- */ | ||
29 | |||
30 | |||
31 | AT91_SOC_START(at91rm9200) | ||
32 | AT91_SOC_END | ||
diff --git a/arch/arm/mach-at91/sama5d3.c b/arch/arm/mach-at91/sama5d3.c deleted file mode 100644 index b7c64ca7107f..000000000000 --- a/arch/arm/mach-at91/sama5d3.c +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* | ||
2 | * Chip-specific setup code for the SAMA5D3 family | ||
3 | * | ||
4 | * Copyright (C) 2013 Atmel, | ||
5 | * 2013 Ludovic Desroches <ludovic.desroches@atmel.com> | ||
6 | * | ||
7 | * Licensed under GPLv2 or later. | ||
8 | */ | ||
9 | |||
10 | #include <linux/module.h> | ||
11 | #include <linux/dma-mapping.h> | ||
12 | #include <linux/clk/at91_pmc.h> | ||
13 | |||
14 | #include <asm/irq.h> | ||
15 | #include <asm/mach/arch.h> | ||
16 | #include <asm/mach/map.h> | ||
17 | #include <mach/sama5d3.h> | ||
18 | #include <mach/cpu.h> | ||
19 | |||
20 | #include "soc.h" | ||
21 | #include "generic.h" | ||
22 | #include "sam9_smc.h" | ||
23 | |||
24 | /* -------------------------------------------------------------------- | ||
25 | * AT91SAM9x5 processor initialization | ||
26 | * -------------------------------------------------------------------- */ | ||
27 | |||
28 | AT91_SOC_START(sama5d3) | ||
29 | AT91_SOC_END | ||
diff --git a/arch/arm/mach-at91/sama5d4.c b/arch/arm/mach-at91/sama5d4.c deleted file mode 100644 index 268f2d238f80..000000000000 --- a/arch/arm/mach-at91/sama5d4.c +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * Chip-specific setup code for the SAMA5D4 family | ||
3 | * | ||
4 | * Copyright (C) 2013 Atmel Corporation, | ||
5 | * Nicolas Ferre <nicolas.ferre@atmel.com> | ||
6 | * | ||
7 | * Licensed under GPLv2 or later. | ||
8 | */ | ||
9 | |||
10 | #include <linux/module.h> | ||
11 | #include <linux/dma-mapping.h> | ||
12 | #include <linux/clk/at91_pmc.h> | ||
13 | |||
14 | #include <asm/irq.h> | ||
15 | #include <asm/mach/arch.h> | ||
16 | #include <asm/mach/map.h> | ||
17 | #include <mach/sama5d4.h> | ||
18 | #include <mach/cpu.h> | ||
19 | #include <mach/hardware.h> | ||
20 | |||
21 | #include "soc.h" | ||
22 | #include "generic.h" | ||
23 | #include "sam9_smc.h" | ||
24 | |||
25 | /* -------------------------------------------------------------------- | ||
26 | * Processor initialization | ||
27 | * -------------------------------------------------------------------- */ | ||
28 | |||
29 | AT91_SOC_START(sama5d4) | ||
30 | AT91_SOC_END | ||
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index af6086b69bb1..b6a903410b92 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -22,12 +22,9 @@ | |||
22 | #include <mach/cpu.h> | 22 | #include <mach/cpu.h> |
23 | #include <mach/at91_dbgu.h> | 23 | #include <mach/at91_dbgu.h> |
24 | 24 | ||
25 | #include "soc.h" | ||
26 | #include "generic.h" | 25 | #include "generic.h" |
27 | #include "pm.h" | 26 | #include "pm.h" |
28 | 27 | ||
29 | struct at91_init_soc __initdata at91_boot_soc; | ||
30 | |||
31 | struct at91_socinfo at91_soc_initdata; | 28 | struct at91_socinfo at91_soc_initdata; |
32 | EXPORT_SYMBOL(at91_soc_initdata); | 29 | EXPORT_SYMBOL(at91_soc_initdata); |
33 | 30 | ||
@@ -60,7 +57,6 @@ static void __init soc_detect(u32 dbgu_base) | |||
60 | at91_soc_initdata.type = AT91_SOC_RM9200; | 57 | at91_soc_initdata.type = AT91_SOC_RM9200; |
61 | if (at91_soc_initdata.subtype == AT91_SOC_SUBTYPE_UNKNOWN) | 58 | if (at91_soc_initdata.subtype == AT91_SOC_SUBTYPE_UNKNOWN) |
62 | at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA; | 59 | at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA; |
63 | at91_boot_soc = at91rm9200_soc; | ||
64 | break; | 60 | break; |
65 | 61 | ||
66 | case ARCH_ID_AT91SAM9260: | 62 | case ARCH_ID_AT91SAM9260: |
@@ -106,7 +102,6 @@ static void __init soc_detect(u32 dbgu_base) | |||
106 | at91_soc_initdata.exid = __raw_readl(AT91_IO_P2V(dbgu_base) + AT91_DBGU_EXID); | 102 | at91_soc_initdata.exid = __raw_readl(AT91_IO_P2V(dbgu_base) + AT91_DBGU_EXID); |
107 | if (at91_soc_initdata.exid & ARCH_EXID_SAMA5D3) { | 103 | if (at91_soc_initdata.exid & ARCH_EXID_SAMA5D3) { |
108 | at91_soc_initdata.type = AT91_SOC_SAMA5D3; | 104 | at91_soc_initdata.type = AT91_SOC_SAMA5D3; |
109 | at91_boot_soc = sama5d3_soc; | ||
110 | } | 105 | } |
111 | break; | 106 | break; |
112 | } | 107 | } |
@@ -199,10 +194,8 @@ static void __init alt_soc_detect(u32 dbgu_base) | |||
199 | at91_soc_initdata.exid = __raw_readl(AT91_ALT_IO_P2V(dbgu_base) + AT91_DBGU_EXID); | 194 | at91_soc_initdata.exid = __raw_readl(AT91_ALT_IO_P2V(dbgu_base) + AT91_DBGU_EXID); |
200 | if (at91_soc_initdata.exid & ARCH_EXID_SAMA5D3) { | 195 | if (at91_soc_initdata.exid & ARCH_EXID_SAMA5D3) { |
201 | at91_soc_initdata.type = AT91_SOC_SAMA5D3; | 196 | at91_soc_initdata.type = AT91_SOC_SAMA5D3; |
202 | at91_boot_soc = sama5d3_soc; | ||
203 | } else if (at91_soc_initdata.exid & ARCH_EXID_SAMA5D4) { | 197 | } else if (at91_soc_initdata.exid & ARCH_EXID_SAMA5D4) { |
204 | at91_soc_initdata.type = AT91_SOC_SAMA5D4; | 198 | at91_soc_initdata.type = AT91_SOC_SAMA5D4; |
205 | at91_boot_soc = sama5d4_soc; | ||
206 | } | 199 | } |
207 | break; | 200 | break; |
208 | } | 201 | } |
diff --git a/arch/arm/mach-at91/soc.h b/arch/arm/mach-at91/soc.h deleted file mode 100644 index 0593dcceb287..000000000000 --- a/arch/arm/mach-at91/soc.h +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | ||
3 | * | ||
4 | * Under GPLv2 | ||
5 | */ | ||
6 | |||
7 | struct at91_init_soc { | ||
8 | int builtin; | ||
9 | void (*map_io)(void); | ||
10 | }; | ||
11 | |||
12 | extern struct at91_init_soc at91_boot_soc; | ||
13 | extern struct at91_init_soc at91rm9200_soc; | ||
14 | extern struct at91_init_soc sama5d3_soc; | ||
15 | extern struct at91_init_soc sama5d4_soc; | ||
16 | |||
17 | #define AT91_SOC_START(_name) \ | ||
18 | struct at91_init_soc __initdata _name##_soc \ | ||
19 | __used \ | ||
20 | = { \ | ||
21 | .builtin = 1, \ | ||
22 | |||
23 | #define AT91_SOC_END \ | ||
24 | }; | ||
25 | |||
26 | static inline int at91_soc_is_enabled(void) | ||
27 | { | ||
28 | return at91_boot_soc.builtin; | ||
29 | } | ||
30 | |||
31 | #if !defined(CONFIG_SOC_AT91RM9200) | ||
32 | #define at91rm9200_soc at91_boot_soc | ||
33 | #endif | ||
34 | |||
35 | #if !defined(CONFIG_SOC_SAMA5D3) | ||
36 | #define sama5d3_soc at91_boot_soc | ||
37 | #endif | ||
38 | |||
39 | #if !defined(CONFIG_SOC_SAMA5D4) | ||
40 | #define sama5d4_soc at91_boot_soc | ||
41 | #endif | ||