linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC823E SMC/I2C/SPI micropatch
@ 2004-01-19 16:20 Jan Damborsky
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Damborsky @ 2004-01-19 16:20 UTC (permalink / raw)
  To: linuxppc-dev


Hi,

we want to use SCCs and SMCs on our custom board
with MPC823E in following configuration:
Ethernets on SCC2 and SCC3,
UARTs on SMC2 and SMC1. Normally it is not possible,
because SCC3 ethernet parameter RAM overlaps SMC1 one.
I have found Motorola micropatch
for SMC/I2C/SPI relocation only for MPC850 and MPC860
processors. They are slightly different (exactly
these patches differ in one word). I would like
to ask if somebody tries to use one of them
for MPC823E. Or if  another microcode patch exists
especially for MPC823E.

                    Regards, Jan Damborsky


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: MPC823E SMC/I2C/SPI micropatch
@ 2004-01-19 16:29 Steven Blakeslee
  2004-01-19 16:44 ` Jan Damborsky
  2004-01-26  7:23 ` Jan Damborsky
  0 siblings, 2 replies; 10+ messages in thread
From: Steven Blakeslee @ 2004-01-19 16:29 UTC (permalink / raw)
  To: 'Jan Damborsky', linuxppc-dev


I've used the one in the linuxppc_2_4_devel tree with success.
http://ppc.bkbits.net
It is found in directory arch/ppc/8xx_io

-----Original Message-----
From: Jan Damborsky [mailto:jan.damborsky@devcom.cz]
Sent: Monday, January 19, 2004 11:20 AM
To: linuxppc-dev@lists.linuxppc.org
Subject: MPC823E SMC/I2C/SPI micropatch



Hi,

we want to use SCCs and SMCs on our custom board
with MPC823E in following configuration:
Ethernets on SCC2 and SCC3,
UARTs on SMC2 and SMC1. Normally it is not possible,
because SCC3 ethernet parameter RAM overlaps SMC1 one.
I have found Motorola micropatch
for SMC/I2C/SPI relocation only for MPC850 and MPC860
processors. They are slightly different (exactly
these patches differ in one word). I would like
to ask if somebody tries to use one of them
for MPC823E. Or if  another microcode patch exists
especially for MPC823E.

                    Regards, Jan Damborsky


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-19 16:29 Steven Blakeslee
@ 2004-01-19 16:44 ` Jan Damborsky
  2004-01-26  7:23 ` Jan Damborsky
  1 sibling, 0 replies; 10+ messages in thread
From: Jan Damborsky @ 2004-01-19 16:44 UTC (permalink / raw)
  To: Steven Blakeslee, linuxppc-dev


Thank you. I will try it.

               Regards, Jan Damborsky

Steven Blakeslee wrote:
> I've used the one in the linuxppc_2_4_devel tree with success.
> http://ppc.bkbits.net
> It is found in directory arch/ppc/8xx_io
>
> -----Original Message-----
> From: Jan Damborsky [mailto:jan.damborsky@devcom.cz]
> Sent: Monday, January 19, 2004 11:20 AM
> To: linuxppc-dev@lists.linuxppc.org
> Subject: MPC823E SMC/I2C/SPI micropatch
>
>
>
> Hi,
>
> we want to use SCCs and SMCs on our custom board
> with MPC823E in following configuration:
> Ethernets on SCC2 and SCC3,
> UARTs on SMC2 and SMC1. Normally it is not possible,
> because SCC3 ethernet parameter RAM overlaps SMC1 one.
> I have found Motorola micropatch
> for SMC/I2C/SPI relocation only for MPC850 and MPC860
> processors. They are slightly different (exactly
> these patches differ in one word). I would like
> to ask if somebody tries to use one of them
> for MPC823E. Or if  another microcode patch exists
> especially for MPC823E.
>
>                     Regards, Jan Damborsky
>
>
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-19 16:29 Steven Blakeslee
  2004-01-19 16:44 ` Jan Damborsky
@ 2004-01-26  7:23 ` Jan Damborsky
  2004-01-26  8:00   ` Wolfgang Denk
  1 sibling, 1 reply; 10+ messages in thread
From: Jan Damborsky @ 2004-01-26  7:23 UTC (permalink / raw)
  To: Steven Blakeslee, linuxppc-dev


Hi,
I have found out that CPM micropatch
available in linux-2.4 from Wolfgang Denk
site (the kernel we use successfuly on our
custom boards at present) is applicable as well.
After some changes in 8xx CPM and UART code
I have succeeded.
For now, ethernets on SCC2 and SCC3, UARTs
on SMC1 and SMC2 work altogether.
Thank you very much.
                    Sincerely, Jan Damborsky

Steven Blakeslee wrote:
> I've used the one in the linuxppc_2_4_devel tree with success.
> http://ppc.bkbits.net
> It is found in directory arch/ppc/8xx_io
>
> -----Original Message-----
> From: Jan Damborsky [mailto:jan.damborsky@devcom.cz]
> Sent: Monday, January 19, 2004 11:20 AM
> To: linuxppc-dev@lists.linuxppc.org
> Subject: MPC823E SMC/I2C/SPI micropatch
>
>
>
> Hi,
>
> we want to use SCCs and SMCs on our custom board
> with MPC823E in following configuration:
> Ethernets on SCC2 and SCC3,
> UARTs on SMC2 and SMC1. Normally it is not possible,
> because SCC3 ethernet parameter RAM overlaps SMC1 one.
> I have found Motorola micropatch
> for SMC/I2C/SPI relocation only for MPC850 and MPC860
> processors. They are slightly different (exactly
> these patches differ in one word). I would like
> to ask if somebody tries to use one of them
> for MPC823E. Or if  another microcode patch exists
> especially for MPC823E.
>
>                     Regards, Jan Damborsky
>
>
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-26  7:23 ` Jan Damborsky
@ 2004-01-26  8:00   ` Wolfgang Denk
  2004-01-26  9:25     ` Jan Damborsky
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2004-01-26  8:00 UTC (permalink / raw)
  To: Jan Damborsky; +Cc: Steven Blakeslee, linuxppc-dev


