linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC852T with SCC3 and SMC1
@ 2003-12-10 17:23 Demke, Torsten
  0 siblings, 0 replies; 2+ messages in thread
From: Demke, Torsten @ 2003-12-10 17:23 UTC (permalink / raw)
  To: linuxppc-embedded


Hello all,

At one of our boards were using the MPC852T.
It will use the SMC1 as UART _and_ SCC3 with ethernet.
(SCC4 will also run  ethernet.)
I know that SCC3 will overlap the Parameter RAM of SMC1 and
I guess that there is a microcode patch to relocate the SMC1.

There is already a microcode patch mentioned in the 8xx_io/ directory
but it doesnt work at my board. Somebody uses this microcode to relocate
SMC1? (to which address?)

I also tried to find a microcode patch for MPC852T
at the motorola web-site but without success.
Can anybody give me a hint where to find this microcode?

Thanks for your help.

Best regards,

Torsten Demke


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

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

* RE: MPC852T with SCC3 and SMC1
       [not found] <9CFB9DA5261CD611A29B00508B789048071AAC06@ex-deu-munich02.force.de>
@ 2003-12-12 15:52 ` Stephan Linke
  0 siblings, 0 replies; 2+ messages in thread
From: Stephan Linke @ 2003-12-12 15:52 UTC (permalink / raw)
  To: Demke, Torsten; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2268 bytes --]

Hi Torsten,

I did all my tests in PPCBoot bootloader since I don't expect any additional problems in Linux.
Attached you can find a patch for cup/mpc8xx/serial.c in PPCBoot.

Regards, Stephan

> -----Original Message-----
> From: Demke, Torsten [mailto:Torsten.Demke@fci.com]
> Sent: Donnerstag, 11. Dezember 2003 10:57
> To: Stephan Linke
> Subject: RE: MPC852T with SCC3 and SMC1
>
>
> Hello Stephan,
>
> thanks for your help.
> Do you made changes in the Linux uart.c driver
> to work with the relocated data structures?
>
> Regards,
> Torsten
>
> > -----Original Message-----
> > From: Stephan Linke [mailto:Stephan.Linke@epygi.de]
> > Sent: Donnerstag, 11. Dezember 2003 08:02
> > To: Demke, Torsten
> > Subject: RE: MPC852T with SCC3 and SMC1
> >
> >
> > Hi Thorsten,
> >
> > you should look for a 860 microcode. It's a microcode that
> > allowes relocating SMC, I2C and SMC. I already did some tests
> > with it on
> > a 852T and it finaly worked fine. But I had a lot of trouble
> > getting PPCBoot running on it but that was due to some a giant array
> > allocated on the stack (console buffer).
> >
> >
> > Regards, Stephan
> >
> > > -----Original Message-----
> > > From: owner-linuxppc-embedded@lists.linuxppc.org
> > > [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On
> > Behalf Of Demke,
> > > Torsten
> > > Sent: Mittwoch, 10. Dezember 2003 18:24
> > > To: linuxppc-embedded@lists.linuxppc.org
> > > Subject: MPC852T with SCC3 and SMC1
> > >
> > >
> > >
> > > Hello all,
> > >
> > > At one of our boards were using the MPC852T.
> > > It will use the SMC1 as UART _and_ SCC3 with ethernet.
> > > (SCC4 will also run  ethernet.)
> > > I know that SCC3 will overlap the Parameter RAM of SMC1 and
> > > I guess that there is a microcode patch to relocate the SMC1.
> > >
> > > There is already a microcode patch mentioned in the 8xx_io/
> > directory
> > > but it doesnt work at my board. Somebody uses this
> > microcode to relocate
> > > SMC1? (to which address?)
> > >
> > > I also tried to find a microcode patch for MPC852T
> > > at the motorola web-site but without success.
> > > Can anybody give me a hint where to find this microcode?
> > >
> > > Thanks for your help.
> > >
> > > Best regards,
> > >
> > > Torsten Demke
> > >
> > >
> >
> >
>

[-- Attachment #2: serial.c.patch --]
[-- Type: application/octet-stream, Size: 1520 bytes --]

diff serial/ori/serial.c serial/new/serial.c
92a93,100
> #if defined(CFG_SMC_SPI_UCODE_PATCH)
> #ifdef CFG_ALLOC_DPRAM
> 	*(unsigned short*)&cp->cp_dparam[PROFF_SMC+0x3C] = dpram_alloc_align (52, 8) ;
> #else
> 	*(unsigned short*)&cp->cp_dparam[PROFF_SMC+0x3C] = CFG_SMC_RELOCATE_ADDR;
> #endif
> 	up = (smc_uart_t *) &cp->cp_dpmem[*(unsigned short*)&cp->cp_dparam[PROFF_SMC+0x3C]];
> #else
94c102
< 
---
> #endif
182a191,198
> #if defined(CFG_SMC_SPI_UCODE_PATCH)
> 	up->smc_rstate = 0;
> 	up->smc_tstate = 0;
> 	up->smc_rbptr = up->smc_rbase;
> 	up->smc_tbptr = up->smc_tbase;
> #endif
> 
> 
213a230
> #if !defined(CFG_SMC_SPI_UCODE_PATCH)
221c238
< 
---
> #endif
257c274,278
< 	up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
---
> #if defined(CFG_SMC_SPI_UCODE_PATCH)
> 	up = (smc_uart_t *) &cpmp->cp_dpmem[*(unsigned short*)&cpmp->cp_dparam[PROFF_SMC+0x3C]];
> #else
> 	up = (smc_uart_t *) &cpmp->cp_dparam[PROFF_SMC];
> #endif
291c312,316
< 	up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
---
> #if defined(CFG_SMC_SPI_UCODE_PATCH)
> 	up = (smc_uart_t *) &cpmp->cp_dpmem[*(unsigned short*)&cpmp->cp_dparam[PROFF_SMC+0x3C]];
> #else
> 	up = (smc_uart_t *) &cpmp->cp_dparam[PROFF_SMC];
> #endif
314c339,343
< 	up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
---
> #if defined(CFG_SMC_SPI_UCODE_PATCH)
> 	up = (smc_uart_t *) &cpmp->cp_dpmem[*(unsigned short*)&cpmp->cp_dparam[PROFF_SMC+0x3C]];
> #else
> 	up = (smc_uart_t *) &cpmp->cp_dparam[PROFF_SMC];
> #endif

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

end of thread, other threads:[~2003-12-12 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <9CFB9DA5261CD611A29B00508B789048071AAC06@ex-deu-munich02.force.de>
2003-12-12 15:52 ` MPC852T with SCC3 and SMC1 Stephan Linke
2003-12-10 17:23 Demke, Torsten

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).