[uClinux-dev] disabling a serial port - how to number?
Wolfgang Wegner
wolfgang at leila.ping.de
Wed Aug 22 02:42:48 EDT 2007
Hi Greg,
On Wed, Aug 22, 2007 at 05:09:40PM +1000, Greg Ungerer wrote:
> Hi Wolfgang,
>
> Wolfgang Wegner wrote:
[...]
> >initalisation, I have to disable UART1 completely in the driver.
[...]
> >- give the UARTs their "hardware number"
> > UART0 -> ttyS0
> > UART2 -> ttyS2
> > Like this, I could always use ttyS2 during development regardless
> > if I run on a standard kernel or my patched kernel. However, the
> > "missing ttyS1" looks a bit strange to me...
>
> It varies, but mostly serial drivers just number the devices
> they find from 0 upwards.
>
> In your case the UART1 is still there, only its output pins are
> not active. So I would follow your second method.
thank you for the vote! Meanwhile it seems more reasonable for me,
too, also because it is less effort. I can leave everything in place
except the GPIO (pin) initialisation, and also printk() some warning
in case someone tries to open() this port.
Regards,
Wolfgang
More information about the uClinux-dev
mailing list