In message <4014C088.1020208@devcom.cz> you wrote:
>
> I have found out that CPM micropatch
> available in linux-2.4 from Wolfgang Denk
> site (the kernel we use successfuly on our
> custom boards at present) is applicable as well.

You have to select the _correct_ uCode patch.

There is one patch for the MPC850, and another one for all other  8xx
processors. And there is the USB SOF potch for the MPC823.


Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Another dream that failed.  There's nothing sadder.
	-- Kirk, "This side of Paradise", stardate 3417.3

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-26  8:00   ` Wolfgang Denk
@ 2004-01-26  9:25     ` Jan Damborsky
  2004-01-26  9:33       ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Damborsky @ 2004-01-26  9:25 UTC (permalink / raw)
  To: Wolfgang Denk, linuxppc-dev


I think I have selected the __correct__ one.
Situated in ./arch/ppc/8xx_io/micropatch_850.c file.
- relocates I2C, SPI, SMC parameter RAM.
- it is determined for 850 and 823E processors (I hope).
- I had to define USE_SMC_PATCH and write some
   additional code for relocating SMC parameter RWM
   in cpm_load_patch() function (./arch/ppc/8xx_io/micropatch.c)
   as well as in SMC UART code (./arch/ppc/8xx_io/uart.c).
More additional hacks needed:
* original RPBASE set to 0x400 clashed with SMC micropatch
   so I redefined it to 0x800
* when used ethernets on SCC2,SCC3 with CONFIG_ENET_BIG_BUFFERS
   enabled, they need 2kB of DPRAM - it cannot fit together with
   micropatch in first 4kB of DPRAM, so I redefined
   CPM_DATAONLY_BASE to 0x1000 and CPM_DATAONLY_SIZE to 0x0c00

And for now, I have SCC2,SCC3 ethernets
and SMC1,SMC2 UARTs working altogether.

                               Sincerely, Jan Damborsky

