From: eric.y.miao@gmail.com (Eric Miao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] [ARM] Introduce USE_DEFAULT_IO_H to use default definitions in asm/io.h
Date: Fri, 25 Jun 2010 15:44:30 +0800 [thread overview]
Message-ID: <1277451871-15319-4-git-send-email-eric.y.miao@gmail.com> (raw)
In-Reply-To: <1277451871-15319-1-git-send-email-eric.y.miao@gmail.com>
From: Eric Miao <eric.miao@canonical.com>
For those machines that can just use the default definitions in asm/io.h,
there is no need to have a machine specific mach/io.h. Introduce an config
option for them.
Signed-off-by: Eric Miao <eric.miao@canonical.com>
---
arch/arm/Kconfig | 3 +++
arch/arm/include/asm/io.h | 6 ++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 1f254bd..46c00a1 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -189,6 +189,9 @@ config VECTORS_BASE
help
The base address of exception vectors.
+config USE_DEFAULT_IO_H
+ def_bool n
+
source "init/Kconfig"
source "kernel/Kconfig.freezer"
diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
index c980156..179d317 100644
--- a/arch/arm/include/asm/io.h
+++ b/arch/arm/include/asm/io.h
@@ -97,7 +97,13 @@ static inline void __iomem *__typesafe_io(unsigned long addr)
/*
* Now, pick up the machine-defined IO definitions
*/
+#ifndef CONFIG_USE_DEFAULT_IO_H
#include <mach/io.h>
+#else
+#define IO_SPACE_LIMIT 0xffffffff
+#define __io(a) __typesafe_io(a)
+#define __mem_pci(a) (a)
+#endif
/*
* IO port access primitives
--
1.7.1
next prev parent reply other threads:[~2010-06-25 7:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 7:44 [PATCH 0/4] Allow absence of mach/io.h Eric Miao
2010-06-25 7:44 ` [PATCH 1/4] [ARM] Remove useless __mem_isa() definitions Eric Miao
2010-07-23 9:25 ` Eric Miao
2010-06-25 7:44 ` [PATCH 2/4] [ARM] shmobile: change __io() definition to use __typesafe_io() Eric Miao
2010-06-25 8:24 ` Magnus Damm
2010-06-25 8:29 ` Eric Miao
2010-06-25 7:44 ` Eric Miao [this message]
2010-06-25 18:30 ` [PATCH 3/4] [ARM] Introduce USE_DEFAULT_IO_H to use default definitions in asm/io.h Nicolas Pitre
2010-06-25 7:44 ` [PATCH 4/4] [ARM] Make pxa and mmp to USE_DEFAULT_IO_H Eric Miao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1277451871-15319-4-git-send-email-eric.y.miao@gmail.com \
--to=eric.y.miao@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).