mini2440開發(fā)板 u-boot 移植
1.解壓源碼包
本文引用地址:http://m.butianyuan.cn/article/201611/322209.htm2.在頂層的Makefile中找到
smdk2410_config
參照此方法,添加:
mini2440_config
3.修改/cpu/arm920t/start.S
#
#
#
#
# endif
之后添加代碼
#define CLK_CTL_BASE 0x4C000000
#define MDIV_405 0x7f << 12
#define PSDIV_405 0x21
#define UPLL_MDIV_48 0x38 << 12
#define UPLL_PSDIV_48 0x22
#define MDIV_200 0xa1 << 12
#define PSDIV_200 0x31
# if defined(CONFIG_S3C2410)
# endif
后面添加:
#if defined(CONFIG_S3C2440)
ldr r1,=0x7fff
ldr r0,=INTSUBMSK
str r1,[r0]
#endif
將180行左右關(guān)于時(shí)鐘設(shè)置的代碼注釋掉
*
*
*
*
*#endif
*/
添加:
ldr r0,=CLKDIVN
move r1,#5
str r1,[r0]
mrc p15,0,r1,c1,c0,0
orr r1,r1,#0xc0000000
mcr p15,0,r1,c1,c0,0
mov r1,#CLK_CTL_BASE
mov r2,#UPLL_MDIV_48
add r2,r2,#UPLL_PSDIV_48
str r2,[r1,#0x08]
mov r2,#MDIV_405
add r2,r2,#PSDIV_405
str r2,[r1,#0x04]
#else
ldr r0,=CLKDIVN
mov r1,#3
str r1,[r0]
mrc p15,0,r1,c1,c0,0
orr r1,r1,#0xc0000000
mcr p15,0,r1,c1,c0,0
mov r1,#CLK_CTL_BASE
mov r2,#MDIV_200
add r2,r2,#PSDIV_200
str r2,[r1,#0x04]
#endif
#endif
評(píng)論