RE: [PATCH/2.6.17-rc4 1/10] Powerpc: Add general support for mpc7 448h pc2 (Taiga) platform
From: Liu Dave-r63238 <hidden>
Date: 2006-06-02 08:33:24
From: Liu Dave-r63238 <hidden>
Date: 2006-06-02 08:33:24
quoted
I had hoped to get the pci configure base address by ioremap, but failed. the tsi108 register locates at 0xc000,0000~0xC001,0000. It isquoted
OK to access them by ioremap. While pci configure access need to ioremap 0xfb00,0000 ~0xfc00,0000. I traced my code, when Ido ioremap,quoted
there is no bat match, I get the virtual address fromioremap_bot. thequoted
init ioremap_bot is 0xfe000000. When I do tsi108_csr_vir_base = ioremap(0xfb000000,0x1000000), the ioremap_bot is0xfdffe000 ( I getquoted
the serial port ioremap steal some space), tsi108_csr_vir_base = 0xfdfee000, I can not access the configure space with this address.What happens if you try ?quoted
While if I use bat0 or bat1 to map my tsi108 register space, the ioremap_bot will keep to 0xfe000000 until I dotsi108_csr_vir_base =quoted
ioremap(0xfb000000,0x1000000) then I get tsi108_csr_vir_base = 0xfd000000. Everything is OK.Both should work fine Ben.
The smallest BAT size of 74xx is 128KB, but the MPC7448_HPC2_NVRAM_SIZE Is 0x8000 (32KB) you set in your code. I suggest you set the MPC7448_HPC2_NVRAM_SIZE is 0x20000, try it. Dave