/* Check the DLL lock state, and return tue if running in unlock mode. This is needed to compensate for the shifted DLL value in unlock mode.  */
u32 omap2xxx_sdrc_dll_is_unlocked(void)
/* Check the DLL lock state, and return tue if running in unlock mode. This is needed to compensate for the shifted DLL value in unlock mode.  */
u32 omap2xxx_sdrc_dll_is_unlocked(void)
{
	u32 dll_state = sdrc_read_reg(SDRC_DLLA_CTRL);
	if ((dll_state & (1 << 2)) == (1 << 2))
		return 1;
	else
		return 0;
}