]> git.sur5r.net Git - u-boot/commitdiff
omap4: Export jedec sdram timings
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 27 Feb 2016 18:18:55 +0000 (19:18 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 19:11:32 +0000 (15:11 -0400)
Individual boards might provide their own emif_get_device_timings function and
use the jedec timings in their own way, hence those have to be exported.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
arch/arm/cpu/armv7/omap4/emif.c
arch/arm/include/asm/arch-omap4/sys_proto.h

index e89032be75dc916891ccfd70c66e19c4b7b38839..403c3c6146e46fbfb01da9a7da495bbb985cafdb 100644 (file)
@@ -96,7 +96,7 @@ static const struct lpddr2_ac_timings const*
        &timings_jedec_400_mhz
 };
 
-static const struct lpddr2_device_timings jedec_default_timings = {
+const struct lpddr2_device_timings jedec_default_timings = {
        .ac_timings = jedec_ac_timings,
        .min_tck = &min_tck_jedec
 };
index 5fa1cf8144b916c90be7dc3b4503f1c585a354e6..3e6a9dacd4d137d1cd11defcb59a3d14a8d6d0c5 100644 (file)
@@ -31,7 +31,9 @@ extern const struct lpddr2_device_details elpida_2G_S4_details;
 extern const struct lpddr2_device_details elpida_4G_S4_details;
 #endif
 
-#ifndef CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
+#ifdef CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
+extern const struct lpddr2_device_timings jedec_default_timings;
+#else
 extern const struct lpddr2_device_timings elpida_2G_S4_timings;
 #endif