diff options
Diffstat (limited to 'arch/arm/mach-w90x900/cpu.h')
-rw-r--r-- | arch/arm/mach-w90x900/cpu.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/arch/arm/mach-w90x900/cpu.h b/arch/arm/mach-w90x900/cpu.h index 57b5dbabeb41..4d58ba164e25 100644 --- a/arch/arm/mach-w90x900/cpu.h +++ b/arch/arm/mach-w90x900/cpu.h | |||
@@ -6,7 +6,7 @@ | |||
6 | * Copyright (c) 2008 Nuvoton technology corporation | 6 | * Copyright (c) 2008 Nuvoton technology corporation |
7 | * All rights reserved. | 7 | * All rights reserved. |
8 | * | 8 | * |
9 | * Header file for W90X900 CPU support | 9 | * Header file for NUC900 CPU support |
10 | * | 10 | * |
11 | * Wan ZongShun <mcuos.com@gmail.com> | 11 | * Wan ZongShun <mcuos.com@gmail.com> |
12 | * | 12 | * |
@@ -24,29 +24,7 @@ | |||
24 | .type = MT_DEVICE, \ | 24 | .type = MT_DEVICE, \ |
25 | } | 25 | } |
26 | 26 | ||
27 | /*Cpu identifier register*/ | 27 | #define NUC900_8250PORT(name) \ |
28 | |||
29 | #define W90X900PDID W90X900_VA_GCR | ||
30 | #define W90P910_CPUID 0x02900910 | ||
31 | #define W90P920_CPUID 0x02900920 | ||
32 | #define W90P950_CPUID 0x02900950 | ||
33 | #define W90N960_CPUID 0x02900960 | ||
34 | |||
35 | struct w90x900_uartcfg; | ||
36 | struct map_desc; | ||
37 | struct sys_timer; | ||
38 | |||
39 | /* core initialisation functions */ | ||
40 | |||
41 | extern void w90x900_init_irq(void); | ||
42 | extern void w90p910_init_io(struct map_desc *mach_desc, int size); | ||
43 | extern void w90p910_init_uarts(struct w90x900_uartcfg *cfg, int no); | ||
44 | extern void w90p910_init_clocks(void); | ||
45 | extern void w90p910_map_io(struct map_desc *mach_desc, int size); | ||
46 | extern struct platform_device w90p910_serial_device; | ||
47 | extern struct sys_timer w90x900_timer; | ||
48 | |||
49 | #define W90X900_8250PORT(name) \ | ||
50 | { \ | 28 | { \ |
51 | .membase = name##_BA, \ | 29 | .membase = name##_BA, \ |
52 | .mapbase = name##_PA, \ | 30 | .mapbase = name##_PA, \ |
@@ -56,3 +34,26 @@ extern struct sys_timer w90x900_timer; | |||
56 | .iotype = UPIO_MEM, \ | 34 | .iotype = UPIO_MEM, \ |
57 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, \ | 35 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, \ |
58 | } | 36 | } |
37 | |||
38 | /*Cpu identifier register*/ | ||
39 | |||
40 | #define NUC900PDID W90X900_VA_GCR | ||
41 | #define NUC910_CPUID 0x02900910 | ||
42 | #define NUC920_CPUID 0x02900920 | ||
43 | #define NUC950_CPUID 0x02900950 | ||
44 | #define NUC960_CPUID 0x02900960 | ||
45 | |||
46 | /* extern file from cpu.c */ | ||
47 | |||
48 | extern void nuc900_clock_source(struct device *dev, unsigned char *src); | ||
49 | extern void nuc900_init_clocks(void); | ||
50 | extern void nuc900_map_io(struct map_desc *mach_desc, int mach_size); | ||
51 | extern void nuc900_board_init(struct platform_device **device, int size); | ||
52 | |||
53 | /* for either public between 910 and 920, or between 920 and 950 */ | ||
54 | |||
55 | extern struct platform_device nuc900_serial_device; | ||
56 | extern struct platform_device nuc900_device_fmi; | ||
57 | extern struct platform_device nuc900_device_kpi; | ||
58 | extern struct platform_device nuc900_device_rtc; | ||
59 | extern struct platform_device nuc900_device_ts; | ||