Staging: hv: mousevsc: Cleanup alloc_input_device()
[zen-stable.git] / arch / arm / mach-davinci / include / mach / aemif.h
blob05b293443097220a80a33f98ce2ed9cd44ad26be
1 /*
2 * TI DaVinci AEMIF support
4 * Copyright 2010 (C) Texas Instruments, Inc. http://www.ti.com/
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10 #ifndef _MACH_DAVINCI_AEMIF_H
11 #define _MACH_DAVINCI_AEMIF_H
13 #define NRCSR_OFFSET 0x00
14 #define AWCCR_OFFSET 0x04
15 #define A1CR_OFFSET 0x10
17 #define ACR_ASIZE_MASK 0x3
18 #define ACR_EW_MASK BIT(30)
19 #define ACR_SS_MASK BIT(31)
21 /* All timings in nanoseconds */
22 struct davinci_aemif_timing {
23 u8 wsetup;
24 u8 wstrobe;
25 u8 whold;
27 u8 rsetup;
28 u8 rstrobe;
29 u8 rhold;
31 u8 ta;
34 int davinci_aemif_setup_timing(struct davinci_aemif_timing *t,
35 void __iomem *base, unsigned cs);
36 #endif