/*
 * include/asm-arm/arch-cxd4115/regs-dmc.h
 *
 * CXD4115 DMC
 *
 * Copyright 2007,2008,2009 Sony Corporation
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 */
#ifndef __CXD4115_REGS_DMC_H__
#define __CXD4115_REGS_DMC_H__


#define DMC_CONFIG0	0x00
#define DMC_CONFIG1	0x04
#define DMC_CONFIG2	0x08
#define DMC_MEMORY	0x0C
# define DMC_MODE2RANK		0x80000000
#define DMC_PHYIF	0x10
#define DMC_COMMAND	0x14
# define DMC_APBCMDREQ0		0x10000000
# define DMC_APBCMDREQ1		0x20000000
# define DMC_APBCMDREQMASK	(DMC_APBCMDREQ0|DMC_APBCMDREQ1)
# define DMC_APBCMD_SIN		0x04000000
# define DMC_APBCMD_DPD		0x06000000
#define DMC_REFRESH	0x18
#define DMC_MODE	0x1c

#endif /* __CXD4115_REGS_DMC_H__ */
