diff options
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 23 | ||||
-rw-r--r-- | arch/arm/mach-at91/Kconfig.non_dt | 8 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_devices.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-at91/sam9_smc.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/setup.c | 2 |
5 files changed, 25 insertions, 17 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 4f0e800e7e71..9968f208b7df 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -57,6 +57,7 @@ config SOC_SAMA5 | |||
57 | select GENERIC_CLOCKEVENTS | 57 | select GENERIC_CLOCKEVENTS |
58 | select MULTI_IRQ_HANDLER | 58 | select MULTI_IRQ_HANDLER |
59 | select SPARSE_IRQ | 59 | select SPARSE_IRQ |
60 | select USE_OF | ||
60 | 61 | ||
61 | menu "Atmel AT91 System-on-Chip" | 62 | menu "Atmel AT91 System-on-Chip" |
62 | 63 | ||
@@ -64,11 +65,22 @@ choice | |||
64 | 65 | ||
65 | prompt "Core type" | 66 | prompt "Core type" |
66 | 67 | ||
68 | config ARCH_AT91X40 | ||
69 | bool "ARM7 AT91X40" | ||
70 | depends on !MMU | ||
71 | select CPU_ARM7TDMI | ||
72 | select ARCH_USES_GETTIMEOFFSET | ||
73 | select MULTI_IRQ_HANDLER | ||
74 | select SPARSE_IRQ | ||
75 | |||
76 | help | ||
77 | Select this if you are using one of Atmel's AT91X40 SoC. | ||
78 | |||
67 | config SOC_SAM_V4_V5 | 79 | config SOC_SAM_V4_V5 |
68 | bool "ARM7/ARM9" | 80 | bool "ARM9 AT91SAM9/AT91RM9200" |
69 | help | 81 | help |
70 | Select this if you are using one of Atmel's AT91SAM9, AT91RM9200 | 82 | Select this if you are using one of Atmel's AT91SAM9 or |
71 | or AT91X40 SoC. | 83 | AT91RM9200 SoC. |
72 | 84 | ||
73 | config SOC_SAM_V7 | 85 | config SOC_SAM_V7 |
74 | bool "Cortex A5" | 86 | bool "Cortex A5" |
@@ -179,9 +191,12 @@ config SOC_AT91SAM9N12 | |||
179 | Select this if you are using Atmel's AT91SAM9N12 SoC. | 191 | Select this if you are using Atmel's AT91SAM9N12 SoC. |
180 | 192 | ||
181 | # ---------------------------------------------------------- | 193 | # ---------------------------------------------------------- |
194 | endif # SOC_SAM_V4_V5 | ||
195 | |||
182 | 196 | ||
197 | if SOC_SAM_V4_V5 || ARCH_AT91X40 | ||
183 | source arch/arm/mach-at91/Kconfig.non_dt | 198 | source arch/arm/mach-at91/Kconfig.non_dt |
184 | endif # SOC_SAM_V4_V5 | 199 | endif |
185 | 200 | ||
186 | comment "Generic Board Type" | 201 | comment "Generic Board Type" |
187 | 202 | ||
diff --git a/arch/arm/mach-at91/Kconfig.non_dt b/arch/arm/mach-at91/Kconfig.non_dt index 1f73e9b527da..44ace320d2e1 100644 --- a/arch/arm/mach-at91/Kconfig.non_dt +++ b/arch/arm/mach-at91/Kconfig.non_dt | |||
@@ -5,6 +5,7 @@ config HAVE_AT91_DATAFLASH_CARD | |||
5 | 5 | ||
6 | choice | 6 | choice |
7 | prompt "Atmel AT91 Processor Devices for non DT boards" | 7 | prompt "Atmel AT91 Processor Devices for non DT boards" |
8 | depends on !ARCH_AT91X40 | ||
8 | 9 | ||
9 | config ARCH_AT91_NONE | 10 | config ARCH_AT91_NONE |
10 | bool "None" | 11 | bool "None" |
@@ -39,13 +40,6 @@ config ARCH_AT91SAM9G45 | |||
39 | select SOC_AT91SAM9G45 | 40 | select SOC_AT91SAM9G45 |
40 | select AT91_USE_OLD_CLK | 41 | select AT91_USE_OLD_CLK |
41 | 42 | ||
42 | config ARCH_AT91X40 | ||
43 | bool "AT91x40" | ||
44 | depends on !MMU | ||
45 | select ARCH_USES_GETTIMEOFFSET | ||
46 | select MULTI_IRQ_HANDLER | ||
47 | select SPARSE_IRQ | ||
48 | |||
49 | endchoice | 43 | endchoice |
50 | 44 | ||
51 | config ARCH_AT91SAM9G20 | 45 | config ARCH_AT91SAM9G20 |
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index eda8d1679d40..1630ae64d3fb 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -1255,12 +1255,8 @@ void __init at91_add_device_cf(struct at91_cf_data *data) | |||
1255 | at91_set_A_periph(AT91_PIN_PC10, 0); /* CFRNW */ | 1255 | at91_set_A_periph(AT91_PIN_PC10, 0); /* CFRNW */ |
1256 | at91_set_A_periph(AT91_PIN_PC15, 1); /* NWAIT */ | 1256 | at91_set_A_periph(AT91_PIN_PC15, 1); /* NWAIT */ |
1257 | 1257 | ||
1258 | if (data->flags & AT91_CF_TRUE_IDE) | 1258 | if (IS_ENABLED(CONFIG_PATA_AT91) && (data->flags & AT91_CF_TRUE_IDE)) |
1259 | #if defined(CONFIG_PATA_AT91) || defined(CONFIG_PATA_AT91_MODULE) | ||
1260 | pdev->name = "pata_at91"; | 1259 | pdev->name = "pata_at91"; |
1261 | #else | ||
1262 | #warning "board requires AT91_CF_TRUE_IDE: enable pata_at91" | ||
1263 | #endif | ||
1264 | else | 1260 | else |
1265 | pdev->name = "at91_cf"; | 1261 | pdev->name = "at91_cf"; |
1266 | 1262 | ||
diff --git a/arch/arm/mach-at91/sam9_smc.c b/arch/arm/mach-at91/sam9_smc.c index b26156bf15db..826315af6d11 100644 --- a/arch/arm/mach-at91/sam9_smc.c +++ b/arch/arm/mach-at91/sam9_smc.c | |||
@@ -36,6 +36,7 @@ void sam9_smc_write_mode(int id, int cs, | |||
36 | { | 36 | { |
37 | sam9_smc_cs_write_mode(AT91_SMC_CS(id, cs), config); | 37 | sam9_smc_cs_write_mode(AT91_SMC_CS(id, cs), config); |
38 | } | 38 | } |
39 | EXPORT_SYMBOL_GPL(sam9_smc_write_mode); | ||
39 | 40 | ||
40 | static void sam9_smc_cs_configure(void __iomem *base, | 41 | static void sam9_smc_cs_configure(void __iomem *base, |
41 | struct sam9_smc_config *config) | 42 | struct sam9_smc_config *config) |
@@ -69,6 +70,7 @@ void sam9_smc_configure(int id, int cs, | |||
69 | { | 70 | { |
70 | sam9_smc_cs_configure(AT91_SMC_CS(id, cs), config); | 71 | sam9_smc_cs_configure(AT91_SMC_CS(id, cs), config); |
71 | } | 72 | } |
73 | EXPORT_SYMBOL_GPL(sam9_smc_configure); | ||
72 | 74 | ||
73 | static void sam9_smc_cs_read_mode(void __iomem *base, | 75 | static void sam9_smc_cs_read_mode(void __iomem *base, |
74 | struct sam9_smc_config *config) | 76 | struct sam9_smc_config *config) |
@@ -84,6 +86,7 @@ void sam9_smc_read_mode(int id, int cs, | |||
84 | { | 86 | { |
85 | sam9_smc_cs_read_mode(AT91_SMC_CS(id, cs), config); | 87 | sam9_smc_cs_read_mode(AT91_SMC_CS(id, cs), config); |
86 | } | 88 | } |
89 | EXPORT_SYMBOL_GPL(sam9_smc_read_mode); | ||
87 | 90 | ||
88 | static void sam9_smc_cs_read(void __iomem *base, | 91 | static void sam9_smc_cs_read(void __iomem *base, |
89 | struct sam9_smc_config *config) | 92 | struct sam9_smc_config *config) |
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index f7ca97b7291e..f7a07a58ebb6 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -351,7 +351,7 @@ void __init at91_ioremap_matrix(u32 base_addr) | |||
351 | panic("Impossible to ioremap at91_matrix_base\n"); | 351 | panic("Impossible to ioremap at91_matrix_base\n"); |
352 | } | 352 | } |
353 | 353 | ||
354 | #if defined(CONFIG_OF) | 354 | #if defined(CONFIG_OF) && !defined(CONFIG_ARCH_AT91X40) |
355 | static struct of_device_id rstc_ids[] = { | 355 | static struct of_device_id rstc_ids[] = { |
356 | { .compatible = "atmel,at91sam9260-rstc", .data = at91sam9_alt_restart }, | 356 | { .compatible = "atmel,at91sam9260-rstc", .data = at91sam9_alt_restart }, |
357 | { .compatible = "atmel,at91sam9g45-rstc", .data = at91sam9g45_restart }, | 357 | { .compatible = "atmel,at91sam9g45-rstc", .data = at91sam9g45_restart }, |