On 11/12/07, Sri nava kala devi Valteti, TLS-Chennai <[EMAIL PROTECTED]> wrote: > > We are using MPC5200B based custom board. In that we have an external > Micrel's ethernet controller mapped at 0xE0000000. > > We have taken Lite5200 code as a reference to port linux to our new board. We > have integrated the ethernet driver given by the vendor (Micrel). > > Unfortunately, we are not able to access the chip mapped at 0xE0000000.
Are you *sure* it's mapped at physical address 0xe0000000? (ie. have you verified that you can access the device registers via u-boot or a debugger?) The chip selects on the 5200 are programmable so you need to make sure that the chip select wired to the Micrel device is actually configured for base address 0xe0000000. There are up to 8 CS pins on the MPC5200B; LP_CS0 through LP_CS7. See section 9.7.1 in the MPC5200B user manual for details on how to configure them. > We performed the following steps to access the chip: > > i) We mapped this address range of the Ethernet Controller Chip in function > "mpc52xx_map_io" as > > "io_block_mapping(0xE0000000, 0xE0000000, 0x10000000, _PAGE_IO)" You don't want to call this. ioremap is the only function you should need to call. But *first*, you must make sure the CS pin is configured correctly. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [EMAIL PROTECTED] (403) 399-0195 _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded