public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: mike@compulab.co.il (Mike Rapoport)
To: linux-arm-kernel@lists.infradead.org
Subject: [PXA320] How to find I/O registers, base address of ASIX ethernet chip?
Date: Sun, 07 Feb 2010 08:53:27 +0200	[thread overview]
Message-ID: <4B6E6367.40306@compulab.co.il> (raw)
In-Reply-To: <33291265356930@webmail116.yandex.ru>

Dennis Semakin wrote:
> Hello
> 
> I use u-boot.
> 
>>  
>>  The addresses passed to the driver is the I/O area of the chip select
>>  signal used for the Ethernet chip. This setting should be alright, as it
>>  worked well for me.
>>  
>>  If your kernel hangs when accessing this area, you most probably haven't
>>  set up your static bus correctly. The bootloader is in charge of doing
>>  this, and the correct value for CSADRCFG2 is 0x0032C809.
>>  
>>  Also see http://openpxa.sourceforge.net/ for patches to U-Boot and more
>>  information about replacing the native bootloader the modules ships
>>  with.
>>  
>>  Daniel
>>  
> 
> In U-BOOT:
> 
> MSC1 (address 0x4a00000c) - 0x0779
> $ md.w 0x4a00000c
> 4a00000c: 0779 0000 0000 0000 0000 0000 0000 0000 y...............
> 4a00001c: 0008 0000 0000 0000 0000 0000 0000 0000 ................
> 4a00002c: 0000 0000 0000 0000 0000 0000 0000 0000 ................
> 4a00003c: 0000 0000 0000 0000 0000 0000 0000 0000 ................
> 
> CSADRCFG2 (address 0x4a000088) - 0032c809
> $ md.l 0x4a000088
> 4a000088: 0032c809 00020000 00020000 00000000 ..2.............
> 4a000098: 00000000 00000000 00000000 00000000 ................
> 4a0000a8: 00000000 00000000 00000000 00000000 ................
> 4a0000b8: 00000000 00000000 00000000 00000000 ................
> 4a0000c8: 00000000 00000000 00000000 00000000 ................
> 
> As I think everythig is right and corresponds to a code
> 
> int board_init (void)
> {
> /* arch number for linux kernel */
> gd->bd->bi_arch_number = MACH_TYPE_COLIBRI320;
> 
> /* adress of boot parameters */
> gd->bd->bi_boot_params = 0x80000100;
> 
> /* configuration for ethernet chip */
> CKENB |= CKENB_7_GPIO;
> GPIO3 = 0x00001c01;
> MSC1 = 0x779;
> CSADRCFG2 = 0x0032C809;
> 
> return 0;
> }
> 

As far as I remember I had to set CSMSADRCFG to allow access CS1 region
on PXA300. Probably that's the bit that is missing in your setup as
well. The PXA300 developer manual states that "The Chip Select
Configuration Register (CSMSADRCFG) ... must be programmed with 0x02."
It does not explain anything, but without explicit setting of this bit I
had no CS1 activity at all ...

> Thanks
> Best regards
> Dennis Semakin 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


-- 
Sincerely yours,
Mike.

      parent reply	other threads:[~2010-02-07  6:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04  9:21 [PXA320] How to find I/O registers, base address of ASIX ethernet chip? Dennis Semakin
2010-02-04 12:28 ` 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 [this message]

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=4B6E6367.40306@compulab.co.il \
    --to=mike@compulab.co.il \
    --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