linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Stephan Linke" <Stephan.Linke@epygi.de>
To: "Flavio Pereira" <Flavio.Pereira@za.flextronics.com>
Cc: "Linuxppc-Embedded" <linuxppc-embedded@lists.linuxppc.org>
Subject: RE: Accessing MPC862 registers
Date: Wed, 5 Feb 2003 13:59:14 +0100	[thread overview]
Message-ID: <FCEAKDJJAPHPLJFINDAJAEHOCNAA.Stephan.Linke@epygi.de> (raw)
In-Reply-To: <742AC4678EF8464697DDDFE3B40F6ECD07E248@SRV-MAILRND.azisa.co.za>


Hi Flavio,

on 862 the internal memory mapped registers are not like plane memory. Only several addresses can actualy be accessed. If you try no
access an non existant register address you cause a bus error.
For that reason you have to consult the manual before you access any address in the IMMR area and in most cases a simple dump tries
to access an area that is to large to avoid invalid accesses.

Regards, Stephan

> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Flavio
> Pereira
> Sent: Mittwoch, 5. Februar 2003 13:48
> To: LinuxPPC-Embedded
> Subject: Accessing MPC862 registers
>
>
>
> Hi all
>
> I'm hoping that someone can help me here. I'm using the TQM8xxL module
> with a MPC862 processor on board. With minor changes to the pin
> configurations for the ethernet controller I have gotten U-boot and
> Linux to work without any issues. However from my BDI2000 shell, with my
> IMMR set to 0xFFF00000 (confirmed), I cannot do memory dumps for the
> region 0xFFF00000 - 0xFFF02000. From FFF02000 (DP-RAM) the memory
> accesses seem fine. The same goes for the u-boot shell. Obviously u-boot
> and linux have managed to access these registers, else the system would
> not start? How do I go about doing direct memory accesses to the MPC's
> registers which are located from 0xFFF00000 to 0xFFF00DFF from either
> u-boot or the BDI shell?
>
> Regards
> Flavio Pereira
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2003-02-05 12:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-05 12:48 Accessing MPC862 registers Flavio Pereira
2003-02-05 12:59 ` Stephan Linke [this message]
2003-02-05 13:03 ` 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=FCEAKDJJAPHPLJFINDAJAEHOCNAA.Stephan.Linke@epygi.de \
    --to=stephan.linke@epygi.de \
    --cc=Flavio.Pereira@za.flextronics.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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;
as well as URLs for NNTP newsgroup(s).