diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-06 01:04:04 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-04-17 08:47:21 -0400 |
commit | 1441bd325bbbcd38d190b2444481b23cdf70069a (patch) | |
tree | 69755c66fdd8362fb71ecb7ab35bdfa4c23b4e3e /arch | |
parent | efd09165aa554f84a42565d5ae6a1af58b06a97a (diff) |
ARM: at91: add SOC_AT91SAM9 kconfig option to factorise select
This will allow to simplify the switch to multi soc in the same kernel.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 29 | ||||
-rw-r--r-- | arch/arm/mach-at91/Makefile | 17 |
2 files changed, 22 insertions, 24 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 885fdb93618b..40e31c7daf08 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -17,6 +17,11 @@ config AT91_SAM9G45_RESET | |||
17 | bool | 17 | bool |
18 | default !ARCH_AT91X40 | 18 | default !ARCH_AT91X40 |
19 | 19 | ||
20 | config SOC_AT91SAM9 | ||
21 | bool | ||
22 | select GENERIC_CLOCKEVENTS | ||
23 | select CPU_ARM926T | ||
24 | |||
20 | menu "Atmel AT91 System-on-Chip" | 25 | menu "Atmel AT91 System-on-Chip" |
21 | 26 | ||
22 | choice | 27 | choice |
@@ -30,51 +35,44 @@ config ARCH_AT91RM9200 | |||
30 | 35 | ||
31 | config ARCH_AT91SAM9260 | 36 | config ARCH_AT91SAM9260 |
32 | bool "AT91SAM9260 or AT91SAM9XE" | 37 | bool "AT91SAM9260 or AT91SAM9XE" |
33 | select CPU_ARM926T | 38 | select SOC_AT91SAM9 |
34 | select GENERIC_CLOCKEVENTS | ||
35 | select HAVE_AT91_DBGU0 | 39 | select HAVE_AT91_DBGU0 |
36 | select HAVE_NET_MACB | 40 | select HAVE_NET_MACB |
37 | 41 | ||
38 | config ARCH_AT91SAM9261 | 42 | config ARCH_AT91SAM9261 |
39 | bool "AT91SAM9261" | 43 | bool "AT91SAM9261" |
40 | select CPU_ARM926T | 44 | select SOC_AT91SAM9 |
41 | select GENERIC_CLOCKEVENTS | ||
42 | select HAVE_FB_ATMEL | 45 | select HAVE_FB_ATMEL |
43 | select HAVE_AT91_DBGU0 | 46 | select HAVE_AT91_DBGU0 |
44 | 47 | ||
45 | config ARCH_AT91SAM9G10 | 48 | config ARCH_AT91SAM9G10 |
46 | bool "AT91SAM9G10" | 49 | bool "AT91SAM9G10" |
47 | select CPU_ARM926T | 50 | select SOC_AT91SAM9 |
48 | select GENERIC_CLOCKEVENTS | ||
49 | select HAVE_AT91_DBGU0 | 51 | select HAVE_AT91_DBGU0 |
50 | select HAVE_FB_ATMEL | 52 | select HAVE_FB_ATMEL |
51 | 53 | ||
52 | config ARCH_AT91SAM9263 | 54 | config ARCH_AT91SAM9263 |
53 | bool "AT91SAM9263" | 55 | bool "AT91SAM9263" |
54 | select CPU_ARM926T | 56 | select SOC_AT91SAM9 |
55 | select GENERIC_CLOCKEVENTS | ||
56 | select HAVE_FB_ATMEL | 57 | select HAVE_FB_ATMEL |
57 | select HAVE_NET_MACB | 58 | select HAVE_NET_MACB |
58 | select HAVE_AT91_DBGU1 | 59 | select HAVE_AT91_DBGU1 |
59 | 60 | ||
60 | config ARCH_AT91SAM9RL | 61 | config ARCH_AT91SAM9RL |
61 | bool "AT91SAM9RL" | 62 | bool "AT91SAM9RL" |
62 | select CPU_ARM926T | 63 | select SOC_AT91SAM9 |
63 | select GENERIC_CLOCKEVENTS | ||
64 | select HAVE_FB_ATMEL | 64 | select HAVE_FB_ATMEL |
65 | select HAVE_AT91_DBGU0 | 65 | select HAVE_AT91_DBGU0 |
66 | 66 | ||
67 | config ARCH_AT91SAM9G20 | 67 | config ARCH_AT91SAM9G20 |
68 | bool "AT91SAM9G20" | 68 | bool "AT91SAM9G20" |
69 | select CPU_ARM926T | 69 | select SOC_AT91SAM9 |
70 | select GENERIC_CLOCKEVENTS | ||
71 | select HAVE_AT91_DBGU0 | 70 | select HAVE_AT91_DBGU0 |
72 | select HAVE_NET_MACB | 71 | select HAVE_NET_MACB |
73 | 72 | ||
74 | config ARCH_AT91SAM9G45 | 73 | config ARCH_AT91SAM9G45 |
75 | bool "AT91SAM9G45 or AT91SAM9M10 families" | 74 | bool "AT91SAM9G45 or AT91SAM9M10 families" |
76 | select CPU_ARM926T | 75 | select SOC_AT91SAM9 |
77 | select GENERIC_CLOCKEVENTS | ||
78 | select HAVE_FB_ATMEL | 76 | select HAVE_FB_ATMEL |
79 | select HAVE_NET_MACB | 77 | select HAVE_NET_MACB |
80 | select HAVE_AT91_DBGU1 | 78 | select HAVE_AT91_DBGU1 |
@@ -84,8 +82,7 @@ config ARCH_AT91SAM9G45 | |||
84 | 82 | ||
85 | config ARCH_AT91SAM9X5 | 83 | config ARCH_AT91SAM9X5 |
86 | bool "AT91SAM9x5 family" | 84 | bool "AT91SAM9x5 family" |
87 | select CPU_ARM926T | 85 | select SOC_AT91SAM9 |
88 | select GENERIC_CLOCKEVENTS | ||
89 | select HAVE_FB_ATMEL | 86 | select HAVE_FB_ATMEL |
90 | select HAVE_NET_MACB | 87 | select HAVE_NET_MACB |
91 | select HAVE_AT91_DBGU0 | 88 | select HAVE_AT91_DBGU0 |
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index 8512e53bed93..d97d0f4f4112 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile | |||
@@ -10,17 +10,18 @@ obj- := | |||
10 | obj-$(CONFIG_AT91_PMC_UNIT) += clock.o | 10 | obj-$(CONFIG_AT91_PMC_UNIT) += clock.o |
11 | obj-$(CONFIG_AT91_SAM9_ALT_RESET) += at91sam9_alt_reset.o | 11 | obj-$(CONFIG_AT91_SAM9_ALT_RESET) += at91sam9_alt_reset.o |
12 | obj-$(CONFIG_AT91_SAM9G45_RESET) += at91sam9g45_reset.o | 12 | obj-$(CONFIG_AT91_SAM9G45_RESET) += at91sam9g45_reset.o |
13 | obj-$(CONFIG_SOC_AT91SAM9) += at91sam926x_time.o sam9_smc.o | ||
13 | 14 | ||
14 | # CPU-specific support | 15 | # CPU-specific support |
15 | obj-$(CONFIG_ARCH_AT91RM9200) += at91rm9200.o at91rm9200_time.o at91rm9200_devices.o | 16 | obj-$(CONFIG_ARCH_AT91RM9200) += at91rm9200.o at91rm9200_time.o at91rm9200_devices.o |
16 | obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260.o at91sam926x_time.o at91sam9260_devices.o sam9_smc.o | 17 | obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260.o at91sam9260_devices.o |
17 | obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261.o at91sam926x_time.o at91sam9261_devices.o sam9_smc.o | 18 | obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261.o at91sam9261_devices.o |
18 | obj-$(CONFIG_ARCH_AT91SAM9G10) += at91sam9261.o at91sam926x_time.o at91sam9261_devices.o sam9_smc.o | 19 | obj-$(CONFIG_ARCH_AT91SAM9G10) += at91sam9261.o at91sam9261_devices.o |
19 | obj-$(CONFIG_ARCH_AT91SAM9263) += at91sam9263.o at91sam926x_time.o at91sam9263_devices.o sam9_smc.o | 20 | obj-$(CONFIG_ARCH_AT91SAM9263) += at91sam9263.o at91sam9263_devices.o |
20 | obj-$(CONFIG_ARCH_AT91SAM9RL) += at91sam9rl.o at91sam926x_time.o at91sam9rl_devices.o sam9_smc.o | 21 | obj-$(CONFIG_ARCH_AT91SAM9RL) += at91sam9rl.o at91sam9rl_devices.o |
21 | obj-$(CONFIG_ARCH_AT91SAM9G20) += at91sam9260.o at91sam926x_time.o at91sam9260_devices.o sam9_smc.o | 22 | obj-$(CONFIG_ARCH_AT91SAM9G20) += at91sam9260.o at91sam9260_devices.o |
22 | obj-$(CONFIG_ARCH_AT91SAM9G45) += at91sam9g45.o at91sam926x_time.o at91sam9g45_devices.o sam9_smc.o | 23 | obj-$(CONFIG_ARCH_AT91SAM9G45) += at91sam9g45.o at91sam9g45_devices.o |
23 | obj-$(CONFIG_ARCH_AT91SAM9X5) += at91sam9x5.o at91sam926x_time.o sam9_smc.o | 24 | obj-$(CONFIG_ARCH_AT91SAM9X5) += at91sam9x5.o |
24 | obj-$(CONFIG_ARCH_AT91X40) += at91x40.o at91x40_time.o | 25 | obj-$(CONFIG_ARCH_AT91X40) += at91x40.o at91x40_time.o |
25 | 26 | ||
26 | # AT91RM9200 board-specific support | 27 | # AT91RM9200 board-specific support |