devc-ser8250 default frequency

bridged with qnx.rtos
Post Reply
Michael Tasche

devc-ser8250 default frequency

Post by Michael Tasche » Fri Aug 10, 2007 10:18 am

Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of the
target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible serial
board, customers with PPC-Targets have to use the "-c xxxx" option.

What is your opinion?

Kind Regards
Michael

Jacek Rudnicki

Re: devc-ser8250 default frequency

Post by Jacek Rudnicki » Tue Aug 21, 2007 11:31 am

Hi Michael,

You are right, the default settings for the PPC platform is 7372800/16.
You can modify the default settings in the file:
...../ser8250/ppc/sys_ttyinit.c from the ddk-devc-ser8250 package.

Regards
Robert Dobrus

Uzytkownik "Michael Tasche" <michael.tasche@esd-electronics.com> napisal w
wiadomosci news:shqto4-vra.ln1@comm.esd...
Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of the
target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible serial
board, customers with PPC-Targets have to use the "-c xxxx" option.

What is your opinion?

Kind Regards
Michael

Michael Tasche

Re: devc-ser8250 default frequency

Post by Michael Tasche » Wed Aug 22, 2007 9:19 am

Hi Robert,

Jacek Rudnicki schrieb:
Hi Michael,

You are right, the default settings for the PPC platform is 7372800/16.
You can modify the default settings in the file:
...../ser8250/ppc/sys_ttyinit.c from the ddk-devc-ser8250 package.
yes, I know.
But QNX is delivering standard binaries of devc-ser8250 inside the
Momentics installation, where the default clock frequency depends on the
target architecture.
This binaries have no relation to any BSP or DDK source tree.
So, why are the default frequencies different?

Regards
Michael
Regards
Robert Dobrus

Uzytkownik "Michael Tasche" <michael.tasche@esd-electronics.com> napisal w
wiadomosci news:shqto4-vra.ln1@comm.esd...
Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of the
target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible serial
board, customers with PPC-Targets have to use the "-c xxxx" option.

What is your opinion?

Kind Regards
Michael

Joe Mammone

Re: devc-ser8250 default frequency

Post by Joe Mammone » Wed Aug 22, 2007 2:16 pm

The default values are based on the hardware the driver was developed
for. This driver is for 16550 compatible UARTs (not necessarily
PCs)....the x86 variant defaults to 1843200/16 because the most common
hardware with this UART is a PC, in the PPC case the hardware that was
available used a clock setting of 7372800/16 and so it was chosen as the
default for PPC.

These UART come attached to many different pieces of hardware with a
wide variety of configuration. The default settings are simply
convenience...in most custom scenarios you will need to specify options
to configure the driver to your specific needs. As Michael mentioned, if
passing arguments to a driver is not something you like to do, then you
can download the source for free (contained in the Char DDK) and tailor
the driver as you see fit.

-Joe

Michael Tasche wrote:
Hi Robert,

Jacek Rudnicki schrieb:
Hi Michael,

You are right, the default settings for the PPC platform is 7372800/16.
You can modify the default settings in the file:
...../ser8250/ppc/sys_ttyinit.c from the ddk-devc-ser8250 package.

yes, I know.
But QNX is delivering standard binaries of devc-ser8250 inside the
Momentics installation, where the default clock frequency depends on the
target architecture.
This binaries have no relation to any BSP or DDK source tree.
So, why are the default frequencies different?

Regards
Michael


Regards
Robert Dobrus

Uzytkownik "Michael Tasche" <michael.tasche@esd-electronics.com
napisal w wiadomosci news:shqto4-vra.ln1@comm.esd...
Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of the
target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible serial
board, customers with PPC-Targets have to use the "-c xxxx" option.

What is your opinion?

Kind Regards
Michael

Michael Tasche

Re: devc-ser8250 default frequency

Post by Michael Tasche » Thu Aug 23, 2007 10:20 am

Hi Joe,

