aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-omap/board-apollon.h
blob: de0c5b792c5852aa2190f2cc099e51a8410cc64c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * linux/include/asm-arm/arch-omap/board-apollon.h
 *
 * Hardware definitions for Samsung OMAP24XX Apollon board.
 *
 * Initial creation by Kyungmin Park <kyungmin.park@samsung.com>
 *
 * 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 SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * 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.,
 * 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __ASM_ARCH_OMAP_APOLLON_H
#define __ASM_ARCH_OMAP_APOLLON_H

/* Placeholder for APOLLON specific defines */
/* GPMC CS0 */
#define APOLLON_CS0_BASE		0x00000000
/* GPMC CS1 */
#define APOLLON_CS1_BASE		0x08000000
#define APOLLON_ETHR_START		(APOLLON_CS1_BASE + 0x300)
#define APOLLON_ETHR_GPIO_IRQ		74
/* GPMC CS2 - reserved for OneNAND */
#define APOLLON_CS2_BASE		0x10000000
/* GPMC CS3 - reserved for NOR or NAND */
#define APOLLON_CS3_BASE		0x18000000

#endif /*  __ASM_ARCH_OMAP_APOLLON_H */

= xip_omap_mpu_timer_base(nr); return timer->read_tim; } #define xip_irqpending() \ (omap_readl(OMAP_IH1_ITR) & ~omap_readl(OMAP_IH1_MIR)) #define xip_currtime() (~xip_omap_mpu_timer_read(0)) /* * It's permitted to do approxmation for xip_elapsed_since macro * (see linux/mtd/xip.h) */ #ifdef CONFIG_MACH_OMAP_PERSEUS2 #define xip_elapsed_since(x) (signed)((~xip_omap_mpu_timer_read(0) - (x)) / 7) #else #define xip_elapsed_since(x) (signed)((~xip_omap_mpu_timer_read(0) - (x)) / 6) #endif /* * xip_cpu_idle() is used when waiting for a delay equal or larger than * the system timer tick period. This should put the CPU into idle mode * to save power and to be woken up only when some interrupts are pending. * As above, this should not rely upon standard kernel code. */ #define xip_cpu_idle() asm volatile ("mcr p15, 0, %0, c7, c0, 4" :: "r" (1)) #endif /* __ARCH_OMAP_MTD_XIP_H__ */