All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Gmeiner <christian.gmeiner@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/7] ot1200: make use of imx_ddr_size(..)
Date: Mon, 19 Jan 2015 17:26:45 +0100	[thread overview]
Message-ID: <1421684810-2684-3-git-send-email-christian.gmeiner@gmail.com> (raw)
In-Reply-To: <1421684810-2684-1-git-send-email-christian.gmeiner@gmail.com>

To support different ddr3 memory sizes we should start using
imx_ddr_size(..) instead of the define PHYS_SDRAM_SIZE.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
---
 board/bachmann/ot1200/ot1200.c | 3 ++-
 include/configs/ot1200.h       | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c
index 93f3d65..039e858 100644
--- a/board/bachmann/ot1200/ot1200.c
+++ b/board/bachmann/ot1200/ot1200.c
@@ -16,6 +16,7 @@
 #include <asm/imx-common/mxc_i2c.h>
 #include <asm/imx-common/boot_mode.h>
 #include <asm/arch/crm_regs.h>
+#include <asm/arch/sys_proto.h>
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <netdev.h>
@@ -46,7 +47,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
+	gd->ram_size = imx_ddr_size();
 
 	return 0;
 }
diff --git a/include/configs/ot1200.h b/include/configs/ot1200.h
index 255c933..97ee664 100644
--- a/include/configs/ot1200.h
+++ b/include/configs/ot1200.h
@@ -159,7 +159,6 @@
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define PHYS_SDRAM_SIZE                (1u * 1024 * 1024 * 1024)
 
 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
-- 
2.1.0

  parent reply	other threads:[~2015-01-19 16:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-19 16:26 [U-Boot] ot1200: add basic SPL support Christian Gmeiner
2015-01-19 16:26 ` [U-Boot] [PATCH 1/7] ot1200: select SUPPORT_SPL Christian Gmeiner
2015-01-22 10:04   ` Stefano Babic
2015-01-19 16:26 ` Christian Gmeiner [this message]
2015-01-19 16:26 ` [U-Boot] [PATCH 3/7] ot1200: move ccgr and gpr init to c functions Christian Gmeiner
2015-01-19 16:26 ` [U-Boot] [PATCH 4/7] ot1200: enable spi clock directly in ccgr_init(..) Christian Gmeiner
2015-01-19 16:26 ` [U-Boot] [PATCH 5/7] ot1200: add SPL configuration Christian Gmeiner
2015-01-19 16:26 ` [U-Boot] [PATCH 6/7] ot1200: add basic SPL support Christian Gmeiner
2015-01-19 16:26 ` [U-Boot] [PATCH 7/7] ot1200: add ot1200_spl_defconfig file Christian Gmeiner
2015-01-22  8:37   ` Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421684810-2684-3-git-send-email-christian.gmeiner@gmail.com \
    --to=christian.gmeiner@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.