Texas Instruments XIO2213B Evaluation Module / Reference Design XIO2213BEVM XIO2213BEVM Datenbogen

Produktcode
XIO2213BEVM
Seite von 201
SCPS210F – OCTOBER 2008 – REVISED MAY 2013
3.5.4
Accessing Serial-Bus Devices Through Softwaree
The bridge provides a programming mechanism to control serial-bus devices through system software.
The programming is accomplished through a doubleword of PCI configuration space at offset B0h.
lists the registers that program a serial-bus device through software.
Table 3-5. Registers Used To Program Serial-Bus Devices
PCI OFFSET
REGISTER NAME
DESCRIPTION
B0h
Serial-bus data
Contains the data byte to send on write commands or the received data byte on read
(see
commands.
B1h
Serial-bus word address
The content of this register is sent as the word address on byte writes or reads. This register is
(see
not used in the quick command protocol. Bit 7 (PROT_SEL) in the serial-bus control and status
register (offset B3h, see
) is set to 1b to enable the slave address to be sent.
B2h
Serial-bus slave address
Write transactions to this register initiate a serial-bus transaction. The slave device address and
(see
the R/W command selector are programmed through this register.
B3h
Serial-bus control and
Serial interface enable, busy, and error status are communicated through this register. In
status (see
addition, the protocol-select bit (PROT_SEL) and serial-bus test bit (SBTEST) are programmed
through this register.
To access the serial EEPROM through the software interface, the following steps are performed:
1. The control and status byte is read to verify the EEPROM interface is enabled (SBDETECT asserted)
and not busy (REQBUSY and ROMBUSY deasserted).
2. The serial-bus word address is loaded. If the access is a write, the data byte is also loaded.
3. The serial-bus slave address and R/W command selector byte is written.
4. REQBUSY is monitored until this bit is deasserted.
5. SB_ERR is checked to verify that the serial-bus operation completed without error. If the operation is a
read, the serial-bus data byte is now valid.
3.6
Advanced Error Reporting Registers
In the extended PCIe configuration space, the bridge supports the advanced error reporting capabilities
structure. For the PCIe interface, both correctable and uncorrectable error statuses are provided. For the
PCI bus interface, secondary uncorrectable error status is provided. All uncorrectable status bits have
corresponding mask and severity control bits. For correctable status bits, only mask bits are provided.
Both the primary and secondary interfaces include first error pointer and header log registers. When the
first error is detected, the corresponding bit position within the uncorrectable status register is loaded into
the first error pointer register. Likewise, the header information associated with the first failing transaction
is loaded into the header log. To reset this first error control logic, the corresponding status bit in the
uncorrectable status register is cleared by a writeback of 1b.
For systems that require high data reliability, ECRC is fully supported on the PCIe interface. The primary-
side advanced error capabilities and control register has both ECRC generation and checking enable
control bits. When the checking bit is asserted, all received TLPs are checked for a valid ECRC field. If the
generation bit is asserted, all transmitted TLPs contain a valid ECRC field.
3.7
Data Error Forwarding Capability
The bridge supports the transfer of data errors in both directions.
If a downstream PCIe transaction with a data payload is received that targets the internal PCI bus and the
EP bit is set indicating poisoned data, the bridge must ensure that this information is transferred to the PCI
bus. To do this, the bridge forces a parity error on each PCI bus data phase by inverting the parity bit
calculated for each double word of data.
If the bridge is the target of a PCI transaction that is forwarded to the PCIe interface and a data parity
error is detected, this information is passed to the PCIe interface. To do this, the bridge sets the EP bit in
the upstream PCIe header.
Copyright © 2008–2013, Texas Instruments Incorporated
Feature/Protocol Descriptions
43
Product Folder Links: