Uart on cpm2_io (was: Using modem signal in cpm2 uart for MPC8270)
Hello,
Sorry to come with this UART issue again but I had no answer and no better idea but asking people who knows 82xx uart well, people who designed it.
My issue about this uart could be approched elseway : why is there a modem_control conditionnal compilation option when PQ2 SCCs (in normal operation mode which is default) take care of CTS,CD signals (Chap 20-8 GSMR_L register DIAG MPC8280 PQ2 Ref. Manual ) ?
I fell like that is clearly a design-time choice matter that I need to clarify.
And simply :
Is this version is known to be broken when activating this option ?
Please let me know your thoughts on this, it is very valuable to me, thanks.
Best Regards,
Mathieu
---------- Forwarded Message ----------
Subject: Using modem signal in cpm2 uart for MPC8270
Date: Friday 17 February 2006 11:12
From: Mathieu Deschamps <[email protected]>
To: [email protected]
Hello ppc-embedded folks,
I'am looking for a hint in arch/ppc/cpm2_io/uart.c on enable modem signal handling on MontaVista Linux 2.4.20. I know it's a bit ancient but some of you may have a good memory :) I mentionned enabling modem signal because this file seems to support modem, yet I come to the conclusion it is incomplete.
In void rs_8xx_interrupt function I've noticed it needs 'modem_control' defined to get the call done and modem lines changed on interrup(1). Also it needs defined 'notdef' to implement this code(2).
===(1)
#ifdef modem_control
check_modem_status(info);
#endif
===(2)
#ifdef notdef
/* I need to do this for the SCCs, so it is left as a reminder.
*/static _INLINE_ void check_modem_status(struct async_struct *info) {
[...]
}
#endif
===
Having this done is not sufficient, a lot of registers defined in linux/serial_reg.h are reported missing. I have included this file, yet other functions are missing, struct members also.
Here is compilation output :
===========================uart.c: In function `check_modem_status':
uart.c:603: warning: implicit declaration of function serial_in' uart.c:638: error: structure has no member named tqueue_hangup' uart.c:650: warning: implicit declaration of function serial_out' uart.c:651: warning: passing arg 1 of rs_sched_event' from incompatible pointer typeuart.c: In function `rs_8xx_interrupt':
uart.c:709: warning: passing arg 1 of `check_modem_status' from incompatible pointer typeuart.c: In function `startup':
uart.c:813: error: structure has no member named MCR' uart.c:815: error: structure has no member named MCR'uart.c: In function `change_speed':
uart.c:993: error: structure has no member named IER' uart.c:995: error: structure has no member named IER' uart.c:998: error: structure has no member named IER' uart.c:1005: error: structure has no member named IER' uart.c:1007: error: structure has no member named `IER'uart.c: In function `rs_8xx_throttle':
uart.c:1255: error: structure has no member named MCR' uart.c:1258: error: structure has no member named MCR'uart.c: In function `rs_8xx_unthrottle':
uart.c:1284: error: structure has no member named MCR' uart.c:1286: error: structure has no member named MCR'uart.c: In function `get_modem_info':
uart.c:1327: error: structure has no member named `MCR'uart.c: In function `set_modem_info':
uart.c:1358: error: structure has no member named MCR' uart.c:1360: error: structure has no member named MCR' uart.c:1363: error: structure has no member named MCR' uart.c:1365: error: structure has no member named MCR' uart.c:1370: error: structure has no member named MCR' uart.c:1372: error: structure has no member named MCR' uart.c:1375: error: structure has no member named MCR' uart.c:1377: error: structure has no member named MCR' uart.c:1381: error: structure has no member named MCR' uart.c:1381: error: structure has no member named MCR' uart.c:1398: error: structure has no member named `MCR'uart.c: In function `begin_break':
uart.c:1417: warning: comparison is always false due to limited range of data typeuart.c: In function `end_break':
uart.c:1461: warning: comparison is always false due to limited range of data typeuart.c: In function `rs_8xx_ioctl':
uart.c:1600: error: `cprev' undeclared (first use in this function) uart.c:1600: error: (Each undeclared identifier is reported only once uart.c:1600: error: for each function it appears in.) uart.c:1603: error: structure has no member named delta_msr_wait' uart.c: In function rs_8xx_set_termios':
uart.c:1670: error: structure has no member named MCR' uart.c:1672: error: structure has no member named MCR' uart.c:1679: error: structure has no member named MCR' uart.c:1682: error: structure has no member named MCR' uart.c:1685: error: structure has no member named `MCR'uart.c: In function `rs_8xx_wait_until_sent':
uart.c:1839: warning: unused variable `lsr'
=======
I wonder if modem support is incomplete or even if it was dropped in here but was conceived for another arch .
Looking forward to read your inputs.
Best regards,
Mathieu Deschamps
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
-------------------------------------------------------
Quoted 5 lines · Użytkownik Mathieu Deschamps
Hello,
Sorry to come with this UART issue again but I had no answer and no better idea but asking people who knows 82xx uart well, people who designed it.
Quoted 7 lines
My issue about this uart could be approched elseway : why is there a
modem_controlconditionnal compilation option when PQ2 SCCs (in normal operation mode which is default) take care of CTS,CD signals (Chap 20-8GSMR_Lregister DIAG MPC8280 PQ2 Ref. Manual ) ?I fell like that is clearly a design-time choice matter that I need to clarify.
And simply : Is this version is known to be broken when activating this option ?
Do not know what this option is, probably for disabling code from another driver. With latest CVS version from denx.de you have only to enable CTS/RTS.. signals in menuconfig. (And read my prior post if you're using SCC4 with SCC_CONSOLE)
Quoted 26 lines · Wojciech Kromer
Dnia 2006-02-21 09:58, U=C5=BCytkownik Mathieu Deschamps napisa=C5=82:
Quoted 11 lines
Hello,
Sorry to come with this UART issue again but I had no answer and no better idea but asking people who knows 82xx uart well, people who designed it.
My issue about this uart could be approched elseway : why is there a
modem_controlconditionnal compilation option when PQ2 SCCs (in normal operation mode which is default) take care of CTS,CD signals (Chap 20-8GSMR_Lregister DIAG MPC8280 PQ2 Ref. Manual ) ?Quoted 5 lines
I fell like that is clearly a design-time choice matter that I need to clarify.
And simply :
Is this version is known to be broken when activating this option ?Do not know what this option is, probably for disabling code from another driver.
With latest CVS version from denx.de you have only to enable CTS/RTS.. signals in menuconfig.
(And read my prior post if you're using SCC4 withSCC_CONSOLE)
Quoted 4 lines
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Thanks for your reply,
<> Do not know what this option is, probably for disabling code from <> another driver.
=2E..or rather to enable it...(default is disabled). Allthesame :=20
Now it's clear it has historical reason and that I should not meddle with i= t=20
in getting it enable. I guess it may be used for non-PQ2 or rather for non= =20
dedicated pins assignement capable cpu in order to implement thoses signals handling.
About SCC4 my version includes that code you spoke about in your prior=20 posts, but I'll use SCC4 as usb and not as console. Thus maybe this turned nouse and has vanished in your version and that's why it's call a=20 "feature enhancement" yet. =20
Best Regards,
=20
Mathieu Deschamps
Com2gether Design Center
Electronic and Embedded Engineering Services
www.com2gether.net=20