]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap4: Export elpidia sdram device details
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 27 Feb 2016 18:18:53 +0000 (19:18 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 19:11:30 +0000 (15:11 -0400)
Individual boards might provide their own emif_get_device_details function and
use elpidia device details in their own way, hence those have to be exported.

This also wraps existing definitions with the proper ifdef logic.

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 4462c72c7a5d23e707ee4da33bcf7b0d75e321b5..ad18c6c3d03da20c3f57da256d829dc47f7591b2 100644 (file)
@@ -147,14 +147,14 @@ void emif_get_dmm_regs(const struct dmm_lisa_map_regs **dmm_lisa_regs)
 
 #else
 
-static const struct lpddr2_device_details elpida_2G_S4_details = {
+const struct lpddr2_device_details elpida_2G_S4_details = {
        .type           = LPDDR2_TYPE_S4,
        .density        = LPDDR2_DENSITY_2Gb,
        .io_width       = LPDDR2_IO_WIDTH_32,
        .manufacturer   = LPDDR2_MANUFACTURER_ELPIDA
 };
 
-static const struct lpddr2_device_details elpida_4G_S4_details = {
+const struct lpddr2_device_details elpida_4G_S4_details = {
        .type           = LPDDR2_TYPE_S4,
        .density        = LPDDR2_DENSITY_4Gb,
        .io_width       = LPDDR2_IO_WIDTH_32,
index fbb52093c65aa655c68b27ae6c880bcc60623f31..bae0db79c044f0c671c208b215d44da09a6021ec 100644 (file)
@@ -18,6 +18,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
 extern const struct emif_regs emif_regs_elpida_200_mhz_2cs;
 extern const struct emif_regs emif_regs_elpida_380_mhz_1cs;
 extern const struct emif_regs emif_regs_elpida_400_mhz_1cs;
@@ -25,6 +26,10 @@ extern const struct emif_regs emif_regs_elpida_400_mhz_2cs;
 extern const struct dmm_lisa_map_regs lisa_map_2G_x_1_x_2;
 extern const struct dmm_lisa_map_regs lisa_map_2G_x_2_x_2;
 extern const struct dmm_lisa_map_regs ma_lisa_map_2G_x_2_x_2;
+#else
+extern const struct lpddr2_device_details elpida_2G_S4_details;
+extern const struct lpddr2_device_details elpida_4G_S4_details;
+#endif
 struct omap_sysinfo {
        char *board_string;
 };