From: insane79@yandex.ru (Dennis Semakin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PXA320] How to find I/O registers, base address of ASIX ethernet chip?
Date: Thu, 04 Feb 2010 12:21:40 +0300 [thread overview]
Message-ID: <19621265275300@webmail108.yandex.ru> (raw)
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?
Thanks
Best regards
Dennis Semakin
next reply other threads:[~2010-02-04 9:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 9:21 Dennis Semakin [this message]
2010-02-04 12:28 ` [PXA320] How to find I/O registers, base address of ASIX ethernet chip? Eric Miao
2010-02-04 13:09 ` Dennis Semakin
2010-02-04 13:24 ` Dennis Semakin
2010-02-04 13:31 ` Dennis Semakin
2010-02-05 4:26 ` Daniel Mack
2010-02-05 7:53 ` Uwe Kleine-König
2010-02-07 5:11 ` Daniel Mack
2010-02-08 6:06 ` Eric Miao
2010-02-05 8:02 ` Dennis Semakin
2010-02-07 5:13 ` Daniel Mack
2010-02-08 8:58 ` Dennis Semakin
2010-02-08 8:59 ` Dennis Semakin
2010-02-08 9:13 ` Uwe Kleine-König
2010-02-08 9:31 ` Dennis Semakin
2010-02-08 9:38 ` Dennis Semakin
2010-02-08 10:15 ` Daniel Mack
2010-02-08 12:16 ` Dennis Semakin
2010-02-08 12:49 ` Daniel Mack
2010-02-08 14:13 ` Dennis Semakin
2010-02-08 12:16 ` Dennis Semakin
2010-02-08 9:57 ` Dennis Semakin
2010-02-07 6:53 ` Mike Rapoport
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=19621265275300@webmail108.yandex.ru \
--to=insane79@yandex.ru \
--cc=linux-arm-kernel@lists.infradead.org \
/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