/* set shadow registers */
DIO_P1DDR_shadow=0;
DIO_P3DDR_shadow=0;
+ DIO_PADDR_shadow=0;
+ DIO_PEDDR_shadow=0;
DIO_PFDDR_shadow=0;
DIO_PJDDR_shadow=0;
deb_led_out(0);
FlWait(1*100000);
- SHADOW_REG_SET(DIO_P1DDR,0x03); /* A20 and A21 are outputs */
+/* SHADOW_REG_SET(DIO_P1DDR,0x03); /\* A20 and A21 are outputs *\/ */
*DIO_P3DR=0x09; /* Inactive value of TxD0 and TxD1 has to be log 1 */
SHADOW_REG_SET(DIO_P3DDR,0x09); /* TxD0 and TxD1 to outputs */
+ *DIO_PADR=0x02; /* Inactive value of TxD2 has to be log 1 */
+ SHADOW_REG_SET(DIO_PADDR,0x02); /* TxD0 and TxD1 to outputs */
/* Setup system clock oscilator */
/* PLL mode x4, */
clkrat2stc[(CPU_SYS_HZ+CPU_REF_HZ/2)/CPU_REF_HZ]);
}
deb_led_out(1);
- FlWait(1*100000);
+ //FlWait(1*100000);
/* No clock disable, immediate change, busmaster high-speed */
*SYS_SCKCR=(0*SCKCR_PSTOPm)|(1*SCKCR_STCSm)|(0&SCKCR_SCKxm);
// SHADOW_REG_SET(DIO_PGDDR,2|4); no on 2638
#endif
-#if 1
+#if 0
/* setup chipselect 0 - FLASH */
*BUS_ABWCR&=~ABWCR_ABW0m; /* 16 bit width */
*BUS_ASTCR&=~ASTCR_AST0m; /* 2 states access */
#endif
deb_led_out(2);
- FlWait(1*100000);
+ //FlWait(1*100000);
-#if 1
+#if 0
/* cross cs wait| rd/wr wait | no burst and DRAM */
*BUS_BCRH=0*BCRH_ICIS1m | 0*BCRH_ICIS0m;
/* release | no DMAC buffer | no external wait */
#endif /* registers setup */
- FlWait(1*100000);
+ //FlWait(1*100000);
#ifdef FULL_XRAM_ADRBUS
/* Setup full 22 address lines */