why we set CAMDIVN and CLKDIVN
xiangfu
xiangfu at openmoko.org
Thu Jun 19 06:40:40 CEST 2008
# define CLKDIVN 0x4C000014 /* clock divisor register */
# define CLKDIVN_val 7 /* FCLK:HCLK:PCLK = 1:3:6 */
/* FCLK:HCLK:PCLK = 1:2:4 */
ldr r0, =CLKDIVN
mov r1, #CLKDIVN_val
str r1, [r0]
/* Make sure we get FCLK:HCLK:PCLK = 1:3:6 */
# define CAMDIVN 0x4C000018
ldr r0, =CAMDIVN
mov r1, #0
str r1, [r0]
----i don't know why we set CAMDIVN and CLKDIVN
----i still can't run the C function by add "stack_setup".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: led.c
Type: text/x-csrc
Size: 1552 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080619/39ca6ba1/attachment.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: led.S
Url: http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080619/39ca6ba1/attachment.txt
More information about the openmoko-kernel
mailing list