mpc860 gpcm
Hi All,
I have some problem in initialization the gpcm module for generating CSs.
Below is brief summery of my prceedings. If any budy knows plz help.....
1. I am using Motorola MCP860 with Flash, SRAM, & other devices.
2. I am able execute the code before i initialize the gpcm module, i.e generating
CS0 to CS7 for various peripherals that i have configured.
3. the initialization for CSs is (this also has other neccessary inits)
///////////////////////////////////////////////////////////////
//-------CS0---------------
oris r3,r0,0x0000 // R3 holds the value temporarily
ori r3,r3,0x0401 // 8-bit acess and V=1,for Test-Board.
oris r5,r0,0xFF00 // R5 holds the value temporarily
ori r5,r5,0x0704
//---Write the values---
stw r3,BR0(r4)
stw r5,OR0(r4)
//----------CS1-----------
// like wise i intialize for other CSs
//----------CS7-----------
addis r3,r0,0x1100 // R3 holds the value temporarily
ori r3,r3,0x0001 // 32-bit access and V=1.
addis r5,r0,0x1200 // R5 holds the value temporarily
ori r5,r5,0x07F0 // normal CS negation,delay CS by Half clock,normal timing
//---Write the values---
stw r5,OR7(r4)
stw r3,BR7(r4)
///////////////////////////////////////////////////////////////
4. If i disable the above initialization code my application program is working (with default CS0), i don't where i am wrong
Plz reply.
regards
Imran