2 * LPDDR2 data as per SAMSUNG data sheet
4 * Copyright (C) 2011 Texas Instruments, Inc.
6 * Santosh Shilimkar <santosh.shilimkar@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/init.h>
15 #include <mach/emif.h>
16 #include "board-tuna.h"
18 const struct lpddr2_timings lpddr2_samsung_timings_400_mhz
= {
19 .max_freq
= 400000000,
41 const struct lpddr2_timings lpddr2_samsung_timings_200_mhz
= {
42 .max_freq
= 200000000,
64 const struct lpddr2_min_tck lpddr2_samsung_min_tck
= {
79 struct lpddr2_device_info lpddr2_samsung_4G_S4_dev
= {
81 &lpddr2_samsung_timings_200_mhz
,
82 &lpddr2_samsung_timings_400_mhz
84 .min_tck
= &lpddr2_samsung_min_tck
,
85 .type
= LPDDR2_TYPE_S4
,
86 .density
= LPDDR2_DENSITY_4Gb
,
87 .io_width
= LPDDR2_IO_WIDTH_32
,
88 .emif_ddr_selfrefresh_cycles
= 262144,
92 * LPDDR2 Configuration Data:
93 * The memory organisation is as below :
96 * --------------------
99 * Same devices installed on EMIF1 and EMIF2
101 static __initdata
struct emif_device_details emif_devices
= {
102 .cs0_device
= &lpddr2_samsung_4G_S4_dev
,
105 void __init
omap4_tuna_emif_init(void)
107 omap_emif_setup_device_details(&emif_devices
, &emif_devices
);