-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 123790 b: refs/heads/master c: 5032630 h: refs/heads/master v: v3
- Loading branch information
Darius Augulis
authored and
Sascha Hauer
committed
Dec 16, 2008
1 parent
f6c83a3
commit 99c9530
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 219fed7558346225bae3cfd8fdbf44876e5bf79f | ||
refs/heads/master: 5032630f398a4e30371dd39fce28778eedcbb5b5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* MTD primitives for XIP support. Architecture specific functions | ||
* | ||
* Do not include this file directly. It's included from linux/mtd/xip.h | ||
* | ||
* Copyright (C) 2008 Darius Augulis <augulis.darius@gmail.com>, Teltonika, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
*/ | ||
|
||
#include <mach/mxc_timer.h> | ||
|
||
#ifndef __ARCH_IMX_MTD_XIP_H__ | ||
#define __ARCH_IMX_MTD_XIP_H__ | ||
|
||
#ifdef CONFIG_ARCH_MX1 | ||
/* AITC registers */ | ||
#define AITC_BASE IO_ADDRESS(AVIC_BASE_ADDR) | ||
#define NIPNDH (AITC_BASE + 0x58) | ||
#define NIPNDL (AITC_BASE + 0x5C) | ||
#define INTENABLEH (AITC_BASE + 0x10) | ||
#define INTENABLEL (AITC_BASE + 0x14) | ||
/* MTD macros */ | ||
#define xip_irqpending() ((__raw_readl(INTENABLEH) & __raw_readl(NIPNDH)) \ | ||
|| (__raw_readl(INTENABLEL) & __raw_readl(NIPNDL))) | ||
#define xip_currtime() (__raw_readl(TIMER_BASE + MXC_TCN)) | ||
#define xip_elapsed_since(x) (signed)((__raw_readl(TIMER_BASE + MXC_TCN) - (x)) / 96) | ||
#define xip_cpu_idle() asm volatile ("mcr p15, 0, %0, c7, c0, 4" :: "r" (0)) | ||
#endif /* CONFIG_ARCH_MX1 */ | ||
|
||
#endif /* __ARCH_IMX_MTD_XIP_H__ */ |