From: Bo Shen <voice.shen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] ARM: atmel: add pcr related definition
Date: Wed, 6 Aug 2014 17:24:55 +0800 [thread overview]
Message-ID: <1407317097-22731-3-git-send-email-voice.shen@atmel.com> (raw)
In-Reply-To: <1407317097-22731-1-git-send-email-voice.shen@atmel.com>
Using CPU_HAS_PCR micro to present the SoC has pcr
(peripheral control register).
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
arch/arm/include/asm/arch-at91/at91_pmc.h | 2 +-
arch/arm/include/asm/arch-at91/sama5d3.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h
index bef5793..27331ff 100644
--- a/arch/arm/include/asm/arch-at91/at91_pmc.h
+++ b/arch/arm/include/asm/arch-at91/at91_pmc.h
@@ -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 */
diff --git a/arch/arm/include/asm/arch-at91/sama5d3.h b/arch/arm/include/asm/arch-at91/sama5d3.h
index 6d936f4..f7bc4ad 100644
--- a/arch/arm/include/asm/arch-at91/sama5d3.h
+++ b/arch/arm/include/asm/arch-at91/sama5d3.h
@@ -188,6 +188,7 @@
#define ATMEL_PIO_PORTS 5
#define CPU_HAS_PIO3
#define PIO_SCDR_DIV 0x3fff
+#define CPU_HAS_PCR
/*
* PMECC table in ROM
--
1.8.5.2
next prev parent reply other threads:[~2014-08-06 9:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 9:24 [U-Boot] [PATCH 0/4] ARM: atmel: use pcr to control clock Bo Shen
2014-08-06 9:24 ` [U-Boot] [PATCH 1/4] ARM: atmel: use pcr to enable or disable peripheral clock Bo Shen
2014-09-19 6:31 ` [U-Boot] [U-Boot, " Andreas Bießmann
2014-08-06 9:24 ` Bo Shen [this message]
2014-09-19 6:31 ` [U-Boot] [U-Boot,2/4] ARM: atmel: add pcr related definition Andreas Bießmann
2014-08-06 9:24 ` [U-Boot] [PATCH 3/4] USB: ohci-at91: use pcr to enable or disable clock Bo Shen
2014-09-19 6:32 ` [U-Boot] [U-Boot,3/4] " Andreas Bießmann
2014-08-06 9:24 ` [U-Boot] [PATCH 4/4] USB: ehci-atmel: " Bo Shen
2014-09-19 6:32 ` [U-Boot] [U-Boot,4/4] " Andreas Bießmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407317097-22731-3-git-send-email-voice.shen@atmel.com \
--to=voice.shen@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.