head.s分析(9):EBIU配置

快乐虾

http://blog.csdn.net/lights_joy/

[email protected]

本文适用于

ADI bf561 DSP

uclinux-2008r1.5-rc3 (移植到vdsp5)

Visual DSP++ 5.0(update 5)

欢迎转载,但请保留作者信息

/* Code for initializing Async memory banks */

p2.h = hi(EBIU_AMBCTL1);

p2.l = lo(EBIU_AMBCTL1);

r0.h = hi(AMBCTL1VAL);

r0.l = lo(AMBCTL1VAL);

[p2] = r0;

ssync;

p2.h = hi(EBIU_AMBCTL0);

p2.l = lo(EBIU_AMBCTL0);

r0.h = hi(AMBCTL0VAL);

r0.l = lo(AMBCTL0VAL);

[p2] = r0;

ssync;

p2.h = hi(EBIU_AMGCTL);

p2.l = lo(EBIU_AMGCTL);

r0 = AMGCTLVAL;

w[p2] = r0;

ssync;

这段代码就相当简单了,将配置好的值写入EBIU_*寄存器中,这里要用到几个宏:

#define CONFIG_BANK_0 0x7BB0

#define CONFIG_BANK_1 0x7BB0

#define CONFIG_BANK_2 0x7BB0

#define CONFIG_BANK_3 0xAAC3

#define CONFIG_C_AMBEN_ALL 1

1 参考资料

head.s分析(1):保存u-boot传递过来的指针(2009-1-19)

head.s分析(2)SYSCFG配置(2009-1-19)

head.s分析(3):数据及指针寄存器清0(2009-1-19)

head.s分析(4):关闭CACHE(2009-01-19)

head.s分析(5):关闭串口(2009-01-19)

head.s分析(6):栈指针初始化(2009-01-19)

head.s分析(7)init_early_exception_vectors(2009-1-19)

head.s分析(8):配置PLLSDRAM(2009-01-20)

你可能感兴趣的:(C++,c,.net,cache,C#)