* RE: about the Oxford 16pci952
@ 2002-03-12 21:46 Ed Vance
0 siblings, 0 replies; 2+ messages in thread
From: Ed Vance @ 2002-03-12 21:46 UTC (permalink / raw)
To: 'alexisr'; +Cc: 'linux-serial', 'linux-kernel'
On Tue Mar 12, 2002, alexisr@host.alphalink.fr wrote:
>
> Is someone know howto change, in the serial sources, the frequency
> of the Oxford's oscillator that is set to 14,7456 Mhz
Assuming the rev 5.05 serial driver package on SourceForge (I think that's
what you said you were using last time), in file serial.c at line 4341,
change the 16PCI952 table entry from this:
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI952,
PCI_ANY_ID, PCI_ANY_ID,
SPCI_FL_BASE0 , 2, 115200 },
To this:
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI952,
PCI_ANY_ID, PCI_ANY_ID,
SPCI_FL_BASE0 | SPCI_FL_BASE_TABLE , 2, 921600 },
The SPCI_FL_BASE_TABLE flag means that the second port is addressed by the
next BAR instead of at a higher address in the first BAR. According to the
data sheet, the OX16PCI952 has port 0 in BAR0 and port 1 in BAR1. (unlike
the OX16C954, BTW) The 921600 base baud value is your oscillator rate
divided by the default oversample rate, 16.
This is valid if the prescalar is not used. It is enabled by setting bit
MCR[7] to 1. The MCR value is initialized to zero at line 1360. I looked
through the driver for any code that would set bit MCR[7] and did not find
any. That means the prescalar is not used, so the only scale factor on your
oscillator rate would be the x16 oversample rate.
In file serial_compat.h at line 394, an incorrect PCI device ID is defined.
Change this line:
#define PCI_DEVICE_ID_OXSEMI_16PCI952 0x950A
to this:
#define PCI_DEVICE_ID_OXSEMI_16PCI952 0x9521
Also check your kernel file /usr/src/linux/include/linux/pci_ids.h for this
same define. If it is present, it must also be changed to 0x9521.
Good Luck.
Best regards,
----------------------------------------------------------------
Ed Vance serial24@macrolink.com
Macrolink, Inc. 1500 N. Kellogg Dr Anaheim, CA 92807
----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: about the Oxford 16pci952
@ 2002-03-19 19:50 Ed Vance
0 siblings, 0 replies; 2+ messages in thread
From: Ed Vance @ 2002-03-19 19:50 UTC (permalink / raw)
To: 'fabrizio.gennari@philips.com'
Cc: 'linux-serial', 'linux-kernel'
Fabrizio Gennari wrote:
>
> ... the device [with] ID 0x950A, is in fact a 16PCI954!
> The card is an Exsys EX-41092 rev. A, with an
> OX16PCI954-TQC60-A1 0105 chip.
Thanks for digging out the real answer. That certainly explains why the
current serial driver config entry for 16PCI952 does not match the
datasheet! I will submit a patch to correct the identification of the device
associated with that entry and add a correct entry for the 16PCI952 chip.
Good work!
> There are some mysteries: why are the device IDs different
> from the official Ox Semi ones? Probably the guys at Exsys
> did so intentionally, so the parallel port that cannot be
> used because of the lack of a connector would not be
> detected by the system?
Yes, Exsys undoubtedly did this intentionally with the EEPROM. You can do
some really interesting changes and initialization from the EEPROM.
Unfortunately, Exsys seems to have been confused about how the PCI spec says
card identification is to be done. They were not supposed to touch the
vendor and device IDs, because those fields define the PCI interface
silicon. They are supposed to change the subvendor and subsystem IDs to
uniquely represent their card. The whole card is the "subsystem". For
uniqueness, they would either get an official subsystem ID from Oxford Semi
to use with Oxford's vendor ID in the subvendor ID field, or get their own
vendor ID from those nice folks at the PCI SIG to put in the subvendor ID
field with their own arbitrary choice of subsystem ID.
I quote from section 6.2.4 "Miscellaneous Registers" of the "PCI Local Bus
specification" Revision 2.2, page 200:
| Subsystem Vendor ID and Subsystem ID
|
| These registers are used to uniquely identify the expansion board or
| subsystem where the PCI device resides. They provide a mechanism for
| expansion board vendors to distinguish their boards from one another
| even though the boards may have the same PCI controller on them (and,
| therefore, the same Vendor ID and Device ID).
The earlier PCI spec did not spell this out explicitly, so a lot of people
got it wrong.
Thanks again for clearing up the 16PCI952 mystery.
Best regards,
Ed Vance
----------------------------------------------------------------
Ed Vance serial24@macrolink.com
Macrolink, Inc. 1500 N. Kellogg Dr Anaheim, CA 92807
----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-19 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-12 21:46 about the Oxford 16pci952 Ed Vance
2002-03-19 19:50 Ed Vance
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®