linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux-arm@overkiz.com (Boris BREZILLON)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/5] ARM: at91: Add PMC registers definitions.
Date: Sat, 12 May 2012 10:53:54 +0200	[thread overview]
Message-ID: <1336812838-3649-2-git-send-email-linux-arm@overkiz.com> (raw)
In-Reply-To: <1336812838-3649-1-git-send-email-linux-arm@overkiz.com>

This patch adds definition of SOSCSEL bit used by pmc-osc.c to know 
which kind of oscilator is used (internal RC => drift).

This patch adds ICPLLR definition used in pll config. 
---
 arch/arm/mach-at91/include/mach/at91_pmc.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-at91/include/mach/at91_pmc.h b/arch/arm/mach-at91/include/mach/at91_pmc.h
index 3660478..845af9e 100644
--- a/arch/arm/mach-at91/include/mach/at91_pmc.h
+++ b/arch/arm/mach-at91/include/mach/at91_pmc.h
@@ -149,6 +149,7 @@ extern void __iomem *at91_pmc_base;
 #define		AT91_PMC_LOCKB		(1 <<  2)		/* PLLB Lock */
 #define		AT91_PMC_MCKRDY		(1 <<  3)		/* Master Clock */
 #define		AT91_PMC_LOCKU		(1 <<  6)		/* UPLL Lock [some SAM9] */
+#define		AT91_PMC_SOSCSEL	(1 <<  7)		/* Slow osc external selction */
 #define		AT91_PMC_PCK0RDY	(1 <<  8)		/* Programmable Clock 0 */
 #define		AT91_PMC_PCK1RDY	(1 <<  9)		/* Programmable Clock 1 */
 #define		AT91_PMC_PCK2RDY	(1 << 10)		/* Programmable Clock 2 */
@@ -158,6 +159,10 @@ extern void __iomem *at91_pmc_base;
 #define		AT91_PMC_CFDEV		(1 << 18)		/* Clock Failure Detector Event [some SAM9] */
 #define	AT91_PMC_IMR		0x6c			/* Interrupt Mask Register */
 
+#define	AT91_PMC_PLLICPR	0x80			/* PLL Charge Pump Current Register */
+#define		AT91_PMC_ICPLLA		(1 <<  0)		/* ICPLLA Flag */
+#define		AT91_PMC_ICPLLB		(1 <<  16)		/* ICPLLA Flag */
+
 #define AT91_PMC_PROT		0xe4			/* Write Protect Mode Register [some SAM9] */
 #define		AT91_PMC_WPEN		(0x1  <<  0)		/* Write Protect Enable */
 #define		AT91_PMC_WPKEY		(0xffffff << 8)		/* Write Protect Key */
-- 
1.7.9.5

  reply	other threads:[~2012-05-12  8:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12  8:53 [PATCH 0/5] ARM: at91: moving at91 to the common clk framework Boris BREZILLON
2012-05-12  8:53 ` Boris BREZILLON [this message]
2012-05-12  8:53 ` [PATCH 2/5] ARM: at91: Implementation of PMC clks using " Boris BREZILLON
2012-06-12 17:03   ` Mike Turquette
2012-06-14 11:48     ` Boris BREZILLON
2012-05-12  8:53 ` [PATCH 3/5] ARM: at91: disable specific soc clock init functions Boris BREZILLON
2012-05-12  8:53 ` [PATCH 4/5] ARM: at91: add pmc clks definition into device tree Boris BREZILLON
2012-05-12  8:53 ` [PATCH 5/5] ARM: at91: Modify board_dt init sequence Boris BREZILLON

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=1336812838-3649-2-git-send-email-linux-arm@overkiz.com \
    --to=linux-arm@overkiz.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).