public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shinya Kuribayashi <skuribay@pobox.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot-Users] MIPS: accessing flash > 8MB
Date: Sun, 26 Jul 2009 20:37:54 +0900	[thread overview]
Message-ID: <4A6C4012.1040002@pobox.com> (raw)
In-Reply-To: <7f245da80907251943n173ec78bq879f3ea85b046773@mail.gmail.com>

Chetan Nanda wrote:
> We have a MIPS-4KEC based SoC and running an older version of U-Boot 
> (1.1.3) on it. It is working perfectly fine.
> Board has 8MB AMD flash and starting address of that flash is 0xBFC00000 
> (reset vector for MIPS).
> 
> Problem is that we are not able to access full 8MB of flash. Only 
> 0xBFC00000 - 0xBFFFFFFF (4MB) is accessible, as it lies in un-mapped, 
> un-cached region of MIPS.
>  From 0xC0000000 lies in mapped memory area of MIPS.
> 
> Now my questions are, creating entry in TLBs is sufficient to access 
> rest of 4MB of flash?

It depends on its physical address.  If your flash device is mapped to
0x1FC00000-0x203FFFFF, you'll need to access to the remaining half via
TLBs.

However, if it's mapped to 0x1F800000-0x1FFFFFFF, no need to set up TLB
entries; you can access anywhere in the devices using KSEG1 virtual
addresses.


> Is their any interface provided in U-boot to update TLB?

There's write_one_tlb() prepared in cpu/mips/cpu.c (I don't know whether
it works or not, as I've never had a chance to use it so far).  Lastly,
AFAIK there's no command line interface to do it.

      reply	other threads:[~2009-07-26 11:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-26  2:43 [U-Boot] MIPS: accessing flash > 8MB Chetan Nanda
2009-07-26 11:37 ` Shinya Kuribayashi [this message]

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=4A6C4012.1040002@pobox.com \
    --to=skuribay@pobox.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