public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Oliver Weber <almoeli@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Not use absolute MBAR in MPC5200 Bestcomm firmware
Date: Wed, 09 Jan 2008 14:11:04 +0100	[thread overview]
Message-ID: <4784C7E8.4080209@gmx.de> (raw)

Hi,

the following patch is for the MPC5200 Bestcomm firmware.
This patch removes the absolute adressing of the MBAR registers at
address 0xf0000000 and makes the FEC driver runable on custom boards
which have the MBAR located at other places.

Best regards

Oliver Weber


diff --git a/cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S b/cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S
index 1d83fe2..a07c776 100644
--- a/cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S
+++ b/cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S
@@ -23,7 +23,7 @@ scEthernetRecv_Entry:		/* Task 0 */
  .long   0x00000000
  .long   0x00000000
  .long   scEthernetRecv_CSave - taskTable	/* Task 0 context save space */
-.long   0xf0000000
+.long   CFG_MBAR
  .globl scEthernetXmit_Entry
  scEthernetXmit_Entry:		/* Task 1 */
  .long   scEthernetXmit_TDT - taskTable	/* Task 1 Descriptor Table */
@@ -33,7 +33,7 @@ scEthernetXmit_Entry:		/* Task 1 */
  .long   0x00000000
  .long   0x00000000
  .long   scEthernetXmit_CSave - taskTable	/* Task 1 context save space */
-.long   0xf0000000
+.long   CFG_MBAR


  .globl scEthernetRecv_TDT
@@ -151,7 +151,7 @@ scEthernetRecv_VarTab:	/* Task 0 Variabl
  .long   0x00000000	/* var[6] */
  .long   0x00000000	/* var[7] */
  .long   0x00000000	/* var[8] */
-.long   0xf0008800	/* var[9] */
+.long   (CFG_MBAR + 0x8800)	/* var[9] */
  .long   0x00000008	/* var[10] */
  .long   0x0000000c	/* var[11] */
  .long   0x80000000	/* var[12] */
@@ -190,7 +190,7 @@ scEthernetXmit_VarTab:	/* Task 1 Variabl
  .long   0x00000000	/* var[8] */
  .long   0x00000000	/* var[9] */
  .long   0x00000000	/* var[10] */
-.long   0xf0008800	/* var[11] */
+.long   (CFG_MBAR + 0x8800)	/* var[11] */
  .long   0x00000000	/* var[12] */
  .long   0x80000000	/* var[13] */
  .long   0x10000000	/* var[14] */

             reply	other threads:[~2008-01-09 13:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 13:11 Oliver Weber [this message]
2008-01-09 14:23 ` [U-Boot-Users] [PATCH] Not use absolute MBAR in MPC5200 Bestcomm firmware Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2008-01-09 16:04 Oliver Weber
2008-01-12 20:19 ` 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=4784C7E8.4080209@gmx.de \
    --to=almoeli@gmx.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