diff options
Diffstat (limited to 'arch/arm/mach-shark')
-rw-r--r-- | arch/arm/mach-shark/include/mach/debug-macro.S | 3 | ||||
-rw-r--r-- | arch/arm/mach-shark/include/mach/memory.h | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-shark/include/mach/debug-macro.S b/arch/arm/mach-shark/include/mach/debug-macro.S index 50f071c5bf4d..5ea24d4d1ba6 100644 --- a/arch/arm/mach-shark/include/mach/debug-macro.S +++ b/arch/arm/mach-shark/include/mach/debug-macro.S | |||
@@ -20,6 +20,9 @@ | |||
20 | strb \rd, [\rx] | 20 | strb \rd, [\rx] |
21 | .endm | 21 | .endm |
22 | 22 | ||
23 | .macro waituart,rd,rx | ||
24 | .endm | ||
25 | |||
23 | .macro busyuart,rd,rx | 26 | .macro busyuart,rd,rx |
24 | mov \rd, #0 | 27 | mov \rd, #0 |
25 | 1001: add \rd, \rd, #1 | 28 | 1001: add \rd, \rd, #1 |
diff --git a/arch/arm/mach-shark/include/mach/memory.h b/arch/arm/mach-shark/include/mach/memory.h index 3053e5b7f168..d9c4812f1c31 100644 --- a/arch/arm/mach-shark/include/mach/memory.h +++ b/arch/arm/mach-shark/include/mach/memory.h | |||
@@ -19,9 +19,8 @@ | |||
19 | 19 | ||
20 | #ifndef __ASSEMBLY__ | 20 | #ifndef __ASSEMBLY__ |
21 | 21 | ||
22 | static inline void __arch_adjust_zones(int node, unsigned long *zone_size, unsigned long *zhole_size) | 22 | static inline void __arch_adjust_zones(unsigned long *zone_size, unsigned long *zhole_size) |
23 | { | 23 | { |
24 | if (node != 0) return; | ||
25 | /* Only the first 4 MB (=1024 Pages) are usable for DMA */ | 24 | /* Only the first 4 MB (=1024 Pages) are usable for DMA */ |
26 | /* See dev / -> .properties in OpenFirmware. */ | 25 | /* See dev / -> .properties in OpenFirmware. */ |
27 | zone_size[1] = zone_size[0] - 1024; | 26 | zone_size[1] = zone_size[0] - 1024; |
@@ -30,8 +29,8 @@ static inline void __arch_adjust_zones(int node, unsigned long *zone_size, unsig | |||
30 | zhole_size[0] = 0; | 29 | zhole_size[0] = 0; |
31 | } | 30 | } |
32 | 31 | ||
33 | #define arch_adjust_zones(node, size, holes) \ | 32 | #define arch_adjust_zones(size, holes) \ |
34 | __arch_adjust_zones(node, size, holes) | 33 | __arch_adjust_zones(size, holes) |
35 | 34 | ||
36 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_4M - 1) | 35 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_4M - 1) |
37 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_4M) | 36 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_4M) |