omap4: Export elpidia sdram timings
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 27 Feb 2016 18:18:54 +0000 (19:18 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 19:11:31 +0000 (15:11 -0400)
Individual boards might provide their own emif_get_device_timings function and
use the elpidia timings in their own way, hence those have to be exported.

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

index ad18c6c3d03da20c3f57da256d829dc47f7591b2..78b4f09ce24e284c21e5fec4f94d7ed26a3d4ab7 100644 (file)
@@ -278,7 +278,7 @@ static const struct lpddr2_ac_timings *elpida_ac_timings[MAX_NUM_SPEEDBINS] = {
                &timings_elpida_400_mhz
 };
 
-static const struct lpddr2_device_timings elpida_2G_S4_timings = {
+const struct lpddr2_device_timings elpida_2G_S4_timings = {
        .ac_timings     = elpida_ac_timings,
        .min_tck        = &min_tck_elpida,
 };
index bae0db79c044f0c671c208b215d44da09a6021ec..5fa1cf8144b916c90be7dc3b4503f1c585a354e6 100644 (file)
@@ -30,6 +30,11 @@ extern const struct dmm_lisa_map_regs ma_lisa_map_2G_x_2_x_2;
 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
+extern const struct lpddr2_device_timings elpida_2G_S4_timings;
+#endif
+
 struct omap_sysinfo {
        char *board_string;
 };