* [U-Boot] [PATCH] ARM: atmel: sama5d4: set non-secured for peripherals
@ 2015-03-04 5:48 Bo Shen
2015-03-18 22:37 ` [U-Boot] " Andreas Bießmann
0 siblings, 1 reply; 2+ messages in thread
From: Bo Shen @ 2015-03-04 5:48 UTC (permalink / raw)
To: u-boot
When access the programmable secure peripherals address space,
it needs set them to non-secured.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
arch/arm/mach-at91/armv7/sama5d4_devices.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-at91/armv7/sama5d4_devices.c b/arch/arm/mach-at91/armv7/sama5d4_devices.c
index ef39cb7..76301d6 100644
--- a/arch/arm/mach-at91/armv7/sama5d4_devices.c
+++ b/arch/arm/mach-at91/armv7/sama5d4_devices.c
@@ -75,6 +75,15 @@ void matrix_init(void)
writel(0x00000001, &h32mx->sassr[4]);
writel(0x00000001, &h32mx->srtsr[4]);
+ /* Configure Programmable Security peripherals on matrix 64 */
+ writel(readl(&h64mx->spselr[0]) | 0x00080000, &h64mx->spselr[0]);
+ writel(readl(&h64mx->spselr[1]) | 0x00180000, &h64mx->spselr[1]);
+ writel(readl(&h64mx->spselr[2]) | 0x00000008, &h64mx->spselr[2]);
+
+ /* Configure Programmable Security peripherals on matrix 32 */
+ writel(readl(&h32mx->spselr[0]) | 0xFFC00000, &h32mx->spselr[0]);
+ writel(readl(&h32mx->spselr[1]) | 0x60E3FFFF, &h32mx->spselr[1]);
+
/* Enable the write protect */
writel(ATMEL_MATRIX_WPMR_WPKEY | ATMEL_MATRIX_WPMR_WPEN, &h64mx->wpmr);
writel(ATMEL_MATRIX_WPMR_WPKEY | ATMEL_MATRIX_WPMR_WPEN, &h32mx->wpmr);
--
2.3.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] ARM: atmel: sama5d4: set non-secured for peripherals
2015-03-04 5:48 [U-Boot] [PATCH] ARM: atmel: sama5d4: set non-secured for peripherals Bo Shen
@ 2015-03-18 22:37 ` Andreas Bießmann
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Bießmann @ 2015-03-18 22:37 UTC (permalink / raw)
To: u-boot
Dear Bo Shen,
Bo Shen <voice.shen@atmel.com> writes:
>When access the programmable secure peripherals address space,
>it needs set them to non-secured.
>
>Signed-off-by: Bo Shen <voice.shen@atmel.com>
>---
>
> arch/arm/mach-at91/armv7/sama5d4_devices.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
applied to u-boot-atmel/master, thanks!
Best regards,
Andreas Bie?mann
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-18 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 5:48 [U-Boot] [PATCH] ARM: atmel: sama5d4: set non-secured for peripherals Bo Shen
2015-03-18 22:37 ` [U-Boot] " Andreas Bießmann
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.