From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] KW: Add kw_adjust_dram() weak function
Date: Tue, 26 Jun 2012 14:15:13 +0200 [thread overview]
Message-ID: <1340712914-3193-2-git-send-email-marex@denx.de> (raw)
In-Reply-To: <1340712914-3193-1-git-send-email-marex@denx.de>
This function shall allow a board to adjust DRAM parameters in case
there are multiple versions of the board with different DRAM sizes.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Wolfgang Denk <wd@denx.de>
---
arch/arm/cpu/arm926ejs/kirkwood/dram.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/cpu/arm926ejs/kirkwood/dram.c b/arch/arm/cpu/arm926ejs/kirkwood/dram.c
index ccb6b03..cdf0d21 100644
--- a/arch/arm/cpu/arm926ejs/kirkwood/dram.c
+++ b/arch/arm/cpu/arm926ejs/kirkwood/dram.c
@@ -60,6 +60,15 @@ u32 kw_sdram_bs(enum memory_bank bank)
return result;
}
+/*
+ * kw_adjust_sdram - allow post init adjustment of DRAM size
+ */
+void __kw_adjust_dram(void)
+{
+}
+
+void kw_adjust_dram(void) __attribute__((weak, alias("__kw_adjust_dram")));
+
#ifndef CONFIG_SYS_BOARD_DRAM_INIT
int dram_init(void)
{
@@ -91,6 +100,8 @@ int dram_init(void)
gd->bd->bi_dram[i].size = 0;
}
+ kw_adjust_dram();
+
return 0;
}
--
1.7.10
next prev parent reply other threads:[~2012-06-26 12:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 12:15 [U-Boot] [PATCH 1/3] KW: Move the memory register definitions into kirkwood.h Marek Vasut
2012-06-26 12:15 ` Marek Vasut [this message]
2012-06-26 12:33 ` [U-Boot] [PATCH 2/3] KW: Add kw_adjust_dram() weak function Prafulla Wadaskar
2012-06-26 12:47 ` Marek Vasut
2012-06-26 13:19 ` Prafulla Wadaskar
2012-06-26 12:15 ` [U-Boot] [PATCH 3/3] Kirkwood: Add support for Ka-Ro TK71 Marek Vasut
2012-06-26 12:30 ` Prafulla Wadaskar
2012-06-26 12:45 ` Marek Vasut
2012-06-26 13:48 ` Prafulla Wadaskar
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=1340712914-3193-2-git-send-email-marex@denx.de \
--to=marex@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox