D-8
MPC106 PCIB/MC User's Manual
MOTOROLA
lwbrx r4, 0, r2 # load r4 from CONFIG_DATA
lis r0, 0x0016 # REDUCE WAIT STATES FOR ROM ACCESSES
ori r0, r0, 0x5555 # (contains no reserved bits)
and r4, r4, r0 # clears the desired bits
or r4, r4, r0 # sets the desired bits
stwbrx r4, 0, r2 # write the modified data to CONFIG_DATA
;#
lis r3, MPC106_REG # start building new register number
ori r3, r3, MCCR2 # register number 0xf4
stwbrx r3, 0, r1 # write this value to CONFIG_ADDR
lwbrx r4, 0, r2 # load r4 from CONFIG_DATA
lis r0, 0x0001 # Self-Refresh value (not used for MDC2 or MDC3) EDO mode set
;# lis r0, 0x0000 # Self-Refresh value (not used for MDC2 or MDC3) EDO mode NOT set
ori r0, r0, 0x0c34 # 0x30d (decimal 781) clocks between refresh, BUF=E/E
;# 781 clocks for 50 MHz, 1041 for 66.6 MHz
and r4, r4, r0 # clears the desired bits
or r4, r4, r0 # sets the desired bits
stwbrx r4, 0, r2 # write the modified data to CONFIG_DATA
;#
lis r3, MPC106_REG # start building new register number
ori r3, r3, MCCR3 # register number 0xf8
stwbrx r3, 0, r1 # write this value to CONFIG_ADDR
lwbrx r4, 0, r2 # load r4 from CONFIG_DATA
lis r0, 0x0002 # RAS6P=0101, CAS5=010, CP4=001,
ori r0, r0, 0xa294 # CAS3= 010, RCD2=010, RP1=100
and r4, r4, r0 # clears the desired bits
or r4, r4, r0 # sets the desired bits
stwbrx r4, 0, r2 # write the modified data to CONFIG_DATA
lis r3, MPC106_REG # start building new register number
ori r3, r3, MCCR4 # register number 0xfc
stwbrx r3, 0, r1 # write this value to CONFIG_ADDR
lwbrx r4, 0, r2 # load r4 from CONFIG_DATA
lis r0, 0xffef # all BUT bit 20 are reserved!!!
ori r0, r0, 0xffff # bit 31 is MSb
and r4, r4, r0 # clears all 0xfc reg bits except reserved bits
;# lis r0, 0x0000 # set RCBUF=0 for flow thru data buffers
lis r0, 0x0010 # set RCBUF=1 for clocked/latched data buffers
ori r0, r0, 0x0000 #
or r4, r4, r0 # sets the desired bits
stwbrx r4, 0, r2 # write value to CONFIG_DATA
;# lis r0, 0x0000 # set RCBUF=0 for flow thru data buffers
;# ori r0, r0, 0x0000 #
;# and r4, r4, r0 # clears the desired bits