Re: [PXA320] How to find I/O registers, base address of ASIX ethernet chip?

Marek Vasut <[email protected]>
Newsgroups gmane.linux.ports.arm.general
Organization Hack&Dev
Message-ID <[email protected]>
Dne Čt 4. února 2010 10:26:35 Dennis Semakin napsal(a):
> Hello all
> 
> Configuration:
> Computer module is Toradex Colibri PXA320.
> Board is Colibri Evaluation Board.
> 
> Obviously, to access the I/O register of network card, we need to map them
>  into memory, using the ioremap() function. To do this driver (ax88796.c)
>  use platform_get_resource() function to get the physical address of the
>  I/O registers from the board definition
>  (arch/arm/mach-pxa/colibri-pxa320.c). This function returns a pointer to a
>  struct resource, which contains two interesting fields : start and end
>  (both are physical address). Then call ioremap function to remap the
>  memory area returned by platform_get_resource. Right?
> 
> Ok. When I start kernel on my board, kernel loading stops on network
>  initialization during call to the address resource.start. So, what could I
>  do if the address (field start in resource structure) is not valid? Can I
>  find it? (I mean address) Maybe I should ask something: where are ethernet
>  chip I/O registers mapped in the memory?

It all works fine here. I'm seeing some problem with the uboot at your side (I'm 
very busy now, exams etc, cant help much, sorry). What's the contents of your 
static memory controller registers ?

Especiall check MSC1 and CSADRCFG2. What are their values in linux ?
> 
> Thanks
> Best regards
> Dennis Semakin
> 
> 
> _______________________________________________
> linux-arm mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/linux-arm
> 

_______________________________________________
linux-arm mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.