aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/Kconfig4
-rw-r--r--arch/arm/mach-at91/at91rm9200.c6
-rw-r--r--arch/arm/mach-at91/at91sam9260.c6
-rw-r--r--arch/arm/mach-at91/at91sam9263.c6
-rw-r--r--arch/arm/mach-at91/at91sam9g45.c6
5 files changed, 20 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 45b55e0f0db6..6cc6f7aebdae 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -113,14 +113,12 @@ config SOC_AT91RM9200
113 select HAVE_AT91_DBGU0 113 select HAVE_AT91_DBGU0
114 select MULTI_IRQ_HANDLER 114 select MULTI_IRQ_HANDLER
115 select SPARSE_IRQ 115 select SPARSE_IRQ
116 select AT91_USE_OLD_CLK
117 select HAVE_AT91_USB_CLK 116 select HAVE_AT91_USB_CLK
118 117
119config SOC_AT91SAM9260 118config SOC_AT91SAM9260
120 bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20" 119 bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
121 select HAVE_AT91_DBGU0 120 select HAVE_AT91_DBGU0
122 select SOC_AT91SAM9 121 select SOC_AT91SAM9
123 select AT91_USE_OLD_CLK
124 select HAVE_AT91_USB_CLK 122 select HAVE_AT91_USB_CLK
125 help 123 help
126 Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE 124 Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
@@ -140,7 +138,6 @@ config SOC_AT91SAM9263
140 select HAVE_AT91_DBGU1 138 select HAVE_AT91_DBGU1
141 select HAVE_FB_ATMEL 139 select HAVE_FB_ATMEL
142 select SOC_AT91SAM9 140 select SOC_AT91SAM9
143 select AT91_USE_OLD_CLK
144 select HAVE_AT91_USB_CLK 141 select HAVE_AT91_USB_CLK
145 142
146config SOC_AT91SAM9RL 143config SOC_AT91SAM9RL
@@ -155,7 +152,6 @@ config SOC_AT91SAM9G45
155 select HAVE_AT91_DBGU1 152 select HAVE_AT91_DBGU1
156 select HAVE_FB_ATMEL 153 select HAVE_FB_ATMEL
157 select SOC_AT91SAM9 154 select SOC_AT91SAM9
158 select AT91_USE_OLD_CLK
159 select HAVE_AT91_UTMI 155 select HAVE_AT91_UTMI
160 select HAVE_AT91_USB_CLK 156 select HAVE_AT91_USB_CLK
161 help 157 help
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c
index 787bb50a4dff..038702ee8bc6 100644
--- a/arch/arm/mach-at91/at91rm9200.c
+++ b/arch/arm/mach-at91/at91rm9200.c
@@ -26,10 +26,11 @@
26#include "at91_aic.h" 26#include "at91_aic.h"
27#include "soc.h" 27#include "soc.h"
28#include "generic.h" 28#include "generic.h"
29#include "clock.h"
30#include "sam9_smc.h" 29#include "sam9_smc.h"
31#include "pm.h" 30#include "pm.h"
32 31
32#if defined(CONFIG_OLD_CLK_AT91)
33#include "clock.h"
33/* -------------------------------------------------------------------- 34/* --------------------------------------------------------------------
34 * Clocks 35 * Clocks
35 * -------------------------------------------------------------------- */ 36 * -------------------------------------------------------------------- */
@@ -277,6 +278,9 @@ static void __init at91rm9200_register_clocks(void)
277 clk_register(&pck2); 278 clk_register(&pck2);
278 clk_register(&pck3); 279 clk_register(&pck3);
279} 280}
281#else
282#define at91rm9200_register_clocks NULL
283#endif
280 284
281/* -------------------------------------------------------------------- 285/* --------------------------------------------------------------------
282 * GPIO 286 * GPIO
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c
index c3d22be73b7c..3477ba94c4c5 100644
--- a/arch/arm/mach-at91/at91sam9260.c
+++ b/arch/arm/mach-at91/at91sam9260.c
@@ -27,10 +27,11 @@
27#include "at91_rstc.h" 27#include "at91_rstc.h"
28#include "soc.h" 28#include "soc.h"
29#include "generic.h" 29#include "generic.h"
30#include "clock.h"
31#include "sam9_smc.h" 30#include "sam9_smc.h"
32#include "pm.h" 31#include "pm.h"
33 32
33#if defined(CONFIG_OLD_CLK_AT91)
34#include "clock.h"
34/* -------------------------------------------------------------------- 35/* --------------------------------------------------------------------
35 * Clocks 36 * Clocks
36 * -------------------------------------------------------------------- */ 37 * -------------------------------------------------------------------- */
@@ -288,6 +289,9 @@ static void __init at91sam9260_register_clocks(void)
288 clk_register(&pck0); 289 clk_register(&pck0);
289 clk_register(&pck1); 290 clk_register(&pck1);
290} 291}
292#else
293#define at91sam9260_register_clocks NULL
294#endif
291 295
292/* -------------------------------------------------------------------- 296/* --------------------------------------------------------------------
293 * GPIO 297 * GPIO
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c
index f30290572293..c07465361947 100644
--- a/arch/arm/mach-at91/at91sam9263.c
+++ b/arch/arm/mach-at91/at91sam9263.c
@@ -25,10 +25,11 @@
25#include "at91_rstc.h" 25#include "at91_rstc.h"
26#include "soc.h" 26#include "soc.h"
27#include "generic.h" 27#include "generic.h"
28#include "clock.h"
29#include "sam9_smc.h" 28#include "sam9_smc.h"
30#include "pm.h" 29#include "pm.h"
31 30
31#if defined(CONFIG_OLD_CLK_AT91)
32#include "clock.h"
32/* -------------------------------------------------------------------- 33/* --------------------------------------------------------------------
33 * Clocks 34 * Clocks
34 * -------------------------------------------------------------------- */ 35 * -------------------------------------------------------------------- */
@@ -280,6 +281,9 @@ static void __init at91sam9263_register_clocks(void)
280 clk_register(&pck2); 281 clk_register(&pck2);
281 clk_register(&pck3); 282 clk_register(&pck3);
282} 283}
284#else
285#define at91sam9263_register_clocks NULL
286#endif
283 287
284/* -------------------------------------------------------------------- 288/* --------------------------------------------------------------------
285 * GPIO 289 * GPIO
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c
index 9d3d544ac19c..0d5d85797cd6 100644
--- a/arch/arm/mach-at91/at91sam9g45.c
+++ b/arch/arm/mach-at91/at91sam9g45.c
@@ -25,10 +25,11 @@
25#include "at91_aic.h" 25#include "at91_aic.h"
26#include "soc.h" 26#include "soc.h"
27#include "generic.h" 27#include "generic.h"
28#include "clock.h"
29#include "sam9_smc.h" 28#include "sam9_smc.h"
30#include "pm.h" 29#include "pm.h"
31 30
31#if defined(CONFIG_OLD_CLK_AT91)
32#include "clock.h"
32/* -------------------------------------------------------------------- 33/* --------------------------------------------------------------------
33 * Clocks 34 * Clocks
34 * -------------------------------------------------------------------- */ 35 * -------------------------------------------------------------------- */
@@ -331,6 +332,9 @@ static void __init at91sam9g45_register_clocks(void)
331 clk_register(&pck0); 332 clk_register(&pck0);
332 clk_register(&pck1); 333 clk_register(&pck1);
333} 334}
335#else
336#define at91sam9g45_register_clocks NULL
337#endif
334 338
335/* -------------------------------------------------------------------- 339/* --------------------------------------------------------------------
336 * GPIO 340 * GPIO