Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Sean Parker <seaneparker@yahoo.com>
To: linux-mips@linux-mips.org
Cc: supinlick@yahoo.com
Subject: Accessing DDR DCR registers in init_mem - PMC RM9000
Date: Mon, 14 Jul 2008 06:23:49 -0700 (PDT)	[thread overview]
Message-ID: <23157.12397.qm@web37506.mail.mud.yahoo.com> (raw)

Hello - 

  We're trying to determine dynamically the DDR DCR register values from within setup.c, init_mem(), so that we can remove the hard-coded 256MB RAM size (and not rely on cmd-line args) From documentation I've read (not evry clear for a MIPS newbie) it appears I need to setup a TLB entry to access phys mem above 0x80000000. (PMON already sets up a range for Compact Flash)

  I setup a TLB entry for that region ( 0xFF080000, making 3 total entries setup in PMON) but I still get an exception in setup.c when I try to read the DCR reg.

  Is it as simple as setting up a TLB entry? I can't find examples for how to access registeres in various segments of physical memory (in kernel mode) does anyone know of a good resource for that kind of stuff?

  Any suggestions?

  Thanks
    Sean



      

             reply	other threads:[~2008-07-14 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 13:23 Sean Parker [this message]
2008-07-14 13:55 ` Accessing DDR DCR registers in init_mem - PMC RM9000 Sean Parker

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=23157.12397.qm@web37506.mail.mud.yahoo.com \
    --to=seaneparker@yahoo.com \
    --cc=linux-mips@linux-mips.org \
    --cc=supinlick@yahoo.com \
    /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