Convert files that use SDRC registers in mach-omap2/ to use sdrc.h
symbolic constants and sdrc_{read,write}_reg().
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
#include "prcm-regs.h"
#include "memory.h"
#include "clock.h"
+#include "sdrc.h"
#undef DEBUG
*/
static u32 omap2_dll_force_needed(void)
{
- u32 dll_state = SDRC_DLLA_CTRL; /* dlla and dllb are a set */
+ /* dlla and dllb are a set */
+ u32 dll_state = sdrc_read_reg(SDRC_DLLA_CTRL);
if ((dll_state & (1 << 2)) == (1 << 2))
return 1;