Commit fd2f5658093eca72467f0104659f4826a95f948c
Committed by
Albert ARIBAUD
1 parent
d0a94620a8
Exists in
master
and in
54 other branches
include/asm/arch-at91: update several .h files to ATMEL_xxx name scheme
Signed-off-by: Eric Bénard <eric@eukrea.com>
Showing 5 changed files with 28 additions and 28 deletions Side-by-side Diff
arch/arm/include/asm/arch-at91/at91_matrix.h
... | ... | @@ -26,18 +26,18 @@ |
26 | 26 | #ifdef __ASSEMBLY__ |
27 | 27 | |
28 | 28 | #if defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20) |
29 | -#define AT91_ASM_MATRIX_CSA0 (AT91_MATRIX_BASE + 0x11C) | |
29 | +#define AT91_ASM_MATRIX_CSA0 (ATMEL_BASE_MATRIX + 0x11C) | |
30 | 30 | #elif defined(CONFIG_AT91SAM9261) |
31 | -#define AT91_ASM_MATRIX_CSA0 (AT91_MATRIX_BASE + 0x30) | |
31 | +#define AT91_ASM_MATRIX_CSA0 (ATMEL_BASE_MATRIX + 0x30) | |
32 | 32 | #elif defined(CONFIG_AT91SAM9263) |
33 | -#define AT91_ASM_MATRIX_CSA0 (AT91_MATRIX_BASE + 0x120) | |
33 | +#define AT91_ASM_MATRIX_CSA0 (ATMEL_BASE_MATRIX + 0x120) | |
34 | 34 | #elif defined(CONFIG_AT91SAM9G45) |
35 | -#define AT91_ASM_MATRIX_CSA0 (AT91_MATRIX_BASE + 0x128) | |
35 | +#define AT91_ASM_MATRIX_CSA0 (ATMEL_BASE_MATRIX + 0x128) | |
36 | 36 | #else |
37 | 37 | #error AT91_ASM_MATRIX_CSA0 is not definied for current CPU |
38 | 38 | #endif |
39 | 39 | |
40 | -#define AT91_ASM_MATRIX_MCFG AT91_MATRIX_BASE | |
40 | +#define AT91_ASM_MATRIX_MCFG ATMEL_BASE_MATRIX | |
41 | 41 | |
42 | 42 | #else |
43 | 43 | #if defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20) |
arch/arm/include/asm/arch-at91/at91_rstc.h
arch/arm/include/asm/arch-at91/at91_wdt.h
arch/arm/include/asm/arch-at91/at91sam9_sdramc.h
... | ... | @@ -19,19 +19,19 @@ |
19 | 19 | |
20 | 20 | #ifdef __ASSEMBLY__ |
21 | 21 | |
22 | -#ifndef AT91_SDRAMC_BASE | |
23 | -#define AT91_SDRAMC_BASE AT91_SDRAMC0_BASE | |
22 | +#ifndef ATMEL_BASE_SDRAMC | |
23 | +#define ATMEL_BASE_SDRAMC AT91_SDRAMC0_BASE | |
24 | 24 | #endif |
25 | 25 | |
26 | -#define AT91_ASM_SDRAMC_MR AT91_SDRAMC_BASE | |
27 | -#define AT91_ASM_SDRAMC_TR (AT91_SDRAMC_BASE + 0x04) | |
28 | -#define AT91_ASM_SDRAMC_CR (AT91_SDRAMC_BASE + 0x08) | |
29 | -#define AT91_ASM_SDRAMC_MDR (AT91_SDRAMC_BASE + 0x24) | |
26 | +#define AT91_ASM_SDRAMC_MR ATMEL_BASE_SDRAMC | |
27 | +#define AT91_ASM_SDRAMC_TR (ATMEL_BASE_SDRAMC + 0x04) | |
28 | +#define AT91_ASM_SDRAMC_CR (ATMEL_BASE_SDRAMC + 0x08) | |
29 | +#define AT91_ASM_SDRAMC_MDR (ATMEL_BASE_SDRAMC + 0x24) | |
30 | 30 | |
31 | 31 | #endif |
32 | 32 | |
33 | 33 | /* SDRAM Controller (SDRAMC) registers */ |
34 | -#define AT91_SDRAMC_MR (AT91_SDRAMC + 0x00) /* SDRAM Controller Mode Register */ | |
34 | +#define AT91_SDRAMC_MR (ATMEL_BASE_SDRAMC + 0x00) /* SDRAM Controller Mode Register */ | |
35 | 35 | #define AT91_SDRAMC_MODE (0xf << 0) /* Command Mode */ |
36 | 36 | #define AT91_SDRAMC_MODE_NORMAL 0 |
37 | 37 | #define AT91_SDRAMC_MODE_NOP 1 |
38 | 38 | |
... | ... | @@ -41,10 +41,10 @@ |
41 | 41 | #define AT91_SDRAMC_MODE_EXT_LMR 5 |
42 | 42 | #define AT91_SDRAMC_MODE_DEEP 6 |
43 | 43 | |
44 | -#define AT91_SDRAMC_TR (AT91_SDRAMC + 0x04) /* SDRAM Controller Refresh Timer Register */ | |
44 | +#define AT91_SDRAMC_TR (ATMEL_BASE_SDRAMC + 0x04) /* SDRAM Controller Refresh Timer Register */ | |
45 | 45 | #define AT91_SDRAMC_COUNT (0xfff << 0) /* Refresh Timer Counter */ |
46 | 46 | |
47 | -#define AT91_SDRAMC_CR (AT91_SDRAMC + 0x08) /* SDRAM Controller Configuration Register */ | |
47 | +#define AT91_SDRAMC_CR (ATMEL_BASE_SDRAMC + 0x08) /* SDRAM Controller Configuration Register */ | |
48 | 48 | #define AT91_SDRAMC_NC (3 << 0) /* Number of Column Bits */ |
49 | 49 | #define AT91_SDRAMC_NC_8 (0 << 0) |
50 | 50 | #define AT91_SDRAMC_NC_9 (1 << 0) |
... | ... | @@ -71,7 +71,7 @@ |
71 | 71 | #define AT91_SDRAMC_TRAS (0xf << 24) /* Active to Precharge Delay */ |
72 | 72 | #define AT91_SDRAMC_TXSR (0xf << 28) /* Exit Self Refresh to Active Delay */ |
73 | 73 | |
74 | -#define AT91_SDRAMC_LPR (AT91_SDRAMC + 0x10) /* SDRAM Controller Low Power Register */ | |
74 | +#define AT91_SDRAMC_LPR (ATMEL_BASE_SDRAMC + 0x10) /* SDRAM Controller Low Power Register */ | |
75 | 75 | #define AT91_SDRAMC_LPCB (3 << 0) /* Low-power Configurations */ |
76 | 76 | #define AT91_SDRAMC_LPCB_DISABLE 0 |
77 | 77 | #define AT91_SDRAMC_LPCB_SELF_REFRESH 1 |
78 | 78 | |
... | ... | @@ -85,13 +85,13 @@ |
85 | 85 | #define AT91_SDRAMC_TIMEOUT_64_CLK_CYCLES (1 << 12) |
86 | 86 | #define AT91_SDRAMC_TIMEOUT_128_CLK_CYCLES (2 << 12) |
87 | 87 | |
88 | -#define AT91_SDRAMC_IER (AT91_SDRAMC + 0x14) /* SDRAM Controller Interrupt Enable Register */ | |
89 | -#define AT91_SDRAMC_IDR (AT91_SDRAMC + 0x18) /* SDRAM Controller Interrupt Disable Register */ | |
90 | -#define AT91_SDRAMC_IMR (AT91_SDRAMC + 0x1C) /* SDRAM Controller Interrupt Mask Register */ | |
91 | -#define AT91_SDRAMC_ISR (AT91_SDRAMC + 0x20) /* SDRAM Controller Interrupt Status Register */ | |
88 | +#define AT91_SDRAMC_IER (ATMEL_BASE_SDRAMC + 0x14) /* SDRAM Controller Interrupt Enable Register */ | |
89 | +#define AT91_SDRAMC_IDR (ATMEL_BASE_SDRAMC + 0x18) /* SDRAM Controller Interrupt Disable Register */ | |
90 | +#define AT91_SDRAMC_IMR (ATMEL_BASE_SDRAMC + 0x1C) /* SDRAM Controller Interrupt Mask Register */ | |
91 | +#define AT91_SDRAMC_ISR (ATMEL_BASE_SDRAMC + 0x20) /* SDRAM Controller Interrupt Status Register */ | |
92 | 92 | #define AT91_SDRAMC_RES (1 << 0) /* Refresh Error Status */ |
93 | 93 | |
94 | -#define AT91_SDRAMC_MDR (AT91_SDRAMC + 0x24) /* SDRAM Memory Device Register */ | |
94 | +#define AT91_SDRAMC_MDR (ATMEL_BASE_SDRAMC + 0x24) /* SDRAM Memory Device Register */ | |
95 | 95 | #define AT91_SDRAMC_MD (3 << 0) /* Memory Device Type */ |
96 | 96 | #define AT91_SDRAMC_MD_SDRAM 0 |
97 | 97 | #define AT91_SDRAMC_MD_LOW_POWER_SDRAM 1 |
arch/arm/include/asm/arch-at91/at91sam9_smc.h
... | ... | @@ -18,14 +18,14 @@ |
18 | 18 | |
19 | 19 | #ifdef __ASSEMBLY__ |
20 | 20 | |
21 | -#ifndef AT91_SMC_BASE | |
22 | -#define AT91_SMC_BASE AT91_SMC0_BASE | |
21 | +#ifndef ATMEL_BASE_SMC | |
22 | +#define ATMEL_BASE_SMC ATMEL_BASE_SMC0 | |
23 | 23 | #endif |
24 | 24 | |
25 | -#define AT91_ASM_SMC_SETUP0 AT91_SMC_BASE | |
26 | -#define AT91_ASM_SMC_PULSE0 (AT91_SMC_BASE + 0x04) | |
27 | -#define AT91_ASM_SMC_CYCLE0 (AT91_SMC_BASE + 0x08) | |
28 | -#define AT91_ASM_SMC_MODE0 (AT91_SMC_BASE + 0x0C) | |
25 | +#define AT91_ASM_SMC_SETUP0 ATMEL_BASE_SMC | |
26 | +#define AT91_ASM_SMC_PULSE0 (ATMEL_BASE_SMC + 0x04) | |
27 | +#define AT91_ASM_SMC_CYCLE0 (ATMEL_BASE_SMC + 0x08) | |
28 | +#define AT91_ASM_SMC_MODE0 (ATMEL_BASE_SMC + 0x0C) | |
29 | 29 | |
30 | 30 | #else |
31 | 31 |