This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EMIF - How to configure chip-select params?

Other Parts Discussed in Thread: AM1808

Curious if anyone can point me in the right direction - I am working with an AM1808 processor and I need to be able to modify some chip select params during boot time. I was hoping there was something I can add to the u-boot build that would allow me to configure the chip-select register.  Namely - I need to configure the CE5CFG register by modifying such params as setup, strobe and hold. Poking around..I see there is a file called emif_defs.h under the arch/arm/include/asm/arch-davinci folder...but I am not sure if this applies?  I can see the register I want to modify when using the blackhawk usb100v2 emulator, but I really need to be able to tweak this register upon boot without an emulator.  I have come across the "AM17x/AM18x ARM Microprocessor External Memory Interface A (EMIFA)" pdf document...but I don't quite understand how I can programatically manipulate the desired register. Can someone point me in the right direction?  Is u-boot the appropriate place I should be looking to make this happen?

Thanks!

  • Hi Dan,

    An easy way would be to use the mw command in U-boot:

    mw 6800001c deadbeef

    You could add that to your bootcmd to perform that step each time.

    Jeff

  • Hi Jeff,

    Thanks for the quick reply! I will give that a shot. Originally I thought it would be more elaborate than that ... such as specifying some new #defines in the uboot /include/configs/da850evm.h.  But writing directly to the specified memory location has got to do the trick.  :-)  I will verify this solution and then return to mark it as solved.

    Thanks for your help.