Skip to content

Commit 4977e6a

Browse files
author
Russell King
committed
ARM: sa1111: remove some redundant definitions
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>
1 parent a5b549e commit 4977e6a

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎arch/arm/include/asm/hardware/sa1111.h‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,6 @@
1515

1616
#include <mach/bitfield.h>
1717

18-
/*
19-
* The SA1111 is always located at virtual 0xf4000000, and is always
20-
* "native" endian.
21-
*/
22-
23-
#define SA1111_VBASE 0xf4000000
24-
25-
/* Don't use these! */
26-
#define SA1111_p2v( x ) ((x) - SA1111_BASE + SA1111_VBASE)
27-
#define SA1111_v2p( x ) ((x) - SA1111_VBASE + SA1111_BASE)
28-
29-
#ifndef __ASSEMBLY__
30-
#define _SA1111(x) ((x) + sa1111->resource.start)
31-
#endif
32-
33-
/*
34-
* 26 bits of the SA-1110 address bus are available to the SA-1111.
35-
* Use these when feeding target addresses to the DMA engines.
36-
*/
37-
38-
#define SA1111_ADDR_WIDTH (26)
39-
#define SA1111_ADDR_MASK ((1<<SA1111_ADDR_WIDTH)-1)
40-
#define SA1111_DMA_ADDR(x) ((x)&SA1111_ADDR_MASK)
41-
4218
/*
4319
* Don't ask the (SAC) DMA engines to move less than this amount.
4420
*/

0 commit comments

Comments
 (0)