Message ID | 1456597155-10711-8-git-send-email-contact@paulk.fr |
---|---|
State | Accepted |
Commit | ed5ddebe9628402568e8e6f3cbd51b1c345eabd5 |
Delegated to: | Tom Rini |
Headers | show |
On Sat, Feb 27, 2016 at 07:18:55PM +0100, Paul Kocialkowski wrote: > 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> Applied to u-boot/master, thanks!
diff --git a/arch/arm/cpu/armv7/omap4/emif.c b/arch/arm/cpu/armv7/omap4/emif.c index e89032b..403c3c6 100644 --- a/arch/arm/cpu/armv7/omap4/emif.c +++ b/arch/arm/cpu/armv7/omap4/emif.c @@ -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 }; diff --git a/arch/arm/include/asm/arch-omap4/sys_proto.h b/arch/arm/include/asm/arch-omap4/sys_proto.h index 27900dd..0e4e129 100644 --- a/arch/arm/include/asm/arch-omap4/sys_proto.h +++ b/arch/arm/include/asm/arch-omap4/sys_proto.h @@ -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
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 | 2 +- arch/arm/include/asm/arch-omap4/sys_proto.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)