aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9260_devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260_devices.c')
-rw-r--r--arch/arm/mach-at91/at91sam9260_devices.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
index 7cd6f19945ed..ef88e0fe4e80 100644
--- a/arch/arm/mach-at91/at91sam9260_devices.c
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
@@ -24,12 +24,11 @@
24#include <mach/at91sam9260_matrix.h> 24#include <mach/at91sam9260_matrix.h>
25#include <mach/at91_matrix.h> 25#include <mach/at91_matrix.h>
26#include <mach/at91sam9_smc.h> 26#include <mach/at91sam9_smc.h>
27#include <mach/at91_adc.h>
28#include <mach/hardware.h> 27#include <mach/hardware.h>
29 28
30#include "board.h" 29#include "board.h"
31#include "generic.h" 30#include "generic.h"
32 31#include "gpio.h"
33 32
34/* -------------------------------------------------------------------- 33/* --------------------------------------------------------------------
35 * USB Host 34 * USB Host
@@ -820,7 +819,6 @@ static struct resource dbgu_resources[] = {
820static struct atmel_uart_data dbgu_data = { 819static struct atmel_uart_data dbgu_data = {
821 .use_dma_tx = 0, 820 .use_dma_tx = 0,
822 .use_dma_rx = 0, /* DBGU not capable of receive DMA */ 821 .use_dma_rx = 0, /* DBGU not capable of receive DMA */
823 .rts_gpio = -EINVAL,
824}; 822};
825 823
826static u64 dbgu_dmamask = DMA_BIT_MASK(32); 824static u64 dbgu_dmamask = DMA_BIT_MASK(32);
@@ -859,7 +857,6 @@ static struct resource uart0_resources[] = {
859static struct atmel_uart_data uart0_data = { 857static struct atmel_uart_data uart0_data = {
860 .use_dma_tx = 1, 858 .use_dma_tx = 1,
861 .use_dma_rx = 1, 859 .use_dma_rx = 1,
862 .rts_gpio = -EINVAL,
863}; 860};
864 861
865static u64 uart0_dmamask = DMA_BIT_MASK(32); 862static u64 uart0_dmamask = DMA_BIT_MASK(32);
@@ -911,7 +908,6 @@ static struct resource uart1_resources[] = {
911static struct atmel_uart_data uart1_data = { 908static struct atmel_uart_data uart1_data = {
912 .use_dma_tx = 1, 909 .use_dma_tx = 1,
913 .use_dma_rx = 1, 910 .use_dma_rx = 1,
914 .rts_gpio = -EINVAL,
915}; 911};
916 912
917static u64 uart1_dmamask = DMA_BIT_MASK(32); 913static u64 uart1_dmamask = DMA_BIT_MASK(32);
@@ -955,7 +951,6 @@ static struct resource uart2_resources[] = {
955static struct atmel_uart_data uart2_data = { 951static struct atmel_uart_data uart2_data = {
956 .use_dma_tx = 1, 952 .use_dma_tx = 1,
957 .use_dma_rx = 1, 953 .use_dma_rx = 1,
958 .rts_gpio = -EINVAL,
959}; 954};
960 955
961static u64 uart2_dmamask = DMA_BIT_MASK(32); 956static u64 uart2_dmamask = DMA_BIT_MASK(32);
@@ -999,7 +994,6 @@ static struct resource uart3_resources[] = {
999static struct atmel_uart_data uart3_data = { 994static struct atmel_uart_data uart3_data = {
1000 .use_dma_tx = 1, 995 .use_dma_tx = 1,
1001 .use_dma_rx = 1, 996 .use_dma_rx = 1,
1002 .rts_gpio = -EINVAL,
1003}; 997};
1004 998
1005static u64 uart3_dmamask = DMA_BIT_MASK(32); 999static u64 uart3_dmamask = DMA_BIT_MASK(32);
@@ -1043,7 +1037,6 @@ static struct resource uart4_resources[] = {
1043static struct atmel_uart_data uart4_data = { 1037static struct atmel_uart_data uart4_data = {
1044 .use_dma_tx = 1, 1038 .use_dma_tx = 1,
1045 .use_dma_rx = 1, 1039 .use_dma_rx = 1,
1046 .rts_gpio = -EINVAL,
1047}; 1040};
1048 1041
1049static u64 uart4_dmamask = DMA_BIT_MASK(32); 1042static u64 uart4_dmamask = DMA_BIT_MASK(32);
@@ -1082,7 +1075,6 @@ static struct resource uart5_resources[] = {
1082static struct atmel_uart_data uart5_data = { 1075static struct atmel_uart_data uart5_data = {
1083 .use_dma_tx = 1, 1076 .use_dma_tx = 1,
1084 .use_dma_rx = 1, 1077 .use_dma_rx = 1,
1085 .rts_gpio = -EINVAL,
1086}; 1078};
1087 1079
1088static u64 uart5_dmamask = DMA_BIT_MASK(32); 1080static u64 uart5_dmamask = DMA_BIT_MASK(32);
@@ -1325,13 +1317,6 @@ static struct at91_adc_trigger at91_adc_triggers[] = {
1325 }, 1317 },
1326}; 1318};
1327 1319
1328static struct at91_adc_reg_desc at91_adc_register_g20 = {
1329 .channel_base = AT91_ADC_CHR(0),
1330 .drdy_mask = AT91_ADC_DRDY,
1331 .status_register = AT91_ADC_SR,
1332 .trigger_register = AT91_ADC_MR,
1333};
1334
1335void __init at91_add_device_adc(struct at91_adc_data *data) 1320void __init at91_add_device_adc(struct at91_adc_data *data)
1336{ 1321{
1337 if (!data) 1322 if (!data)
@@ -1349,9 +1334,7 @@ void __init at91_add_device_adc(struct at91_adc_data *data)
1349 if (data->use_external_triggers) 1334 if (data->use_external_triggers)
1350 at91_set_A_periph(AT91_PIN_PA22, 0); 1335 at91_set_A_periph(AT91_PIN_PA22, 0);
1351 1336
1352 data->num_channels = 4;
1353 data->startup_time = 10; 1337 data->startup_time = 10;
1354 data->registers = &at91_adc_register_g20;
1355 data->trigger_number = 4; 1338 data->trigger_number = 4;
1356 data->trigger_list = at91_adc_triggers; 1339 data->trigger_list = at91_adc_triggers;
1357 1340