uboot-2011.12移植到S3C2440(三)——硬件初始化:看门狗、中断、时钟

来源:互联网 发布:淘宝买家秀裸露店铺 编辑:程序博客网 时间:2024/05/18 06:26
/* * turn off dog, see C18P3 */ldrr0, =pWTCONmovr1, #0x0strr1, [r0]/* * C14 * mask all IRQs by setting all bits in the INTMR - default */movr1, #0xffffffffldrr0, =INTMSKstrr1, [r0]ldrr1, =0x7fffldrr0, =INTSUBMSKstrr1, [r0]/* * FCLK:HCLK:PCLK = 1:4:8 * because we will set fclk, hclk, pclk, at different speed, * the CLKDIVEN should be changed, and the C15 should be set * please see Chapter 7 Page 9 */ldrr0, =CLKDIVNmovr1, #5strr1, [r0]/* * orrr0, r0, #R1_nF:OR:R1_iA * This strange thing comes from the C15 co-processor */mrcp15, 0, r0, c1, c0, 0orrr0, r0, #0xc0000000mcrp15, 0, r0, c1, c0, 0/* * set mpll to 405Mhz, see C7P21 */ldrr0, =MPLLCONmovr1, #0x21andr1, r1, #MPLL405strr1, [r0]
C表示S3C2440A.PDF的章节,P表示页码

原创粉丝点击