[U-Boot] [PATCH] ARM: at91: move PIO_SCDR_DIV to mach/at91_pio.h
Wenyou Yang
wenyou.yang at atmel.com
Fri Jan 6 05:28:55 CET 2017
To fix the build error when building for at91sam9261ek, move
PIO_SCDR_DIV definition to mach/at91_pio.h.
---8<---
error: 'PIO_SCDR_DIV' undeclared (first use in this function)
--->8---
Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
---
arch/arm/mach-at91/include/mach/at91_pio.h | 2 ++
arch/arm/mach-at91/include/mach/at91sam9x5.h | 1 -
arch/arm/mach-at91/include/mach/sama5d3.h | 1 -
arch/arm/mach-at91/include/mach/sama5d4.h | 1 -
4 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-at91/include/mach/at91_pio.h b/arch/arm/mach-at91/include/mach/at91_pio.h
index f195a7d38e..4840a2b8f2 100644
--- a/arch/arm/mach-at91/include/mach/at91_pio.h
+++ b/arch/arm/mach-at91/include/mach/at91_pio.h
@@ -32,6 +32,8 @@
#define AT91_ASM_PIOD_ASR \
(ATMEL_BASE_PIO + AT91_PIO_PORTD * AT91_ASM_PIO_RANGE + 0x70)
+#define PIO_SCDR_DIV 0x3fff /* Slow Clock Divider Selection for Debouncing Mask */
+
#ifndef __ASSEMBLY__
typedef struct at91_port {
diff --git a/arch/arm/mach-at91/include/mach/at91sam9x5.h b/arch/arm/mach-at91/include/mach/at91sam9x5.h
index eaec727253..e7224e432d 100644
--- a/arch/arm/mach-at91/include/mach/at91sam9x5.h
+++ b/arch/arm/mach-at91/include/mach/at91sam9x5.h
@@ -171,7 +171,6 @@
* Other misc defines
*/
#define ATMEL_PIO_PORTS 4
-#define PIO_SCDR_DIV (0x3fff << 0) /* Slow Clock Divider Mask */
#define ATMEL_PMC_UHP AT91SAM926x_PMC_UHP
#define ATMEL_ID_UHP ATMEL_ID_UHPHS
diff --git a/arch/arm/mach-at91/include/mach/sama5d3.h b/arch/arm/mach-at91/include/mach/sama5d3.h
index e4e97dc989..d558f95141 100644
--- a/arch/arm/mach-at91/include/mach/sama5d3.h
+++ b/arch/arm/mach-at91/include/mach/sama5d3.h
@@ -188,7 +188,6 @@
* Other misc defines
*/
#define ATMEL_PIO_PORTS 5
-#define PIO_SCDR_DIV 0x3fff
#define CPU_HAS_PCR
/* Timer */
diff --git a/arch/arm/mach-at91/include/mach/sama5d4.h b/arch/arm/mach-at91/include/mach/sama5d4.h
index 9a6c974bf7..78cc2a7a0a 100644
--- a/arch/arm/mach-at91/include/mach/sama5d4.h
+++ b/arch/arm/mach-at91/include/mach/sama5d4.h
@@ -174,7 +174,6 @@
* Other misc defines
*/
#define ATMEL_PIO_PORTS 5
-#define PIO_SCDR_DIV 0x3fff
#define CPU_HAS_PCR
#define CPU_HAS_H32MXDIV
--
2.11.0
More information about the U-Boot
mailing list