From 64c73c4751365d890a8c0060fe14ae15e828d12a Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Tue, 8 Nov 2011 02:07:26 +0000 Subject: Disable the clock the built in AS3525(v2) bootrom. This is only useful for reverse engineering purposes, so disable during normal operation in case it uses power. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30930 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/system-as3525.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/target/arm/as3525') diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 2a40724208..31d6fb6ae6 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -224,6 +224,8 @@ void system_init(void) CGU_PERI &= ~0x7f; /* pclk 24 MHz */ #endif + CGU_PERI &= ~(1<<24); /*disable built in boot rom clock*/ + /* bits 31:30 should be set to 0 in arm926-ejs */ asm volatile( "mrc p15, 0, r0, c1, c0 \n" /* control register */ -- cgit v1.2.3