Index: dbop-as3525.c =================================================================== --- dbop-as3525.c (revision 28906) +++ dbop-as3525.c (working copy) @@ -43,7 +43,7 @@ /* make sure that the DBOP FIFO is empty */ while ((DBOP_STAT & (1<<10)) == 0); - int delay = 10; + int delay = 20; while (delay--) asm volatile ("nop\n"); /* write DBOP_DOUT to pre-charge DBOP data lines with a defined level */ Index: clock-target.h =================================================================== --- clock-target.h (revision 28906) +++ clock-target.h (working copy) @@ -119,8 +119,8 @@ #define AS3525_FCLK_FREQ 186000000 /* Boosted FCLK frequency - over 200MHz */ /* requires CVDDp bumped to 1.2V */ -#define AS3525_DRAM_FREQ 31000000 /* Initial DRAM frequency */ -#define AS3525_DRAM_FREQ_BOOSTED 62000000 +#define AS3525_DRAM_FREQ 23250000 /* Initial DRAM frequency */ +#define AS3525_DRAM_FREQ_BOOSTED 46500000 /* AS3525_PCLK_FREQ != AS3525_DRAM_FREQ/1 will boot to white lcd screen */ #endif /* CONFIG_CPU == AS3525v2 */ Index: sd-as3525.c =================================================================== --- sd-as3525.c (revision 28906) +++ sd-as3525.c (working copy) @@ -379,11 +379,11 @@ MCI_CLOCK(drive) = MCI_HALFSPEED; /* MCICLK = IDE_CLK/2 = 25 MHz */ #if defined(HAVE_MULTIDRIVE) else - { /* PCLK = 31Mhz (62 boosted) MCI = 31Mhz(hs) or 15.5 */ + { /* PCLK = 23.25Mhz (46.5MHz boosted) MCI = 23.25Mhz(hs) or 11.625 */ if (cpu_frequency == CPUFREQ_MAX ) - MCI_CLOCK(drive) = (hs_card ? MCI_HALFSPEED : MCI_QUARTERSPEED); - else MCI_CLOCK(drive) = (hs_card ? MCI_FULLSPEED : MCI_HALFSPEED); + else + MCI_CLOCK(drive) = MCI_FULLSPEED; } #endif @@ -534,20 +534,13 @@ #ifdef HAVE_MULTIDRIVE void sd_set_boosted_divider(void) { - if ( !sd_enabled ) - return; - /* 62Mhz/2 - 62/4 */ MCI_CLOCK(SD_SLOT_AS3525) = (hs_card ? - MCI_HALFSPEED : MCI_QUARTERSPEED); + MCI_FULLSPEED : MCI_HALFSPEED); } void sd_set_unboosted_divider(void) { - if ( !sd_enabled ) - return; - /* 31Mhz/1 - 31/2 */ - MCI_CLOCK(SD_SLOT_AS3525) = (hs_card ? - MCI_FULLSPEED : MCI_HALFSPEED); + MCI_CLOCK(SD_SLOT_AS3525) = MCI_FULLSPEED; } #endif