Code Examples
Firmware
4 - 32
PPC/PMC-8260/DS1
NOLONGSWAP(val)
#define PBREADB(off,val) val = (*(volatile char*)(off));
#define PBWRITEB(off,val) *(volatile char*)(off) = val
Resetting the PPC/PMC-8260/DS1
/* Reset/start PMC8260 */
void pmc8260_reset_control (
char *csrBase, /* CSR Base address */
int reset /* 0 = clear reset, 1 = assert reset */
)
{
UINT32 dummy;
if (!reset)
{
/* Deassert PowerQuicc-II reset by clearing mailbox
* 0 interrupt */
RWRITE(PSPAN_ISR0, PSPAN_INT_MBOX0);
return;
}
/* Set PowerQuicc-II reset by asserting local interrupt 5
*/
/* map mailbox 0 to LINT 5 */
RREAD(PSPAN_IMR_MBOX, dummy);
dummy = (dummy & ~PSPAN_IMR_MBOX0) |
(PSPAN_INT_INT5 << PSPAN_IMR_MBOX0_S);
RWRITE (PSPAN_IMR_MBOX, dummy);
/* Enable mailbox 0 interrupt */
RREAD(PSPAN_IER0, dummy);
RWRITE(PSPAN_IER0, PSPAN_INT_MBOX0);
/* Access mailbox 0 to assert interrupt/RESET */
RWRITE(PSPAN_MBOX(0), 0);
/* wait one second */
sleep (1);
}
Summary of Contents for PPC/PMC-8260/DS1
Page 1: ...PPC PMC 8260 DS1 Reference Guide P N 6806800B10A July 2006 ...
Page 8: ...viii PPC PMC 8260 DS1 ...
Page 22: ...xxii PPC PMC 8260 DS1 ...
Page 26: ...xxvi PPC PMC 8260 DS1 ...
Page 30: ...xxx PPC PMC 8260 DS1 ...
Page 31: ...1 Introduction ...
Page 32: ......
Page 39: ...2 Installation ...
Page 40: ......
Page 53: ...3 Indicators and Connectors ...
Page 54: ......
Page 64: ...On Board Connectors Indicators and Connectors 3 12 PPC PMC 8260 DS1 ...
Page 65: ...4 Firmware ...
Page 66: ......
Page 104: ...Code Examples Firmware 4 40 PPC PMC 8260 DS1 ...
Page 105: ...5 Memory Map and Devices ...
Page 106: ......
Page 132: ...Resetting the Devices Memory Map and Devices 5 28 PPC PMC 8260 DS1 ...
Page 133: ...6 TDM Channel Configuration ...
Page 134: ......
Page 145: ...A Troubleshooting ...
Page 146: ......
Page 148: ...A 4 PPC PMC 8260 DS1 ...
Page 150: ...I 2 PPC PMC 8260 DS1 ...