6.2.1.13 Miscellaneous Commands And Features - Emerson ATCA-8310 Manual

Table of Contents

Advertisement

To configure access attributes (target ID, target address offset) of the NREAD/NWRITE window,
it is required to modify the P4080 ROWTAR[1] register. Refer to the P4080 reference manual for
details.
The following C sample code defines some macros to configure the ROWTAR register with a
value suitable to access a specific DSP.
/* Some macro definitions */
static int bo[2] = { 0xd0c00, 0xd0e00 };
#define CCSRBAR 0xfe000000
#define VUINT volatile unsigned int
#define ROWTAR(i,x) *(VUINT*)(CCSRBAR + bo[i] + 0x00 + ((x)) * 0x20)
#define ENCODE_TREXAD(id,trad)((((id)&0xff)<<22) | ((trad)>>12))
/* Command to map NREAD/NWRITE window for interface <intf> to target
* ID <target>, address offset <offset>. Map either the lower or
* the upper 128MB, depending on the offset.
*/
ROWTAR (intf, 1) = ENCODE_TREXAD (target, offset & ~0x07ffffff);

6.2.1.13 Miscellaneous Commands and Features

6.2.1.13.1 Restoring Default Environment
The command "default_env" applies the default environment variables. Variables which are not
part of the default environment are left unmodified.
To clear all variables and restore the default environment it's required to invalidate the EEPROM
and restart the blade:
eeprom 0 0x100 0x100
reset
ATCA-8310 Installation and Use (6806800M72D)
U-Boot
193

Advertisement

Table of Contents
loading

Table of Contents