28 initializing the pci configuration registers, Initializing the pci configuration registers -64, Data structure for register initialization -64 – Freescale Semiconductor MPC8260 User Manual

Page 370: Ing in, Section 9.11.2.28, Initializing the pci configuration registers

Advertising
background image

PCI Bridge

MPC8260 PowerQUICC II Family Reference Manual, Rev. 2

9-64

Freescale Semiconductor

Therefore, to set CTM in PCI DMA0 mode register, 0x00000004 is written to 0x04710504.

9.11.2.28 Initializing the PCI Configuration Registers

The configuration registers are initialized to the reset values shown in the register descriptions. However,
they can also be initialized to user-defined values loaded directly from the EEPROM used to configure the
PowerQUICC II by setting the ALD_EN (auto-load enable) bit in the hard reset configuration word; refer
to

Section 5.4.1, “Hard Reset Configuration Word.

To initialize configuration registers from an EEPROM, the user builds a contiguous table of register
initialization data structures in a user-defined space within the EEPROM. Each data structure, shown in

Figure 9-58

, contains the address of a specific register and its initialization data, as well as some control

information. The last data structure entry in the table is marked by setting its ‘Last’ bit.

Figure 9-58. Data Structure for Register Initialization

Table 9-45. describes the data structure fields.

Note that the data structure description assumes the following:

Addresses refer to 60x bus addresses.

Address and data byte ordering are big-endian.

Offset from the table

start address

0

28

29

30

31

0x00

Destination address

0x04

Last

Size[1:0]

0x08

Destination data

0x0C

Table 9-45. Bit Settings for Register Initialization Data Structure

Offset

Bits

Name

Description

0x00

0–31

Address

Contains the absolute destination address to which the data is written.

0x04

0–28

Reserved, should be cleared.

29

Last

Indicates that this is the last initialization transaction to be performed.
0 Not last transaction
1 Last transaction

30–31

SIZE

Data size in bytes
00 4 bytes
01 1 byte
10 2 bytes
11 3 bytes

0x08

0–31

Data

Contains the data to be written to the specified address. Data bytes are
written according to the value specified in the SIZE field and according
to big-endian byte ordering.

Advertising