完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好
我们在我们的一款产品中使用 i.MX28,它使用以下寄存器设置在 180MHz EMI_CLK 上工作—— volatile unsigned int * DRAM_REG = (volatile unsigned int*) HW_DRAM_CTL00_ADDR; DRAM_REG[0] = 0x00000000; DRAM_REG[1] = 0x00000000; DRAM_REG[2] = 0x00000000; DRAM_REG[3] = 0x00000000; DRAM_REG[4] = 0x00000000; DRAM_REG[5] = 0x00000000; DRAM_REG[6] = 0x00000000; DRAM_REG[7] = 0x00000000; DRAM_REG[8] = 0x00000000; DRAM_REG[9] = 0x00000000; DRAM_REG[10] = 0x00000000; DRAM_REG[11] = 0x00000000; DRAM_REG[12] = 0x00000000; DRAM_REG[13] = 0x00000000; DRAM_REG[14] = 0x00000000; DRAM_REG[15] = 0x00000000; DRAM_REG[16] = 0x00000000; DRAM_REG[17] = 0x00000100; DRAM_REG[18] = 0x00000000; DRAM_REG[19] = 0x00000000; DRAM_REG[20] = 0x00000000; DRAM_REG[21] = 0x00000000; DRAM_REG[22] = 0x00000000; DRAM_REG[23] = 0x00000000; DRAM_REG[24] = 0x00000000; DRAM_REG[25] = 0x00000000; DRAM_REG[26] = 0x00010101; DRAM_REG[27] = 0x01010101; DRAM_REG[28] = 0x000f0f01; DRAM_REG[29] = 0x0f02020a; DRAM_REG[30] = 0x00000000; DRAM_REG[31] = 0x00000101;//64 MB RAM with 4 banks instaed of 8 banks DRAM_REG[32] = 0x00000100; DRAM_REG[33] = 0x00000100; DRAM_REG[34] = 0x00000000; DRAM_REG[35] = 0x00000002; DRAM_REG[36] = 0x01010000; DRAM_REG[37] = 0x07080403; DRAM_REG[38] = 0x06005003; DRAM_REG[39] = 0x0a0000c8; DRAM_REG[40] = 0x0200A06C; DRAM_REG[41] = 0x0002030c; DRAM_REG[42] = 0x0036a609; DRAM_REG[43] = 0x031a0612; DRAM_REG[44] = 0x02030202; DRAM_REG[45] = 0x00c8001c; DRAM_REG[46] = 0x00000000; DRAM_REG[47] = 0x00000000; DRAM_REG[48] = 0x00012100; DRAM_REG[49] = 0xffff0303; DRAM_REG[50] = 0x00012100; DRAM_REG[51] = 0xffff0303; DRAM_REG[52] = 0x00012100; DRAM_REG[53] = 0xffff0303; DRAM_REG[54] = 0x00012100; DRAM_REG[55] = 0xffff0303; DRAM_REG[56] = 0x00000003; DRAM_REG[57] = 0x00000000; DRAM_REG[58] = 0x00000000; DRAM_REG[59] = 0x00000000; DRAM_REG[60] = 0x00000000; DRAM_REG[61] = 0x00000000; DRAM_REG[62] = 0x00000000; DRAM_REG[63] = 0x00000000; DRAM_REG[64] = 0x00000000; DRAM_REG[65] = 0x00000000; DRAM_REG[66] = 0x00000612; DRAM_REG[67] = 0x01000f02; DRAM_REG[68] = 0x06120612; DRAM_REG[69] = 0x00000200; DRAM_REG[70] = 0x00020007; DRAM_REG[71] = 0xf4004a27; DRAM_REG[72] = 0xf4004a27; DRAM_REG[73] = 0xf4004a27; DRAM_REG[74] = 0xf4004a27; DRAM_REG[75] = 0x07000300; DRAM_REG[76] = 0x07000300; DRAM_REG[77] = 0x07400300; DRAM_REG[78] = 0x07400300; DRAM_REG[79] = 0x00000005; DRAM_REG[80] = 0x00000000; DRAM_REG[81] = 0x00000000; DRAM_REG[82] = 0x00000000; DRAM_REG[83] = 0x00000000; DRAM_REG[84] = 0x08040201; DRAM_REG[85] = 0x000f1133; DRAM_REG[86] = 0x00000000; DRAM_REG[87] = 0x00001f04; DRAM_REG[88] = 0x00001f04; DRAM_REG[89] = 0x00001f04; DRAM_REG[90] = 0x00001f04; DRAM_REG[91] = 0x00001f04; DRAM_REG[92] = 0x00001f04; DRAM_REG[93] = 0x00001f04; DRAM_REG[94] = 0x00001f04; DRAM_REG[95] = 0x00000000; DRAM_REG[96] = 0x00000000; DRAM_REG[97] = 0x00000000; DRAM_REG[98] = 0x00000000; DRAM_REG[99] = 0x00000000; DRAM_REG[100] = 0x00000000; DRAM_REG[101] = 0x00000000; DRAM_REG[102] = 0x00000000; DRAM_REG[103] = 0x00000000; DRAM_REG[104] = 0x00000000; DRAM_REG[105] = 0x00000000; DRAM_REG[106] = 0x00000000; DRAM_REG[107] = 0x00000000; DRAM_REG[108] = 0x00000000; DRAM_REG[109] = 0x00000000; DRAM_REG[110] = 0x00000000; DRAM_REG[111] = 0x00000000; DRAM_REG[112] = 0x00000000; DRAM_REG[113] = 0x00000000; DRAM_REG[114] = 0x00000000; DRAM_REG[115] = 0x00000000; DRAM_REG[116] = 0x00000000; DRAM_REG[117] = 0x00000000; DRAM_REG[118] = 0x00000000; DRAM_REG[119] = 0x00000000; DRAM_REG[120] = 0x00000000; DRAM_REG[121] = 0x00000000; DRAM_REG[122] = 0x00000000; DRAM_REG[123] = 0x00000000; DRAM_REG[124] = 0x00000000; DRAM_REG[125] = 0x00000000; DRAM_REG[126] = 0x00000000; DRAM_REG[127] = 0x00000000; DRAM_REG[128] = 0x00000000; DRAM_REG[129] = 0x00000000; DRAM_REG[130] = 0x00000000; DRAM_REG[131] = 0x00000000; DRAM_REG[132] = 0x00000000; DRAM_REG[133] = 0x00000000; DRAM_REG[134] = 0x00000000; DRAM_REG[135] = 0x00000000; DRAM_REG[136] = 0x00000000; DRAM_REG[137] = 0x00000000; DRAM_REG[138] = 0x00000000; DRAM_REG[139] = 0x00000000; DRAM_REG[140] = 0x00000000; DRAM_REG[141] = 0x00000000; DRAM_REG[142] = 0x00000000; DRAM_REG[143] = 0x00000000; DRAM_REG[144] = 0x00000000; DRAM_REG[145] = 0x00000000; DRAM_REG[146] = 0x00000000; DRAM_REG[147] = 0x00000000; DRAM_REG[148] = 0x00000000; DRAM_REG[149] = 0x00000000; DRAM_REG[150] = 0x00000000; DRAM_REG[151] = 0x00000000; DRAM_REG[152] = 0x00000000; DRAM_REG[153] = 0x00000000; DRAM_REG[154] = 0x00000000; DRAM_REG[155] = 0x00000000; DRAM_REG[156] = 0x00000000; DRAM_REG[157] = 0x00000000; DRAM_REG[158] = 0x00000000; DRAM_REG[159] = 0x00000000; DRAM_REG[160] = 0x00000000; DRAM_REG[161] = 0x00000000; DRAM_REG[162] = 0x00010000; DRAM_REG[163] = 0x00030404; DRAM_REG[164] = 0x00000003; DRAM_REG[165] = 0x00000000; DRAM_REG[166] = 0x00000000; DRAM_REG[167] = 0x00000000; DRAM_REG[168] = 0x00000000; DRAM_REG[169] = 0x00000000; DRAM_REG[170] = 0x00000000; DRAM_REG[171] = 0x01010000; DRAM_REG[172] = 0x01000000; DRAM_REG[173] = 0x03030000; DRAM_REG[174] = 0x00010303; DRAM_REG[175] = 0x01020202; DRAM_REG[176] = 0x00000000; DRAM_REG[177] = 0x02040303; DRAM_REG[178] = 0x21002103; DRAM_REG[179] = 0x00061200; DRAM_REG[180] = 0x06120612; DRAM_REG[181] = 0x06420642; DRAM_REG[182] = 0x04420442; DRAM_REG[183] = 0x20042004; DRAM_REG[184] = 0x20042004; DRAM_REG[185] = 0x80008000; DRAM_REG[186] = 0x80008000; DRAM_REG[187] = 0xC000C000; DRAM_REG[188] = 0xC000C000; DRAM_REG[189] = 0xffffffff; ---------------------------------------------- ---------------------------------------------- ------------------------------ 另一个 reg FRAC0 设置在这里 div =24 //180MHz HW_CLKCTRL_FRAC0_SET(0x00008000); HW_CLKCTRL_FRAC0_SET(0x00003F00); div = (~div); HW_CLKCTRL_FRAC0_CLR(BF_CLKCTRL_FRAC0_EMIFRAC(div)); HW_CLKCTRL_FRAC0_CLR(0x00008000); 我们想把时钟从180MHz改成90MHz,所以想知道代码中哪里需要改动?这些电阻器设置都在 uboot 和 BSP 中,我们正在两个地方更新。我们尝试通过更改一些寄存器设置并观察到时钟已更改但应用程序未启动。 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1932个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36421 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
4867 浏览 1 评论
6108 浏览 1 评论
6818 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4249 浏览 0 评论
645浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
641浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
643浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
729浏览 2评论
844浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 06:32 , Processed in 1.161648 second(s), Total 74, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号