I am new to booting linux on a custom board, and have some questions about settings for NAND and DDR2. Our software and hardware are modeled after the DM6467T EVM, but will use different NAND and DDR2 chips. I want to understand how to configure NAND and DDR2 before we order prototypes, to avoid any unpleasant surprises that might affect hardware choices.
I have read sprueq4e - the DDR2 Memory Controller Guide
I have read sprueq7c - the EMIF (and NAND) Memory Interface Guide
These two documents detail how to determine the proper values for NAND and DDR2 configuration registers, but where are they set? The boot sequence is: RBL, UBL, U-Boot, Linux. During which boot stages do NAND and DDR2 registers need to be set? What source code files are the settings found in?
Thanks