* Re: [ECOS] MPC860 Quick question
@ 2003-10-28 15:02 Radu Cernea
0 siblings, 0 replies; 3+ messages in thread
From: Radu Cernea @ 2003-10-28 15:02 UTC (permalink / raw)
To: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]
>> The difference is in the pin allocation for SMC2:
>>
>> - Port B21 & B20 for MPC860
>> - Port A9 & A8 for MPC850
>>
>> The current version of quicc_smc1.c initialize the port pins MPC850-like
>> (function cyg_hal_smcx_init_channel).
>>
>> My question is:
>> How is it better to add the MPC860 initialization version to the eCos sources?
>> Should I create a new file, use a conditional pre-compilation flag, or
?
>
> What version of quicc_smc1.c are you looking at? There is supposed to be
complete
> support already in place for SMC1/SMC2 and SCC1/SCC2/SCC4. If this is not the
> case, we need to fix it *there*, not add new code somewhere else.
Unfortunately I do not have CVS access (the IT department rules
), so I
download snapshots from ecoscentric. In the last one (031026), Im looking at
the file:
/ecos/packages/hal/powerpc/quicc/current/src/quicc_smc1.c
There is support for SMC2, but the initialization is not the proper one for
MPC860. Instead of:
168: eppc->pio_papar |= 0xc0;
169: eppc->pio_padir &= ~0xc0;
170: eppc->pio_paodr &= ~0xc0;
It should be something like:
eppc->pip_pbpar |= 0x00000C00;
eppc->pip_pbdir &= ~0x00000C00;
eppc->pip_pbodr &= ~0x00000C00;
See, for the reference, the table 34-6 in MPC860UM.pdf
Regards,
Radu
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] MPC860 Quick question
2003-10-27 16:58 Radu Cernea
@ 2003-10-28 7:53 ` Gary Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2003-10-28 7:53 UTC (permalink / raw)
To: Radu Cernea; +Cc: ecos-discuss
Radu Cernea said:
> Hello,
>
> It looks to me that the quicc_smc1.c file fits the MPC850 processor, but not
> the MPC860 for the SMC2 initialization. The difference is in the pin
> allocation for SMC2:
>
> - Port B21 & B20 for MPC860
> - Port A9 & A8 for MPC850
>
> The current version of quicc_smc1.c initialize the port pins MPC850-like
> (function cyg_hal_smcx_init_channel).
>
> My question is:
> How is it better to add the MPC860 initialization version to the eCos sources?
> Should I create a new file, use a conditional pre-compilation flag, orÂ
?
What version of quicc_smc1.c are you looking at? There is supposed to be complete
support already in place for SMC1/SMC2 and SCC1/SCC2/SCC4. If this is not the
case, we need to fix it *there*, not add new code somewhere else.
> Also, there is a reference to a table (Table 16-39) in the quicc_smc1.c file,
> but I do not know where to find it. In MPC850UM.pdf and MPC860UM.pdf, the Port
> A and B configuration tables are: 34-1 and 34-6.
Those references are (sadly) from very old printed documents. You'll have to
figure out what they correspond to in the newer PDF files.
>
> Thank you in advance,
> Radu Cernea
>
>
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ECOS] MPC860 Quick question
@ 2003-10-27 16:58 Radu Cernea
2003-10-28 7:53 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Radu Cernea @ 2003-10-27 16:58 UTC (permalink / raw)
To: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 906 bytes --]
Hello,
It looks to me that the quicc_smc1.c file fits the MPC850 processor, but not
the MPC860 for the SMC2 initialization. The difference is in the pin
allocation for SMC2:
- Port B21 & B20 for MPC860
- Port A9 & A8 for MPC850
The current version of quicc_smc1.c initialize the port pins MPC850-like
(function cyg_hal_smcx_init_channel).
My question is:
How is it better to add the MPC860 initialization version to the eCos sources?
Should I create a new file, use a conditional pre-compilation flag, or
?
Also, there is a reference to a table (Table 16-39) in the quicc_smc1.c file,
but I do not know where to find it. In MPC850UM.pdf and MPC860UM.pdf, the Port
A and B configuration tables are: 34-1 and 34-6.
Thank you in advance,
Radu Cernea
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-28 15:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-28 15:02 [ECOS] MPC860 Quick question Radu Cernea
-- strict thread matches above, loose matches on Subject: below --
2003-10-27 16:58 Radu Cernea
2003-10-28 7:53 ` Gary Thomas
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 read-only IMAP folder(s) and NNTP newsgroup(s).