From: Rafal Jaworowski <raj@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 2/7] Simplify base address handling in bd_info
Date: Wed, 3 Oct 2007 12:04:35 +0200 [thread overview]
Message-ID: <20071003100434.GC1854@semihalf.com> (raw)
In-Reply-To: <20071003100126.GA1854@semihalf.com>
diff --git a/include/asm-ppc/u-boot.h b/include/asm-ppc/u-boot.h
index 464f6b5..cc9f013 100644
--- a/include/asm-ppc/u-boot.h
+++ b/include/asm-ppc/u-boot.h
@@ -36,6 +36,10 @@
#ifndef __ASSEMBLY__
+#define bi_immr_base bi_bar
+#define bi_mbar_base bi_bar
+#define bi_immrbar bi_bar
+
typedef struct bd_info {
unsigned long bi_memstart; /* start of DRAM memory */
unsigned long bi_memsize; /* size of DRAM memory in bytes */
@@ -44,18 +48,9 @@ typedef struct bd_info {
unsigned long bi_flashoffset; /* reserved area for startup monitor */
unsigned long bi_sramstart; /* start of SRAM memory */
unsigned long bi_sramsize; /* size of SRAM memory */
-#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \
- || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
- unsigned long bi_immr_base; /* base of IMMR register */
-#endif
-#if defined(CONFIG_MPC5xxx)
- unsigned long bi_mbar_base; /* base of internal registers */
-#endif
-#if defined(CONFIG_MPC83XX)
- unsigned long bi_immrbar;
-#endif
+ unsigned long bi_bar; /* base addr of internal registers */
+
#if defined(CONFIG_MPC8220)
- unsigned long bi_mbar_base; /* base of internal registers */
unsigned long bi_inpfreq; /* Input Freq, In MHz */
unsigned long bi_pcifreq; /* PCI Freq, in MHz */
unsigned long bi_pevfreq; /* PEV Freq, in MHz */
next prev parent reply other threads:[~2007-10-03 10:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 10:01 [U-Boot-Users] [PATCH 0/7] API for external applications Rafal Jaworowski
2007-10-03 10:03 ` [U-Boot-Users] [PATCH 1/7] eth_receive() for standalone receiving Ethernet frame Rafal Jaworowski
2007-10-03 10:04 ` Rafal Jaworowski [this message]
2007-10-03 10:05 ` [U-Boot-Users] [PATCH 3/7] Globalize envmatch() Rafal Jaworowski
2007-10-03 10:06 ` [U-Boot-Users] [PATCH 4/7] API header file Rafal Jaworowski
2007-10-03 10:07 ` [U-Boot-Users] [PATCH 5/7] Core API (U-Boot side) Rafal Jaworowski
2007-10-03 10:07 ` [U-Boot-Users] [PATCH 6/7] External application demo Rafal Jaworowski
2007-10-03 10:08 ` [U-Boot-Users] [PATCH 7/7] Enable API_CONFIG for MPC8555CDS Rafal Jaworowski
2007-10-03 12:35 ` [U-Boot-Users] [PATCH 1/7] eth_receive() for standalone receiving Ethernet frame Rafal Jaworowski
2007-10-03 14:45 ` [U-Boot-Users] [PATCH 0/7] API for external applications Marcel Moolenaar
2007-10-04 15:52 ` Haavard Skinnemoen
2007-10-04 16:33 ` Marcel Moolenaar
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=20071003100434.GC1854@semihalf.com \
--to=raj@semihalf.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox