Sekhar Nori | 8060ef4 | 2010-08-09 15:46:35 +0530 | [diff] [blame] | 1 | /* |
| 2 | * TI DaVinci AEMIF support |
| 3 | * |
| 4 | * Copyright 2010 (C) Texas Instruments, Inc. http://www.ti.com/ |
| 5 | * |
| 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 |
| 12 | |
Ivan Khoronzhuk | 67f5185 | 2014-01-30 13:03:40 +0200 | [diff] [blame] | 13 | #include <linux/platform_device.h> |
| 14 | |
Sekhar Nori | 8060ef4 | 2010-08-09 15:46:35 +0530 | [diff] [blame] | 15 | #define NRCSR_OFFSET 0x00 |
| 16 | #define AWCCR_OFFSET 0x04 |
| 17 | #define A1CR_OFFSET 0x10 |
| 18 | |
| 19 | #define ACR_ASIZE_MASK 0x3 |
| 20 | #define ACR_EW_MASK BIT(30) |
| 21 | #define ACR_SS_MASK BIT(31) |
| 22 | |
| 23 | /* All timings in nanoseconds */ |
| 24 | struct davinci_aemif_timing { |
| 25 | u8 wsetup; |
| 26 | u8 wstrobe; |
| 27 | u8 whold; |
| 28 | |
| 29 | u8 rsetup; |
| 30 | u8 rstrobe; |
| 31 | u8 rhold; |
| 32 | |
| 33 | u8 ta; |
| 34 | }; |
| 35 | |
Ivan Khoronzhuk | 67f5185 | 2014-01-30 13:03:40 +0200 | [diff] [blame] | 36 | int davinci_aemif_setup(struct platform_device *pdev); |
Sekhar Nori | 8060ef4 | 2010-08-09 15:46:35 +0530 | [diff] [blame] | 37 | #endif |