diff options
Diffstat (limited to 'arch/arm/mach-shmobile/include/mach')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/clkdev.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/common.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/dma.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/entry-macro.S | 39 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/gpio.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/hardware.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/io.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/irqs.h | 10 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/memory.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/system.h | 14 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/timex.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/uncompress.h | 21 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/vmalloc.h | 6 |
13 files changed, 139 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/clkdev.h b/arch/arm/mach-shmobile/include/mach/clkdev.h new file mode 100644 index 00000000000..36d0163a857 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/clkdev.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_CLKDEV_H | ||
2 | #define __ASM_MACH_CLKDEV_H | ||
3 | |||
4 | int __clk_get(struct clk *clk); | ||
5 | void __clk_put(struct clk *clk); | ||
6 | |||
7 | #endif /* __ASM_MACH_CLKDEV_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h new file mode 100644 index 00000000000..d771afa79eb --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/common.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef __ARCH_MACH_COMMON_H | ||
2 | #define __ARCH_MACH_COMMON_H | ||
3 | |||
4 | extern struct sys_timer shmobile_timer; | ||
5 | |||
6 | extern void sh7367_init_irq(void); | ||
7 | extern void sh7367_add_early_devices(void); | ||
8 | extern void sh7367_add_standard_devices(void); | ||
9 | extern void sh7367_clock_init(void); | ||
10 | |||
11 | #endif /* __ARCH_MACH_COMMON_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/dma.h b/arch/arm/mach-shmobile/include/mach/dma.h new file mode 100644 index 00000000000..40a8c178f10 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/dma.h | |||
@@ -0,0 +1 @@ | |||
/* empty */ | |||
diff --git a/arch/arm/mach-shmobile/include/mach/entry-macro.S b/arch/arm/mach-shmobile/include/mach/entry-macro.S new file mode 100644 index 00000000000..796b304050c --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/entry-macro.S | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 Renesas Solutions Corp. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; version 2 of the License. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
16 | */ | ||
17 | #include <mach/hardware.h> | ||
18 | #include <mach/irqs.h> | ||
19 | |||
20 | .macro disable_fiq | ||
21 | .endm | ||
22 | |||
23 | .macro get_irqnr_preamble, base, tmp | ||
24 | .endm | ||
25 | |||
26 | .macro arch_ret_to_user, tmp1, tmp2 | ||
27 | .endm | ||
28 | |||
29 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
30 | ldr \base, =INTFLGA | ||
31 | ldr \irqnr, [\base] | ||
32 | cmp \irqnr, #0 | ||
33 | beq 1000f | ||
34 | /* intevt to irq number */ | ||
35 | lsr \irqnr, \irqnr, #0x5 | ||
36 | subs \irqnr, \irqnr, #16 | ||
37 | |||
38 | 1000: | ||
39 | .endm | ||
diff --git a/arch/arm/mach-shmobile/include/mach/gpio.h b/arch/arm/mach-shmobile/include/mach/gpio.h new file mode 100644 index 00000000000..40a8c178f10 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/gpio.h | |||
@@ -0,0 +1 @@ | |||
/* empty */ | |||
diff --git a/arch/arm/mach-shmobile/include/mach/hardware.h b/arch/arm/mach-shmobile/include/mach/hardware.h new file mode 100644 index 00000000000..3f0ef194603 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/hardware.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_HARDWARE_H | ||
2 | #define __ASM_MACH_HARDWARE_H | ||
3 | |||
4 | /* INTFLGA register - used by low level interrupt code in entry-macro.S */ | ||
5 | #define INTFLGA 0xe6980018 | ||
6 | |||
7 | #endif /* __ASM_MACH_HARDWARE_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/io.h b/arch/arm/mach-shmobile/include/mach/io.h new file mode 100644 index 00000000000..7339fe46cb7 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/io.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef __ASM_MACH_IO_H | ||
2 | #define __ASM_MACH_IO_H | ||
3 | |||
4 | #define IO_SPACE_LIMIT 0xffffffff | ||
5 | |||
6 | #define __io(a) ((void __iomem *)(a)) | ||
7 | #define __mem_pci(a) (a) | ||
8 | |||
9 | #endif /* __ASM_MACH_IO_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/irqs.h b/arch/arm/mach-shmobile/include/mach/irqs.h new file mode 100644 index 00000000000..5179b72e1ee --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/irqs.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef __ASM_MACH_IRQS_H | ||
2 | #define __ASM_MACH_IRQS_H | ||
3 | |||
4 | #define NR_IRQS 512 | ||
5 | #define NR_IRQS_LEGACY 8 | ||
6 | |||
7 | #define evt2irq(evt) (((evt) >> 5) - 16) | ||
8 | #define irq2evt(irq) (((irq) + 16) << 5) | ||
9 | |||
10 | #endif /* __ASM_MACH_IRQS_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/memory.h b/arch/arm/mach-shmobile/include/mach/memory.h new file mode 100644 index 00000000000..e188183f4dc --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/memory.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_MEMORY_H | ||
2 | #define __ASM_MACH_MEMORY_H | ||
3 | |||
4 | #define PHYS_OFFSET UL(CONFIG_MEMORY_START) | ||
5 | #define MEM_SIZE UL(CONFIG_MEMORY_SIZE) | ||
6 | |||
7 | #endif /* __ASM_MACH_MEMORY_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/system.h b/arch/arm/mach-shmobile/include/mach/system.h new file mode 100644 index 00000000000..76a687eeaa2 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/system.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef __ASM_ARCH_SYSTEM_H | ||
2 | #define __ASM_ARCH_SYSTEM_H | ||
3 | |||
4 | static inline void arch_idle(void) | ||
5 | { | ||
6 | cpu_do_idle(); | ||
7 | } | ||
8 | |||
9 | static inline void arch_reset(char mode, const char *cmd) | ||
10 | { | ||
11 | cpu_reset(0); | ||
12 | } | ||
13 | |||
14 | #endif | ||
diff --git a/arch/arm/mach-shmobile/include/mach/timex.h b/arch/arm/mach-shmobile/include/mach/timex.h new file mode 100644 index 00000000000..ae0d8d825c2 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/timex.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ASM_MACH_TIMEX_H | ||
2 | #define __ASM_MACH_TIMEX_H | ||
3 | |||
4 | #define CLOCK_TICK_RATE 1193180 /* unused i8253 PIT value */ | ||
5 | |||
6 | #endif /* __ASM_MACH_TIMEX_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/uncompress.h b/arch/arm/mach-shmobile/include/mach/uncompress.h new file mode 100644 index 00000000000..0bd7556b138 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/uncompress.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef __ASM_MACH_UNCOMPRESS_H | ||
2 | #define __ASM_MACH_UNCOMPRESS_H | ||
3 | |||
4 | /* | ||
5 | * This does not append a newline | ||
6 | */ | ||
7 | static void putc(int c) | ||
8 | { | ||
9 | } | ||
10 | |||
11 | static inline void flush(void) | ||
12 | { | ||
13 | } | ||
14 | |||
15 | static void arch_decomp_setup(void) | ||
16 | { | ||
17 | } | ||
18 | |||
19 | #define arch_decomp_wdog() | ||
20 | |||
21 | #endif /* __ASM_MACH_UNCOMPRESS_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/vmalloc.h b/arch/arm/mach-shmobile/include/mach/vmalloc.h new file mode 100644 index 00000000000..fb3c4f1ab25 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/vmalloc.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ASM_MACH_VMALLOC_H | ||
2 | #define __ASM_MACH_VMALLOC_H | ||
3 | |||
4 | #define VMALLOC_END (PAGE_OFFSET + 0x24000000) | ||
5 | |||
6 | #endif /* __ASM_MACH_VMALLOC_H */ | ||