From: "Stephan Linke" <Stephan.Linke@epygi.de>
To: "Demke, Torsten" <Torsten.Demke@fci.com>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Subject: RE: MPC852T with SCC3 and SMC1
Date: Fri, 12 Dec 2003 16:52:12 +0100 [thread overview]
Message-ID: <NGENJJFPMHGLPILEKKAMEEPPCDAA.Stephan.Linke@epygi.de> (raw)
In-Reply-To: <9CFB9DA5261CD611A29B00508B789048071AAC06@ex-deu-munich02.force.de>
[-- 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
next parent reply other threads:[~2003-12-12 15:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9CFB9DA5261CD611A29B00508B789048071AAC06@ex-deu-munich02.force.de>
2003-12-12 15:52 ` Stephan Linke [this message]
2003-12-10 17:23 MPC852T with SCC3 and SMC1 Demke, Torsten
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=NGENJJFPMHGLPILEKKAMEEPPCDAA.Stephan.Linke@epygi.de \
--to=stephan.linke@epygi.de \
--cc=Torsten.Demke@fci.com \
--cc=linuxppc-embedded@lists.linuxppc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.