]> git.sur5r.net Git - u-boot/commitdiff
ARM: atmel: add pcr related definition
authorBo Shen <voice.shen@atmel.com>
Wed, 6 Aug 2014 09:24:55 +0000 (17:24 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Thu, 18 Sep 2014 22:11:19 +0000 (00:11 +0200)
Using CPU_HAS_PCR micro to present the SoC has pcr
(peripheral control register).

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
arch/arm/include/asm/arch-at91/at91_pmc.h
arch/arm/include/asm/arch-at91/sama5d3.h

index bef57931cd0eb1759c8def99b50cb2448f172e2c..27331ff2d1eaaa81432b5a97fbd6e6d60259f5af 100644 (file)
@@ -54,7 +54,7 @@ typedef struct at91_pmc {
        u32     reserved5[21];
        u32     wpmr;           /* 0xE4 Write Protect Mode Register (CAP0) */
        u32     wpsr;           /* 0xE8 Write Protect Status Register (CAP0) */
-#ifdef CONFIG_SAMA5D3
+#ifdef CPU_HAS_PCR
        u32     reserved6[8];
        u32     pcer1;          /* 0x100 Periperial Clock Enable Register 1 */
        u32     pcdr1;          /* 0x104 Periperial Clock Disable Register 1 */
index 6d936f47fa02cd0bc09ed08a093554071d25dc56..f7bc4ad33834b17ff2c610f777886af1f80e8442 100644 (file)
 #define ATMEL_PIO_PORTS                5
 #define CPU_HAS_PIO3
 #define PIO_SCDR_DIV           0x3fff
+#define CPU_HAS_PCR
 
 /*
  * PMECC table in ROM