as you know, there are many PCI or CPCI serial boards with 16550.
Normally this boards defaults to the PC compatible frequency, to
simplify the use of the boards in PC's.
If a poor customer, reading the QNX docu and starting the driver for
such a board on a PPC machine, he gets into trouble, because he cannot
know, that there is a different default frequency for the PPC-variant.

I thought, having one default frequency for all CPU variants would make
things simpler.
Ok, if you do not like that, please correct the official documentation.

At the moment, you will find this in the docu:
"-c clock[/divisor]
Define a custom clock rate, in hertz, and divisor for the serial port.
The default (-c 1843200/16) is suitable for compatible PC serial ports."

-Michael

Joe Mammone schrieb:
The default values are based on the hardware the driver was developed
for. This driver is for 16550 compatible UARTs (not necessarily
PCs)....the x86 variant defaults to 1843200/16 because the most common
hardware with this UART is a PC, in the PPC case the hardware that was
available used a clock setting of 7372800/16 and so it was chosen as the
default for PPC.

These UART come attached to many different pieces of hardware with a
wide variety of configuration. The default settings are simply
convenience...in most custom scenarios you will need to specify options
to configure the driver to your specific needs. As Michael mentioned, if
passing arguments to a driver is not something you like to do, then you
can download the source for free (contained in the Char DDK) and tailor
the driver as you see fit.

-Joe

Michael Tasche wrote:
Hi Robert,

Jacek Rudnicki schrieb:
Hi Michael,

You are right, the default settings for the PPC platform is 7372800/16.
You can modify the default settings in the file:
...../ser8250/ppc/sys_ttyinit.c from the ddk-devc-ser8250 package.

yes, I know.
But QNX is delivering standard binaries of devc-ser8250 inside the
Momentics installation, where the default clock frequency depends on
the target architecture.
This binaries have no relation to any BSP or DDK source tree.
So, why are the default frequencies different?

Regards
Michael


Regards
Robert Dobrus

Uzytkownik "Michael Tasche" <michael.tasche@esd-electronics.com
napisal w wiadomosci news:shqto4-vra.ln1@comm.esd...
Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of the
target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible serial
board, customers with PPC-Targets have to use the "-c xxxx" option.

What is your opinion?

Kind Regards
Michael

Joe Mammone

Re: devc-ser8250 default frequency

Post by Joe Mammone » Thu Aug 23, 2007 12:55 pm

I see what you are saying about the docs...we'll put in a PR regarding
it. In a future release the driver will dump all its setting to the slog
at driver startup (with verbosity on), this should also help customer
determine how the driver is configured.

-Joe

Michael Tasche wrote:
Hi Joe,

as you know, there are many PCI or CPCI serial boards with 16550.
Normally this boards defaults to the PC compatible frequency, to
simplify the use of the boards in PC's.
If a poor customer, reading the QNX docu and starting the driver for
such a board on a PPC machine, he gets into trouble, because he cannot
know, that there is a different default frequency for the PPC-variant.

I thought, having one default frequency for all CPU variants would make
things simpler.
Ok, if you do not like that, please correct the official documentation.

At the moment, you will find this in the docu:
"-c clock[/divisor]
Define a custom clock rate, in hertz, and divisor for the serial port.
The default (-c 1843200/16) is suitable for compatible PC serial ports."

-Michael

Joe Mammone schrieb:
The default values are based on the hardware the driver was developed
for. This driver is for 16550 compatible UARTs (not necessarily
PCs)....the x86 variant defaults to 1843200/16 because the most common
hardware with this UART is a PC, in the PPC case the hardware that was
available used a clock setting of 7372800/16 and so it was chosen as
the default for PPC.

These UART come attached to many different pieces of hardware with a
wide variety of configuration. The default settings are simply
convenience...in most custom scenarios you will need to specify
options to configure the driver to your specific needs. As Michael
mentioned, if passing arguments to a driver is not something you like
to do, then you can download the source for free (contained in the
Char DDK) and tailor the driver as you see fit.

-Joe

Michael Tasche wrote:
Hi Robert,

