From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch v3 5/7] Setup POST word for generic mpc85xx
Date: Tue, 28 Sep 2010 15:20:35 -0700 [thread overview]
Message-ID: <1285712437-6719-5-git-send-email-yorksun@freescale.com> (raw)
In-Reply-To: <1285712437-6719-1-git-send-email-yorksun@freescale.com>
Using PIC TFRR register for post word load/store for generic MPC85xx.
Signed-off-by: York Sun <yorksun@freescale.com>
---
arch/powerpc/cpu/mpc85xx/cpu.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c
index fc5d951..bf3d899 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu.c
@@ -286,6 +286,25 @@ void mpc85xx_reginfo(void)
print_lbc_regs();
}
+#ifdef CONFIG_POST
+
+__attribute__((weak))
+void post_word_store(ulong a)
+{
+ void *save_addr = (void *)
+ (CONFIG_SYS_MPC8xxx_PIC_ADDR + offsetof(ccsr_pic_t, tfrr));
+ out_be32(save_addr, a);
+}
+__attribute__((weak))
+ulong post_word_load(void)
+{
+ void *save_addr = (void *)
+ (CONFIG_SYS_MPC8xxx_PIC_ADDR + offsetof(ccsr_pic_t, tfrr));
+ return in_be32(save_addr);
+}
+
+#endif /* CONFIG_POST */
+
#if CONFIG_POST & CONFIG_SYS_POST_MEMORY
/* Board-specific functions defined in each board's ddr.c */
--
1.7.0.4
next prev parent reply other threads:[~2010-09-28 22:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 22:20 [U-Boot] [Patch v3 1/7] Expand POST memory test to support arch-depended implementation York Sun
2010-09-28 22:20 ` [U-Boot] [Patch v3 2/7] Adding more control to physical address mapping York Sun
2010-10-20 5:25 ` Kumar Gala
2010-09-28 22:20 ` [U-Boot] [Patch v3 3/7] Add memory test feature for mpc85xx POST York Sun
2010-10-20 5:32 ` Kumar Gala
2010-09-28 22:20 ` [U-Boot] [Patch v3 4/7] Fix address for POST for 85xx with CPM York Sun
2010-10-20 5:31 ` Kumar Gala
2010-09-28 22:20 ` York Sun [this message]
2010-10-20 5:33 ` [U-Boot] [Patch v3 5/7] Setup POST word for generic mpc85xx Kumar Gala
2010-09-28 22:20 ` [U-Boot] [Patch v3 6/7] Enable POST memory test for corenet_ds York Sun
2010-09-28 22:20 ` [U-Boot] [Patch v3 7/7] Enable POST memory test for P2020DS York Sun
2010-10-19 20:29 ` [U-Boot] [Patch v3 1/7] Expand POST memory test to support arch-depended implementation Wolfgang Denk
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=1285712437-6719-5-git-send-email-yorksun@freescale.com \
--to=yorksun@freescale.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.