博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
uboot-2011.12移植到S3C2440(三)——硬件初始化:看门狗、中断、时钟
阅读量:2342 次
发布时间:2019-05-10

本文共 771 字,大约阅读时间需要 2 分钟。

/*	 * turn off dog, see C18P3	 */	ldr	r0, =pWTCON	mov	r1, #0x0	str	r1, [r0]	/*	 * C14	 * mask all IRQs by setting all bits in the INTMR - default	 */	mov	r1, #0xffffffff	ldr	r0, =INTMSK	str	r1, [r0]	ldr	r1, =0x7fff	ldr	r0, =INTSUBMSK	str	r1, [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	 */	ldr	r0, =CLKDIVN	mov	r1, #5	str	r1, [r0]	/*	 * orr	r0, r0, #R1_nF:OR:R1_iA	 * This strange thing comes from the C15 co-processor	 */	mrc	p15, 0, r0, c1, c0, 0	orr	r0, r0, #0xc0000000	mcr	p15, 0, r0, c1, c0, 0	/*	 * set mpll to 405Mhz, see C7P21	 */	ldr	r0, =MPLLCON	mov	r1, #0x21	and	r1, r1, #MPLL405	str	r1, [r0]
C表示S3C2440A.PDF的章节,P表示页码

转载地址:http://thfvb.baihongyu.com/

你可能感兴趣的文章
lambda和抽象类
查看>>
idea自定义文档注释模板
查看>>
Enterprise Architect 生成项目类图
查看>>
idea导出配置
查看>>
JVM学习资料收集
查看>>
Codility经典算法题之九:MissingInteger
查看>>
静态导入
查看>>
java 获取路径
查看>>
spring boot 打印sql
查看>>
我的死锁经历
查看>>
spring boot日志配置
查看>>
list排序
查看>>
搭建zookeeper集群
查看>>
1005. 数独
查看>>
1006. 求和游戏
查看>>
IDEA eclipse 控制台日志输出到文件
查看>>
1022. Fib数列
查看>>
一些开源项目
查看>>
将博客搬至CSDN
查看>>
MySQL 中事务的实现
查看>>