From: rmk+kernel@armlinux.org.uk (Russell King)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] ARM: sa1111: remove some redundant definitions
Date: Mon, 27 Nov 2017 18:38:51 +0000 [thread overview]
Message-ID: <E1eJOIt-0006of-IA@rmk-PC.armlinux.org.uk> (raw)
In-Reply-To: <20171127183811.GM31757@n2100.armlinux.org.uk>
SA1111_VBASE, SA1111_p2v, SA1111_v2p, _SA1111, SA1111_ADDR_WIDTH,
SA1111_ADDR_MASK, and SA1111_DMA_ADDR are not used anywhere in the
kernel, so remove these redundant definitions.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
arch/arm/include/asm/hardware/sa1111.h | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h
index 8a7ccebd109d..709980647dd1 100644
--- a/arch/arm/include/asm/hardware/sa1111.h
+++ b/arch/arm/include/asm/hardware/sa1111.h
@@ -16,30 +16,6 @@
#include <mach/bitfield.h>
/*
- * The SA1111 is always located at virtual 0xf4000000, and is always
- * "native" endian.
- */
-
-#define SA1111_VBASE 0xf4000000
-
-/* Don't use these! */
-#define SA1111_p2v( x ) ((x) - SA1111_BASE + SA1111_VBASE)
-#define SA1111_v2p( x ) ((x) - SA1111_VBASE + SA1111_BASE)
-
-#ifndef __ASSEMBLY__
-#define _SA1111(x) ((x) + sa1111->resource.start)
-#endif
-
-/*
- * 26 bits of the SA-1110 address bus are available to the SA-1111.
- * Use these when feeding target addresses to the DMA engines.
- */
-
-#define SA1111_ADDR_WIDTH (26)
-#define SA1111_ADDR_MASK ((1<<SA1111_ADDR_WIDTH)-1)
-#define SA1111_DMA_ADDR(x) ((x)&SA1111_ADDR_MASK)
-
-/*
* Don't ask the (SAC) DMA engines to move less than this amount.
*/
--
2.7.4
next prev parent reply other threads:[~2017-11-27 18:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 18:38 [PATCH 0/6] StrongARM SA1111 Companion cleanups Russell King - ARM Linux
2017-11-27 18:38 ` [PATCH 1/6] ARM: sa1111: remove legacy shutdown method Russell King
2017-11-27 18:38 ` [PATCH 2/6] ARM: sa1111: remove legacy suspend/resume methods Russell King
2017-11-27 19:15 ` Rafael J. Wysocki
2017-11-27 18:38 ` [PATCH 3/6] ARM: sa1111: remove special sa1111 mmio accessors Russell King
2017-11-27 18:38 ` Russell King [this message]
2017-11-27 18:38 ` [PATCH 5/6] ARM: sa1111: use an irqdomain for SA1111 interrupts Russell King
2017-11-27 18:39 ` [PATCH 6/6] ARM: sa1111: map interrupt numbers through irqdomain Russell King
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=E1eJOIt-0006of-IA@rmk-PC.armlinux.org.uk \
--to=rmk+kernel@armlinux.org.uk \
--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).