public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Value of CFG_PCI_MEMBASE
Date: Mon, 16 Jun 2008 09:43:07 +0200	[thread overview]
Message-ID: <200806160943.07250.sr@denx.de> (raw)
In-Reply-To: <73FA539107892C4C8C7A5ACA10C161C803A81E@MX2.AlphionCorp.local>

On Monday 16 June 2008, Sachin Rane wrote:
> Infact I was looking for the info to create a proper 'tlbentry' in 'init.S'
> As per my understanding the 'tlbentry' is to map 32-bit address to 36-bit
> address.
>
> The 'tlbenry' for the PCI Memory in 'init.S' is :
> tlbentry( CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
>
> The 'CFG_PCI_MEMBASE' is set to 0x80000000 in 'ocotea.h'.
>
> My question is how to select the value for 'CFG_PCI_MEMBASE'.
> Can I use any value (say 0x50000000 ) provided it is not overlapping with
> other devices?

Yes. I suggest to start with 0x80000000 since this leaves the first 2 GB for 
SDRAM.

> If we are using Board Memory Map as a reference then the 32-bit address
> 'CFG_PCI_MEMBASE'  used in 'telbentry' should have set to: 0x90000000

Why is this? Which "Board Memory Map" are you referring to?

> I am trying to find out the logic behind the selection of value for the
> variabale 'CFG_PCI_MEMBASE' in: tlbentry( CFG_PCI_MEMBASE, SZ_256M,
> 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )

Whats the problems with using 0x80000000 here?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2008-06-16  7:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 12:42 [U-Boot-Users] Value of CFG_PCI_MEMBASE Sachin Rane
2008-06-12  9:51 ` Stefan Roese
2008-06-16  6:12   ` Sachin Rane
2008-06-16  7:43     ` Stefan Roese [this message]
2008-06-16 15:48       ` Sachin
2008-06-20  6:44         ` Stefan Roese
2008-06-13  6:32 ` Sachin
2008-06-13  9:04   ` Sachin

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=200806160943.07250.sr@denx.de \
    --to=sr@denx.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