Skip to contentSkip to conversation

powerpc port for sbc8260-based board problem

DISCUSSION Boris Shteinbock 2 participants 2 messages May 7, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · Boris Shteinbock
     /* Monitor port/SMC1 */
     smc1: serial@11a80 {
       device_type = "serial";
       compatible = "fsl,mpc8260-smc-uart",
                    "fsl,cpm2-smc-uart";
       reg = <0x11a80 0x20 0x1100 0x40>;
Quoted 5 lines

The second reg resource depends on where your firmware set up the SMC pram regs. With U-boot, it's usually zero.

Note that as of 2.6.26-rc1, this is set up dynamically instead, and the second resource should be .

Is this correct?

        reg = <0x11a80 0x20 0x87fc 2>;

I also understand, that latest development kernel contains some significant changes in SMC UART code, especially in muram code, is this correct? So does this reg value reflect this change?

Quoted 4 lines
Quoted 1 line

Can someone, also, explain, how "fsl, cpm-command" field works,

It's the device-specific portion of the value that gets written to the CPM command register (page, sub-block, and mcc channel).

Is it possible to get a quick list of all values for all 8260 soc devices somewhere ? Or do I have to dig specific Freescale reference for it? I am particularly interested in SMC2 and FCC1,2 and 3 ?

Thank you very much

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#1 lore raw
Quoted 8 lines · Boris Shteinbock
Quoted 5 lines

The second reg resource depends on where your firmware set up the SMC pram regs. With U-boot, it's usually zero.

Note that as of 2.6.26-rc1, this is set up dynamically instead, and the second resource should be .

Is this correct?

        reg = <0x11a80 0x20 0x87fc 2>;

Yes.

Quoted 2 lines

I also understand, that latest development kernel contains some significant changes in SMC UART code, especially in muram code, is this correct? So does this reg value reflect this change?

Yes, those are the changes I was referring to.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Can someone, also, explain, how "fsl, cpm-command" field works,

It's the device-specific portion of the value that gets written to the CPM command register (page, sub-block, and mcc channel).

Is it possible to get a quick list of all values for all 8260 soc devices somewhere ? Or do I have to dig specific Freescale reference for it?

See table 13-6 (CP Command Register Field Descriptions) in the 8260 manual.

Quoted 1 line

I am particularly interested in SMC2 and FCC1,2 and 3 ?

SMC2: 0x21200000
FCC1: 0x12000000 (ATM 0x11c00280)
FCC2: 0x16200000 (ATM 0x15c00280)
FCC3: 0x1a400000

For FCCs, add 0x300 for Ethernet, 0x3c0 for transparent.

-Scott