Jacek Rudnicki schrieb:
Hi Michael,

You are right, the default settings for the PPC platform is 7372800/16.
You can modify the default settings in the file:
...../ser8250/ppc/sys_ttyinit.c from the ddk-devc-ser8250 package.

yes, I know.
But QNX is delivering standard binaries of devc-ser8250 inside the
Momentics installation, where the default clock frequency depends on
the target architecture.
This binaries have no relation to any BSP or DDK source tree.
So, why are the default frequencies different?

Regards
Michael


Regards
Robert Dobrus

Uzytkownik "Michael Tasche" <michael.tasche@esd-electronics.com
napisal w wiadomosci news:shqto4-vra.ln1@comm.esd...
Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of
the target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible
serial board, customers with PPC-Targets have to use the "-c xxxx"
option.

What is your opinion?

Kind Regards
Michael

Michael Tasche

Re: devc-ser8250 default frequency

Post by Michael Tasche » Thu Aug 23, 2007 4:07 pm

Joe Mammone schrieb:
I see what you are saying about the docs...we'll put in a PR regarding
it. In a future release the driver will dump all its setting to the slog
at driver startup (with verbosity on), this should also help customer
determine how the driver is configured.
Sounds good.
Thanks

-Michael
-Joe

Michael Tasche wrote:
Hi Joe,

as you know, there are many PCI or CPCI serial boards with 16550.
Normally this boards defaults to the PC compatible frequency, to
simplify the use of the boards in PC's.
If a poor customer, reading the QNX docu and starting the driver for
such a board on a PPC machine, he gets into trouble, because he cannot
know, that there is a different default frequency for the PPC-variant.

I thought, having one default frequency for all CPU variants would
make things simpler.
Ok, if you do not like that, please correct the official documentation.

At the moment, you will find this in the docu:
"-c clock[/divisor]
Define a custom clock rate, in hertz, and divisor for the serial port.
The default (-c 1843200/16) is suitable for compatible PC serial ports."

-Michael

Joe Mammone schrieb:
The default values are based on the hardware the driver was developed
for. This driver is for 16550 compatible UARTs (not necessarily
PCs)....the x86 variant defaults to 1843200/16 because the most
common hardware with this UART is a PC, in the PPC case the hardware
that was available used a clock setting of 7372800/16 and so it was
chosen as the default for PPC.

These UART come attached to many different pieces of hardware with a
wide variety of configuration. The default settings are simply
convenience...in most custom scenarios you will need to specify
options to configure the driver to your specific needs. As Michael
mentioned, if passing arguments to a driver is not something you like
to do, then you can download the source for free (contained in the
Char DDK) and tailor the driver as you see fit.

-Joe

Michael Tasche wrote:
Hi Robert,

Jacek Rudnicki schrieb:
Hi Michael,

You are right, the default settings for the PPC platform is
7372800/16.
You can modify the default settings in the file:
...../ser8250/ppc/sys_ttyinit.c from the ddk-devc-ser8250 package.

yes, I know.
But QNX is delivering standard binaries of devc-ser8250 inside the
Momentics installation, where the default clock frequency depends on
the target architecture.
This binaries have no relation to any BSP or DDK source tree.
So, why are the default frequencies different?

Regards
Michael


Regards
Robert Dobrus

Uzytkownik "Michael Tasche" <michael.tasche@esd-electronics.com
napisal w wiadomosci news:shqto4-vra.ln1@comm.esd...
Hi,

if I understand the documentation correctly, the default for the
devc-ser8250 is (-c 1843200/16).
This is not true for the PPC Binaries.

I think, the binaries devc-ser8250, delivered with the Momentics
installation, should use "1843200/16" per default independent of
the target architecture.
If not, we need some clarification in the Docu.

I do not want to be fussy, but if you deliver a PC compatible
serial board, customers with PPC-Targets have to use the "-c xxxx"
option.

What is your opinion?

Kind Regards
Michael

Post Reply

Return to “qnx.rtos”