comparison packages/hal/powerpc/moab/current/src/moab.S @ 1435:6e485f9ff763

Fix cycle time on NAND
author gthomas
date Tue, 09 Dec 2003 02:45:36 +0000
parents 0c4f43524d06
children
comparison
equal deleted inserted replaced
1434:951813e462b6 1435:6e485f9ff763
165 li r3,DCR_EBC0_B0CR 165 li r3,DCR_EBC0_B0CR
166 lwi r4,0xFFE38000 166 lwi r4,0xFFE38000
167 mtdcr DCR_EBC0_CFGADDR,r3 167 mtdcr DCR_EBC0_CFGADDR,r3
168 mtdcr DCR_EBC0_CFGDATA,r4 168 mtdcr DCR_EBC0_CFGDATA,r4
169 li r3,DCR_EBC0_B1AP // MAIN FLASH at 0xCxxxxxxx, R/W 169 li r3,DCR_EBC0_B1AP // MAIN FLASH at 0xCxxxxxxx, R/W
170 lwi r4,0x7F8FFE00 170 #if CYGHWR_HAL_POWERPC_CPU_SPEED == 250
171 lwi r4,0x03840000 // Cycle time = 50ns
172 #elif CYGHWR_HAL_POWERPC_CPU_SPEED == 333
173 lwi r4,0x05840000
174 #else
175 lwi r4,0x0C840000
176 #error "Unsupported board/CPU speed"
177 #endif
171 mtdcr DCR_EBC0_CFGADDR,r3 178 mtdcr DCR_EBC0_CFGADDR,r3
172 mtdcr DCR_EBC0_CFGDATA,r4 179 mtdcr DCR_EBC0_CFGDATA,r4
173 li r3,DCR_EBC0_B1CR 180 li r3,DCR_EBC0_B1CR
174 lwi r4,0xC0018000 // 1MB, 8bits [actually only 1 byte!] 181 lwi r4,0xC0018000 // 1MB, 8bits [actually only 1 byte!]
175 mtdcr DCR_EBC0_CFGADDR,r3 182 mtdcr DCR_EBC0_CFGADDR,r3