Wolfgang Denk wrote:
> In message <4014C088.1020208@devcom.cz> you wrote:
>
>>I have found out that CPM micropatch
>>available in linux-2.4 from Wolfgang Denk
>>site (the kernel we use successfuly on our
>>custom boards at present) is applicable as well.
>
>
> You have to select the _correct_ uCode patch.
>
> There is one patch for the MPC850, and another one for all other  8xx
> processors. And there is the USB SOF potch for the MPC823.
>
>
> Best regards,
>
> Wolfgang Denk
>
> --
> See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
> Another dream that failed.  There's nothing sadder.
> 	-- Kirk, "This side of Paradise", stardate 3417.3
>
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-26  9:25     ` Jan Damborsky
@ 2004-01-26  9:33       ` Wolfgang Denk
  2004-01-26 10:29         ` Jan Damborsky
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2004-01-26  9:33 UTC (permalink / raw)
  To: Jan Damborsky; +Cc: linuxppc-dev


In message <4014DD1D.8070704@devcom.cz> you wrote:
> I think I have selected the __correct__ one.
> Situated in ./arch/ppc/8xx_io/micropatch_850.c file.

No!!! The micropatch_850.c is ONLY for MPC850, and NOT for MPC823(E).

> - it is determined for 850 and 823E processors (I hope).

Wrong.

> And for now, I have SCC2,SCC3 ethernets
> and SMC1,SMC2 UARTs working altogether.

But you might get "strange" effects for example when trying to use SPI.

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Bus error -- please leave by the rear door.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-26  9:33       ` Wolfgang Denk
@ 2004-01-26 10:29         ` Jan Damborsky
  2004-01-26 11:31           ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Damborsky @ 2004-01-26 10:29 UTC (permalink / raw)
  To: Wolfgang Denk, linuxppc-dev


Wolfgang Denk wrote:
> In message <4014DD1D.8070704@devcom.cz> you wrote:
>
>>I think I have selected the __correct__ one.
>>Situated in ./arch/ppc/8xx_io/micropatch_850.c file.
>
>
> No!!! The micropatch_850.c is ONLY for MPC850, and NOT for MPC823(E).
OK, so I will try and use micropatch_8xx.c instead.

>
>
>>- it is determined for 850 and 823E processors (I hope).
>
>
> Wrong.
But I really do not uderstand, why there is following
sentence in micropatch_850.c file:
   The patch applicable to the 850 and 823E processors.
And in micropatch_8xx.c:
   The patch applicable to all 8xx family except 850 and 823E.
I think it is rather misleading, is'nt it ?

	Sincerely, Jan Damborsky


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-26 10:29         ` Jan Damborsky
@ 2004-01-26 11:31           ` Wolfgang Denk
  2004-01-26 11:52             ` Jan Damborsky
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2004-01-26 11:31 UTC (permalink / raw)
  To: Jan Damborsky; +Cc: linuxppc-dev


In message <4014EC18.2000303@devcom.cz> you wrote:
>
> >>- it is determined for 850 and 823E processors (I hope).
> >
> > Wrong.
> But I really do not uderstand, why there is following
> sentence in micropatch_850.c file:
>    The patch applicable to the 850 and 823E processors.
> And in micropatch_8xx.c:
>    The patch applicable to all 8xx family except 850 and 823E.
> I think it is rather misleading, is'nt it ?

Yes, it is. Sorry about this. Seems we forgot to update this  comment
in  the linuxppc_2_4_devel tree (it was fixed in the linux-2.4 tree).
Fixed now - thanks for pointing out.

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
1st Old Man:  Gee, its windy today.
2nd Old Man:  No it's not... it's Thursday.
3rd Old Man:  Yeh, me too.  Let's go for a beer.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: MPC823E SMC/I2C/SPI micropatch
  2004-01-26 11:31           ` Wolfgang Denk
@ 2004-01-26 11:52             ` Jan Damborsky
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Damborsky @ 2004-01-26 11:52 UTC (permalink / raw)
  To: Wolfgang Denk, linuxppc-dev


Wolfgang Denk wrote:
> In message <4014EC18.2000303@devcom.cz> you wrote:
>
>>>>- it is determined for 850 and 823E processors (I hope).
>>>
>>>Wrong.
>>
>>But I really do not uderstand, why there is following
>>sentence in micropatch_850.c file:
>>   The patch applicable to the 850 and 823E processors.
>>And in micropatch_8xx.c:
>>   The patch applicable to all 8xx family except 850 and 823E.
>>I think it is rather misleading, is'nt it ?
>
>
> Yes, it is. Sorry about this. Seems we forgot to update this  comment
> in  the linuxppc_2_4_devel tree (it was fixed in the linux-2.4 tree).
> Fixed now - thanks for pointing out.
>
I thank you for spending your time to persuade me:-)

                                   Sincerely, Jan Damborsky


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-01-26 11:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-19 16:20 MPC823E SMC/I2C/SPI micropatch Jan Damborsky
  -- strict thread matches above, loose matches on Subject: below --
2004-01-19 16:29 Steven Blakeslee
2004-01-19 16:44 ` Jan Damborsky
2004-01-26  7:23 ` Jan Damborsky
2004-01-26  8:00   ` Wolfgang Denk
2004-01-26  9:25     ` Jan Damborsky
2004-01-26  9:33       ` Wolfgang Denk
2004-01-26 10:29         ` Jan Damborsky
2004-01-26 11:31           ` Wolfgang Denk
2004-01-26 11:52             ` Jan Damborsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).