All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sangmoon Kim <dogoil@etinsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] What are IBAT and DBAT?
Date: Mon, 28 Jun 2004 19:44:46 +0900	[thread overview]
Message-ID: <00a501c45cfc$ee3262d0$212d4cdc@smkim> (raw)
In-Reply-To: 20040628062500.214.qmail@web20703.mail.yahoo.com

Hi,

> 3. Can IBAT and DBAT be modified dynamically? For example, if I want to
> access 0x70000000 ~ 0x78000000 temporarily, which is not defined in
> configuration header file, can I change the configuration of one of IBAT
> and DBAT pair, e.g. ibat2 and dbat2?
>

In case of board/etin/debris board.
DBAT1/IBAT1 is used for cache before RAM is initialized.
After RAM is initialized and the data memory area is mapped to RAM,
DBAT1/IBAT1 is not needed.
So I use DBAT1 for a flash memory at 0x78000000 after it.
See board/etin/debris/flash.c.
You can find the following code in flash_init function.

msr = get_msr();
set_msr(msr & ~(MSR_IR | MSR_DR));
mtibat1l(0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT);
mtibat1u(0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP);
mtdbat1l(0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT);
mtdbat1u(0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP);
set_msr(msr);

You can also change IBAT1 with similar method.

Regards,
Sangmoon Kim

  parent reply	other threads:[~2004-06-28 10:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28  6:25 [U-Boot-Users] What are IBAT and DBAT? Shawn
2004-06-28  7:01 ` Wolfgang Denk
2004-06-28 20:08   ` Shawn
2004-06-28  7:28 ` DeLaGarza, Robert
2004-06-28 15:09   ` Frank
2004-07-10 23:16   ` Wolfgang Denk
2004-06-28 10:44 ` Sangmoon Kim [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-28  7:38 Mészáros Lajos

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='00a501c45cfc$ee3262d0$212d4cdc@smkim' \
    --to=dogoil@etinsys.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.