/* * linux/arch/arm/mach-omap2/memory.h * * Interface for memory timing related functions for OMAP24XX * * Copyright (C) 2005 Texas Instruments Inc. * Richard Woodruff <r-woodruff2@ti.com> * * Copyright (C) 2005 Nokia Corporation * Tony Lindgren <tony@atomide.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. *//* Memory timings */#define M_DDR 1#define M_LOCK_CTRL (1 << 2)#define M_UNLOCK 0#define M_LOCK 1structmemory_timings{u32m_type;/* ddr = 1, sdr = 0 */u32dll_mode;/* use lock mode = 1, unlock mode = 0 */u32slow_dll_ctrl;/* unlock mode, dll value for slow speed */u32fast_dll_ctrl;/* unlock mode, dll value for fast speed */u32base_cs;/* base chip select to use for calculations */};externvoidomap2_init_memory_params(u32force_lock_to_unlock_mode);externu32omap2_memory_get_slow_dll_ctrl(void);externu32omap2_memory_get_fast_dll_ctrl(void);externu32omap2_memory_get_type(void);