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

Dennis Semakin <[email protected]>
Newsgroups gmane.linux.ports.arm.general
Message-ID <[email protected]>
>  
>  Especiall check MSC1 and CSADRCFG2. What are their values in linux ?
> 

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;
}

In linux: 
I'll try later to find the values of these registers, because I have corrupted my kernel.

Thanks
Best regards
Dennis Semakin
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.