diff options
Diffstat (limited to 'arch/arm/mach-w90x900/include')
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/entry-macro.S | 34 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/hardware.h | 24 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/io.h | 30 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/irqs.h | 45 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/map.h | 76 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/memory.h | 23 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/regs-irq.h | 51 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/regs-serial.h | 59 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/regs-timer.h | 42 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/system.h | 28 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/timex.h | 25 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/uncompress.h | 40 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/vmalloc.h | 23 |
13 files changed, 500 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/include/mach/entry-macro.S b/arch/arm/mach-w90x900/include/mach/entry-macro.S new file mode 100644 index 000000000000..d39aca5be9ee --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/entry-macro.S | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/entry-macro.S | ||
3 | * | ||
4 | * Low-level IRQ helper macros for W90P910-based platforms | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #include <mach/hardware.h> | ||
13 | #include <mach/regs-irq.h> | ||
14 | |||
15 | .macro get_irqnr_preamble, base, tmp | ||
16 | .endm | ||
17 | |||
18 | .macro arch_ret_to_user, tmp1, tmp2 | ||
19 | .endm | ||
20 | |||
21 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
22 | |||
23 | mov \base, #AIC_BA | ||
24 | |||
25 | ldr \irqnr, [ \base, #AIC_IPER] | ||
26 | ldr \irqnr, [ \base, #AIC_ISNR] | ||
27 | cmp \irqnr, #0 | ||
28 | |||
29 | .endm | ||
30 | |||
31 | /* currently don't need an disable_fiq macro */ | ||
32 | |||
33 | .macro disable_fiq | ||
34 | .endm | ||
diff --git a/arch/arm/mach-w90x900/include/mach/hardware.h b/arch/arm/mach-w90x900/include/mach/hardware.h new file mode 100644 index 000000000000..fe3c6265a466 --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/hardware.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/hardware.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/hardware.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_HARDWARE_H | ||
19 | #define __ASM_ARCH_HARDWARE_H | ||
20 | |||
21 | #include <asm/sizes.h> | ||
22 | #include <mach/map.h> | ||
23 | |||
24 | #endif /* __ASM_ARCH_HARDWARE_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/io.h b/arch/arm/mach-w90x900/include/mach/io.h new file mode 100644 index 000000000000..d96ab99df05b --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/io.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/io.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/io.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARM_ARCH_IO_H | ||
19 | #define __ASM_ARM_ARCH_IO_H | ||
20 | |||
21 | #define IO_SPACE_LIMIT 0xffffffff | ||
22 | |||
23 | /* | ||
24 | * 1:1 mapping for ioremapped regions. | ||
25 | */ | ||
26 | |||
27 | #define __mem_pci(a) (a) | ||
28 | #define __io(a) __typesafe_io(a) | ||
29 | |||
30 | #endif | ||
diff --git a/arch/arm/mach-w90x900/include/mach/irqs.h b/arch/arm/mach-w90x900/include/mach/irqs.h new file mode 100644 index 000000000000..1c583f9cbcde --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/irqs.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/irqs.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/irqs.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_IRQS_H | ||
19 | #define __ASM_ARCH_IRQS_H | ||
20 | |||
21 | /* | ||
22 | * we keep the first set of CPU IRQs out of the range of | ||
23 | * the ISA space, so that the PC104 has them to itself | ||
24 | * and we don't end up having to do horrible things to the | ||
25 | * standard ISA drivers.... | ||
26 | * | ||
27 | */ | ||
28 | |||
29 | #define W90X900_IRQ(x) (x) | ||
30 | |||
31 | /* Main cpu interrupts */ | ||
32 | |||
33 | #define IRQ_WDT W90X900_IRQ(1) | ||
34 | #define IRQ_UART0 W90X900_IRQ(7) | ||
35 | #define IRQ_UART1 W90X900_IRQ(8) | ||
36 | #define IRQ_UART2 W90X900_IRQ(9) | ||
37 | #define IRQ_UART3 W90X900_IRQ(10) | ||
38 | #define IRQ_UART4 W90X900_IRQ(11) | ||
39 | #define IRQ_TIMER0 W90X900_IRQ(12) | ||
40 | #define IRQ_TIMER1 W90X900_IRQ(13) | ||
41 | #define IRQ_T_INT_GROUP W90X900_IRQ(14) | ||
42 | #define IRQ_ADC W90X900_IRQ(31) | ||
43 | #define NR_IRQS (IRQ_ADC+1) | ||
44 | |||
45 | #endif /* __ASM_ARCH_IRQ_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/map.h b/arch/arm/mach-w90x900/include/mach/map.h new file mode 100644 index 000000000000..79320ebe614b --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/map.h | |||
@@ -0,0 +1,76 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/map.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/map.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_MAP_H | ||
19 | #define __ASM_ARCH_MAP_H | ||
20 | |||
21 | #ifndef __ASSEMBLY__ | ||
22 | #define W90X900_ADDR(x) ((void __iomem *)(0xF0000000 + (x))) | ||
23 | #else | ||
24 | #define W90X900_ADDR(x) (0xF0000000 + (x)) | ||
25 | #endif | ||
26 | |||
27 | #define AHB_IO_BASE 0xB0000000 | ||
28 | #define APB_IO_BASE 0xB8000000 | ||
29 | #define CLOCKPW_BASE (APB_IO_BASE+0x200) | ||
30 | #define AIC_IO_BASE (APB_IO_BASE+0x2000) | ||
31 | #define TIMER_IO_BASE (APB_IO_BASE+0x1000) | ||
32 | |||
33 | /* | ||
34 | * interrupt controller is the first thing we put in, to make | ||
35 | * the assembly code for the irq detection easier | ||
36 | */ | ||
37 | |||
38 | #define W90X900_VA_IRQ W90X900_ADDR(0x00000000) | ||
39 | #define W90X900_PA_IRQ (0xB8002000) | ||
40 | #define W90X900_SZ_IRQ SZ_4K | ||
41 | |||
42 | #define W90X900_VA_GCR W90X900_ADDR(0x08002000) | ||
43 | #define W90X900_PA_GCR (0xB0000000) | ||
44 | #define W90X900_SZ_GCR SZ_4K | ||
45 | |||
46 | /* Clock and Power management */ | ||
47 | |||
48 | #define W90X900_VA_CLKPWR (W90X900_VA_GCR+0x200) | ||
49 | #define W90X900_PA_CLKPWR (0xB0000200) | ||
50 | #define W90X900_SZ_CLKPWR SZ_4K | ||
51 | |||
52 | /* EBI management */ | ||
53 | |||
54 | #define W90X900_VA_EBI W90X900_ADDR(0x00001000) | ||
55 | #define W90X900_PA_EBI (0xB0001000) | ||
56 | #define W90X900_SZ_EBI SZ_4K | ||
57 | |||
58 | /* UARTs */ | ||
59 | |||
60 | #define W90X900_VA_UART W90X900_ADDR(0x08000000) | ||
61 | #define W90X900_PA_UART (0xB8000000) | ||
62 | #define W90X900_SZ_UART SZ_4K | ||
63 | |||
64 | /* Timers */ | ||
65 | |||
66 | #define W90X900_VA_TIMER W90X900_ADDR(0x08001000) | ||
67 | #define W90X900_PA_TIMER (0xB8001000) | ||
68 | #define W90X900_SZ_TIMER SZ_4K | ||
69 | |||
70 | /* GPIO ports */ | ||
71 | |||
72 | #define W90X900_VA_GPIO W90X900_ADDR(0x08003000) | ||
73 | #define W90X900_PA_GPIO (0xB8003000) | ||
74 | #define W90X900_SZ_GPIO SZ_4K | ||
75 | |||
76 | #endif /* __ASM_ARCH_MAP_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/memory.h b/arch/arm/mach-w90x900/include/mach/memory.h new file mode 100644 index 000000000000..971b80702c27 --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/memory.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/memory.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/memory.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_MEMORY_H | ||
19 | #define __ASM_ARCH_MEMORY_H | ||
20 | |||
21 | #define PHYS_OFFSET UL(0x00000000) | ||
22 | |||
23 | #endif | ||
diff --git a/arch/arm/mach-w90x900/include/mach/regs-irq.h b/arch/arm/mach-w90x900/include/mach/regs-irq.h new file mode 100644 index 000000000000..8a3185fbc9cf --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/regs-irq.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/regs-irq.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/regs-irq.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef ___ASM_ARCH_REGS_IRQ_H | ||
19 | #define ___ASM_ARCH_REGS_IRQ_H | ||
20 | |||
21 | /* Advance Interrupt Controller (AIC) Registers */ | ||
22 | |||
23 | #define AIC_BA W90X900_VA_IRQ | ||
24 | |||
25 | #define REG_AIC_IRQSC (AIC_BA+0x80) | ||
26 | #define REG_AIC_GEN (AIC_BA+0x84) | ||
27 | #define REG_AIC_GASR (AIC_BA+0x88) | ||
28 | #define REG_AIC_GSCR (AIC_BA+0x8C) | ||
29 | #define REG_AIC_IRSR (AIC_BA+0x100) | ||
30 | #define REG_AIC_IASR (AIC_BA+0x104) | ||
31 | #define REG_AIC_ISR (AIC_BA+0x108) | ||
32 | #define REG_AIC_IPER (AIC_BA+0x10C) | ||
33 | #define REG_AIC_ISNR (AIC_BA+0x110) | ||
34 | #define REG_AIC_IMR (AIC_BA+0x114) | ||
35 | #define REG_AIC_OISR (AIC_BA+0x118) | ||
36 | #define REG_AIC_MECR (AIC_BA+0x120) | ||
37 | #define REG_AIC_MDCR (AIC_BA+0x124) | ||
38 | #define REG_AIC_SSCR (AIC_BA+0x128) | ||
39 | #define REG_AIC_SCCR (AIC_BA+0x12C) | ||
40 | #define REG_AIC_EOSCR (AIC_BA+0x130) | ||
41 | #define AIC_IPER (0x10C) | ||
42 | #define AIC_ISNR (0x110) | ||
43 | |||
44 | /*16-18 bits of REG_AIC_GEN define irq(2-4) group*/ | ||
45 | |||
46 | #define TIMER2_IRQ (1 << 16) | ||
47 | #define TIMER3_IRQ (1 << 17) | ||
48 | #define TIMER4_IRQ (1 << 18) | ||
49 | #define TIME_GROUP_IRQ (TIMER2_IRQ|TIMER3_IRQ|TIMER4_IRQ) | ||
50 | |||
51 | #endif /* ___ASM_ARCH_REGS_IRQ_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/regs-serial.h b/arch/arm/mach-w90x900/include/mach/regs-serial.h new file mode 100644 index 000000000000..f08fa0d75e11 --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/regs-serial.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/regs-serial.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/regs-serial.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARM_REGS_SERIAL_H | ||
19 | #define __ASM_ARM_REGS_SERIAL_H | ||
20 | |||
21 | #define UART0_BA W90X900_VA_UART | ||
22 | #define UART1_BA (W90X900_VA_UART+0x100) | ||
23 | #define UART2_BA (W90X900_VA_UART+0x200) | ||
24 | #define UART3_BA (W90X900_VA_UART+0x300) | ||
25 | #define UART4_BA (W90X900_VA_UART+0x400) | ||
26 | |||
27 | #define UART0_PA W90X900_PA_UART | ||
28 | #define UART1_PA (W90X900_PA_UART+0x100) | ||
29 | #define UART2_PA (W90X900_PA_UART+0x200) | ||
30 | #define UART3_PA (W90X900_PA_UART+0x300) | ||
31 | #define UART4_PA (W90X900_PA_UART+0x400) | ||
32 | |||
33 | #ifndef __ASSEMBLY__ | ||
34 | |||
35 | struct w90x900_uart_clksrc { | ||
36 | const char *name; | ||
37 | unsigned int divisor; | ||
38 | unsigned int min_baud; | ||
39 | unsigned int max_baud; | ||
40 | }; | ||
41 | |||
42 | struct w90x900_uartcfg { | ||
43 | unsigned char hwport; | ||
44 | unsigned char unused; | ||
45 | unsigned short flags; | ||
46 | unsigned long uart_flags; | ||
47 | |||
48 | unsigned long ucon; | ||
49 | unsigned long ulcon; | ||
50 | unsigned long ufcon; | ||
51 | |||
52 | struct w90x900_uart_clksrc *clocks; | ||
53 | unsigned int clocks_size; | ||
54 | }; | ||
55 | |||
56 | #endif /* __ASSEMBLY__ */ | ||
57 | |||
58 | #endif /* __ASM_ARM_REGS_SERIAL_H */ | ||
59 | |||
diff --git a/arch/arm/mach-w90x900/include/mach/regs-timer.h b/arch/arm/mach-w90x900/include/mach/regs-timer.h new file mode 100644 index 000000000000..8f390620c0e4 --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/regs-timer.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/regs-timer.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/regs-timer.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_REGS_TIMER_H | ||
19 | #define __ASM_ARCH_REGS_TIMER_H | ||
20 | |||
21 | /* Timer Registers */ | ||
22 | |||
23 | #define TMR_BA W90X900_VA_TIMER | ||
24 | #define REG_TCSR0 (TMR_BA+0x00) | ||
25 | #define REG_TCSR1 (TMR_BA+0x04) | ||
26 | #define REG_TICR0 (TMR_BA+0x08) | ||
27 | #define REG_TICR1 (TMR_BA+0x0C) | ||
28 | #define REG_TDR0 (TMR_BA+0x10) | ||
29 | #define REG_TDR1 (TMR_BA+0x14) | ||
30 | #define REG_TISR (TMR_BA+0x18) | ||
31 | #define REG_WTCR (TMR_BA+0x1C) | ||
32 | #define REG_TCSR2 (TMR_BA+0x20) | ||
33 | #define REG_TCSR3 (TMR_BA+0x24) | ||
34 | #define REG_TICR2 (TMR_BA+0x28) | ||
35 | #define REG_TICR3 (TMR_BA+0x2C) | ||
36 | #define REG_TDR2 (TMR_BA+0x30) | ||
37 | #define REG_TDR3 (TMR_BA+0x34) | ||
38 | #define REG_TCSR4 (TMR_BA+0x40) | ||
39 | #define REG_TICR4 (TMR_BA+0x48) | ||
40 | #define REG_TDR4 (TMR_BA+0x50) | ||
41 | |||
42 | #endif /* __ASM_ARCH_REGS_TIMER_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/system.h b/arch/arm/mach-w90x900/include/mach/system.h new file mode 100644 index 000000000000..93753f922618 --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/system.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/system.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/system.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #include <asm/proc-fns.h> | ||
19 | |||
20 | static void arch_idle(void) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | static void arch_reset(char mode) | ||
25 | { | ||
26 | cpu_reset(0); | ||
27 | } | ||
28 | |||
diff --git a/arch/arm/mach-w90x900/include/mach/timex.h b/arch/arm/mach-w90x900/include/mach/timex.h new file mode 100644 index 000000000000..164dce0b64db --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/timex.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/timex.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/timex.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_TIMEX_H | ||
19 | #define __ASM_ARCH_TIMEX_H | ||
20 | |||
21 | /* CLOCK_TICK_RATE Now, I don't use it. */ | ||
22 | |||
23 | #define CLOCK_TICK_RATE 15000000 | ||
24 | |||
25 | #endif /* __ASM_ARCH_TIMEX_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/uncompress.h b/arch/arm/mach-w90x900/include/mach/uncompress.h new file mode 100644 index 000000000000..050d9fe5ae1b --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/uncompress.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/uncompress.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/uncompress.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_UNCOMPRESS_H | ||
19 | #define __ASM_ARCH_UNCOMPRESS_H | ||
20 | |||
21 | /* Defines for UART registers */ | ||
22 | |||
23 | #include <mach/regs-serial.h> | ||
24 | #include <mach/map.h> | ||
25 | |||
26 | #define arch_decomp_wdog() | ||
27 | |||
28 | static void putc(int ch) | ||
29 | { | ||
30 | } | ||
31 | |||
32 | static inline void flush(void) | ||
33 | { | ||
34 | } | ||
35 | |||
36 | static void arch_decomp_setup(void) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | #endif/* __ASM_W90X900_UNCOMPRESS_H */ | ||
diff --git a/arch/arm/mach-w90x900/include/mach/vmalloc.h b/arch/arm/mach-w90x900/include/mach/vmalloc.h new file mode 100644 index 000000000000..2f9dfb928533 --- /dev/null +++ b/arch/arm/mach-w90x900/include/mach/vmalloc.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/include/mach/vmalloc.h | ||
3 | * | ||
4 | * Copyright (c) 2008 Nuvoton technology corporation | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Wan ZongShun <mcuos.com@gmail.com> | ||
8 | * | ||
9 | * Based on arch/arm/mach-s3c2410/include/mach/vmalloc.h | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_VMALLOC_H | ||
19 | #define __ASM_ARCH_VMALLOC_H | ||
20 | |||
21 | #define VMALLOC_END (0xE0000000) | ||
22 | |||
23 | #endif /* __ASM_ARCH_VMALLOC_H */ | ||