[U-Boot] [PATCH v2 16/22] omap4: calculate EMIF register values
Wolfgang Denk
wd at denx.de
Sun May 15 22:05:23 CEST 2011
Dear Aneesh V,
In message <1305472900-4004-17-git-send-email-aneesh at 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: wd at denx.de
Never underestimate the power of human stupidity when it comes to
using technology they don't understand.
More information about the U-Boot
mailing list