From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 12 Jun 2008 11:51:37 +0200 Subject: [U-Boot-Users] Value of CFG_PCI_MEMBASE In-Reply-To: <73FA539107892C4C8C7A5ACA10C161C803A81A@MX2.AlphionCorp.local> References: <73FA539107892C4C8C7A5ACA10C161C803A81A@MX2.AlphionCorp.local> Message-ID: <200806121151.37838.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 11 June 2008, Sachin Rane wrote: > In the 'include/configs/ocotea.h" file: > 8<------------------------------------------------------------------------- >---------------------------- > > #define CFG_PCI_MEMBASE 0x80000000 /* mapped pci memory */ This is the virtual address. > 8<------------------------------------------------------------------------- >---------------------------- > > But the Memory map of the Ocotea board (PPC440GX? Evaluation Board User's > Manual) has mentioned about the PCI memory as: Start Address (32 Bit) - > 9000 0000 > End Address (32 Bit) - 9FFF FFFF > Start Address (36 Bit) - 3 0000 0000 > End Address (36 Bit) - 3 0FFF FFFF > Size - 256MB 256 MB The users manual referrs to the physical (36bit) address. > I am not clear about the logic behind the value assigned to CFG_PCI_MEMBASE > i.e. 0x80000000 The mapping between virtual and physical address is done via the MMU. I suggest you take a look at the init.S file in the board directory. This should make it clear. 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 =====================================================================