summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-11-15 11:12:35 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-12-01 22:38:44 +0100
commitebfde6db3c42b4d837aceb8c7b079c31e7c7837b (patch)
tree050b13f82751335dad49b508cd061348a52f530d /arch
parente82265701f2972c7eb0e8742db973130bc99fd9c (diff)
downloadblackbird-obmc-uboot-ebfde6db3c42b4d837aceb8c7b079c31e7c7837b.tar.gz
blackbird-obmc-uboot-ebfde6db3c42b4d837aceb8c7b079c31e7c7837b.zip
arm: atmel: sama5d3: the offset of MULA is 18
The offset of MULA field in PLLA register in sama5d3 is 18, and the length only 7 bits. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-at91/at91_pmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h
index 90a871c0a1..4535608434 100644
--- a/arch/arm/include/asm/arch-at91/at91_pmc.h
+++ b/arch/arm/include/asm/arch-at91/at91_pmc.h
@@ -75,7 +75,11 @@ typedef struct at91_pmc {
#define AT91_PMC_PLLXR_DIV(x) (x & 0xFF)
#define AT91_PMC_PLLXR_PLLCOUNT(x) ((x & 0x3F) << 8)
#define AT91_PMC_PLLXR_OUT(x) ((x & 0x03) << 14)
+#ifdef CONFIG_SAMA5D3
+#define AT91_PMC_PLLXR_MUL(x) ((x & 0x7F) << 18)
+#else
#define AT91_PMC_PLLXR_MUL(x) ((x & 0x7FF) << 16)
+#endif
#define AT91_PMC_PLLAR_29 0x20000000
#define AT91_PMC_PLLBR_USBDIV_1 0x00000000
#define AT91_PMC_PLLBR_USBDIV_2 0x10000000
OpenPOWER on IntegriCloud