Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * TI DaVinci AEMIF support
0003  *
0004  * Copyright 2010 (C) Texas Instruments, Inc. https://www.ti.com/
0005  *
0006  * This file is licensed under the terms of the GNU General Public License
0007  * version 2. This program is licensed "as is" without any warranty of any
0008  * kind, whether express or implied.
0009  */
0010 #ifndef _MACH_DAVINCI_AEMIF_H
0011 #define _MACH_DAVINCI_AEMIF_H
0012 
0013 #include <linux/platform_device.h>
0014 
0015 #define NRCSR_OFFSET        0x00
0016 #define AWCCR_OFFSET        0x04
0017 #define A1CR_OFFSET     0x10
0018 
0019 #define ACR_ASIZE_MASK      0x3
0020 #define ACR_EW_MASK     BIT(30)
0021 #define ACR_SS_MASK     BIT(31)
0022 
0023 /* All timings in nanoseconds */
0024 struct davinci_aemif_timing {
0025     u8  wsetup;
0026     u8  wstrobe;
0027     u8  whold;
0028 
0029     u8  rsetup;
0030     u8  rstrobe;
0031     u8  rhold;
0032 
0033     u8  ta;
0034 };
0035 
0036 #endif