Changing
#define DRAM_FREQ 166 // 120 // SDRAM clock frequency, unit: MHz. RA8876
to
#define DRAM_FREQ 160 // 120 // SDRAM clock frequency, unit: MHz. RA8876
gets rid of the compiler warning and still "feels" faster.
Also does not exceed this
// SDRAM access clock,suggested 50~160MHz