diff mbox

[U-Boot,06/27] omap4: Export elpidia sdram timings

Message ID 1456597155-10711-7-git-send-email-contact@paulk.fr
State Accepted
Commit 96703acd0ae7899ddf49b40ae2026a2afd16db26
Delegated to: Tom Rini
Headers show

Commit Message

Paul Kocialkowski Feb. 27, 2016, 6:18 p.m. UTC
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     | 2 +-
 arch/arm/include/asm/arch-omap4/sys_proto.h | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

Comments

Tom Rini March 17, 2016, 1:57 a.m. UTC | #1
On Sat, Feb 27, 2016 at 07:18:54PM +0100, Paul Kocialkowski wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/cpu/armv7/omap4/sdram_elpida.c b/arch/arm/cpu/armv7/omap4/sdram_elpida.c
index ad18c6c..78b4f09 100644
--- a/arch/arm/cpu/armv7/omap4/sdram_elpida.c
+++ b/arch/arm/cpu/armv7/omap4/sdram_elpida.c
@@ -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,
 };
diff --git a/arch/arm/include/asm/arch-omap4/sys_proto.h b/arch/arm/include/asm/arch-omap4/sys_proto.h
index f9bcbb6..27900dd 100644
--- a/arch/arm/include/asm/arch-omap4/sys_proto.h
+++ b/arch/arm/include/asm/arch-omap4/sys_proto.h
@@ -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;
 };