Dear Aneesh V, In message <1305472900-4004-17-git-send-email-ane...@ti.com> you wrote: > Calculate EMIF register values based on AC timing parameters > from the SDRAM datasheet and the DDR frequency rather than > using the hard-coded values. > > For a new board the user doen't have to go through the tedious > process of calculating the register values. Instead, just > provide the AC timings from the device data sheet as input > and the driver will automatically calculate the register values.
Does it make sense to do this in the driver code? These parameters will never change, so why can we not rather perform the computation only once, at build time, and feed in the respective parameters to the driver? Reasons why I am concerned about such an approach are code size and boot time. Both suffer ... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Never underestimate the power of human stupidity when it comes to using technology they don't understand. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot