[PATCH] 16C950 clock autodetection

From: fabrizio.gennari@philips.com
Date: Wed Feb 20 2002 - 10:02:52 EST


Here is a patch that applies to drivers/char/serial.c in kernel 2.4.17,
that automatically detects the clock frequency in a 16C950 chip and sets
baud_base accordingly.

There are two caveats:
1. The patch has been tested on i386 machines and it works. It gives wrong
results on ARM.
2. The patch sets baud_base if the serial chip is on a 16-bit PC card. If
it is on a PCI card (PCI slot or 32-bit CardBus card) the baud_base is
overwritten by the value in serial_pci_tbl[].

Fabrizio Gennari
Philips Research Monza
via G.Casati 23, 20052 Monza (MI), Italy
tel. +39 039 2037816, fax +39 039 2037800



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:24 EST