diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:06:43 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 16:46:10 -0500 |
commit | a503059c14215ac4325e25d9061cad992a373e17 (patch) | |
tree | a6e964542d61425603240c203a6c9774ddbfd8cd /arch/arm/plat-s3c24xx | |
parent | e425382ed90d221ef9031a1b2d97d9bfedcf90c3 (diff) |
[ARM] S3C24XX: Move headers from plat-s3c24xx to plat-s3c
Move clock.h, cpu.h and devs.h to plat-s3c for use
with the s3c64xx support.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/include/plat/clock.h | 73 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/include/plat/cpu.h | 69 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/include/plat/devs.h | 49 |
3 files changed, 0 insertions, 191 deletions
diff --git a/arch/arm/plat-s3c24xx/include/plat/clock.h b/arch/arm/plat-s3c24xx/include/plat/clock.h deleted file mode 100644 index ba174aab76f2..000000000000 --- a/arch/arm/plat-s3c24xx/include/plat/clock.h +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | /* linux/include/asm-arm/plat-s3c24xx/clock.h | ||
2 | * linux/arch/arm/mach-s3c2410/clock.h | ||
3 | * | ||
4 | * Copyright (c) 2004-2005 Simtec Electronics | ||
5 | * http://www.simtec.co.uk/products/SWLINUX/ | ||
6 | * Written by Ben Dooks, <ben@simtec.co.uk> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/spinlock.h> | ||
14 | |||
15 | struct clk { | ||
16 | struct list_head list; | ||
17 | struct module *owner; | ||
18 | struct clk *parent; | ||
19 | const char *name; | ||
20 | int id; | ||
21 | int usage; | ||
22 | unsigned long rate; | ||
23 | unsigned long ctrlbit; | ||
24 | |||
25 | int (*enable)(struct clk *, int enable); | ||
26 | int (*set_rate)(struct clk *c, unsigned long rate); | ||
27 | unsigned long (*get_rate)(struct clk *c); | ||
28 | unsigned long (*round_rate)(struct clk *c, unsigned long rate); | ||
29 | int (*set_parent)(struct clk *c, struct clk *parent); | ||
30 | }; | ||
31 | |||
32 | /* other clocks which may be registered by board support */ | ||
33 | |||
34 | extern struct clk s3c24xx_dclk0; | ||
35 | extern struct clk s3c24xx_dclk1; | ||
36 | extern struct clk s3c24xx_clkout0; | ||
37 | extern struct clk s3c24xx_clkout1; | ||
38 | extern struct clk s3c24xx_uclk; | ||
39 | |||
40 | extern struct clk clk_usb_bus; | ||
41 | |||
42 | /* core clock support */ | ||
43 | |||
44 | extern struct clk clk_f; | ||
45 | extern struct clk clk_h; | ||
46 | extern struct clk clk_p; | ||
47 | extern struct clk clk_mpll; | ||
48 | extern struct clk clk_upll; | ||
49 | extern struct clk clk_xtal; | ||
50 | |||
51 | /* exports for arch/arm/mach-s3c2410 | ||
52 | * | ||
53 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 | ||
54 | */ | ||
55 | |||
56 | extern spinlock_t clocks_lock; | ||
57 | |||
58 | extern int s3c2410_clkcon_enable(struct clk *clk, int enable); | ||
59 | |||
60 | extern int s3c24xx_register_clock(struct clk *clk); | ||
61 | extern int s3c24xx_register_clocks(struct clk **clk, int nr_clks); | ||
62 | |||
63 | extern int s3c24xx_register_baseclocks(unsigned long xtal); | ||
64 | |||
65 | extern void s3c24xx_setup_clocks(unsigned long fclk, | ||
66 | unsigned long hclk, | ||
67 | unsigned long pclk); | ||
68 | |||
69 | extern void s3c2410_setup_clocks(void); | ||
70 | extern void s3c2412_setup_clocks(void); | ||
71 | extern void s3c244x_setup_clocks(void); | ||
72 | extern void s3c2443_setup_clocks(void); | ||
73 | |||
diff --git a/arch/arm/plat-s3c24xx/include/plat/cpu.h b/arch/arm/plat-s3c24xx/include/plat/cpu.h deleted file mode 100644 index bd0a02963b46..000000000000 --- a/arch/arm/plat-s3c24xx/include/plat/cpu.h +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | /* linux/include/asm-arm/plat-s3c24xx/cpu.h | ||
2 | * | ||
3 | * Copyright (c) 2004-2005 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for S3C24XX CPU support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | /* todo - fix when rmk changes iodescs to use `void __iomem *` */ | ||
14 | |||
15 | #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE } | ||
16 | |||
17 | #ifndef MHZ | ||
18 | #define MHZ (1000*1000) | ||
19 | #endif | ||
20 | |||
21 | #define print_mhz(m) ((m) / MHZ), ((m / 1000) % 1000) | ||
22 | |||
23 | /* forward declaration */ | ||
24 | struct s3c24xx_uart_resources; | ||
25 | struct platform_device; | ||
26 | struct s3c2410_uartcfg; | ||
27 | struct map_desc; | ||
28 | |||
29 | /* per-cpu initialisation function table. */ | ||
30 | |||
31 | struct cpu_table { | ||
32 | unsigned long idcode; | ||
33 | unsigned long idmask; | ||
34 | void (*map_io)(void); | ||
35 | void (*init_uarts)(struct s3c2410_uartcfg *cfg, int no); | ||
36 | void (*init_clocks)(int xtal); | ||
37 | int (*init)(void); | ||
38 | const char *name; | ||
39 | }; | ||
40 | |||
41 | extern void s3c_init_cpu(unsigned long idcode, | ||
42 | struct cpu_table *cpus, unsigned int cputab_size); | ||
43 | |||
44 | /* core initialisation functions */ | ||
45 | |||
46 | extern void s3c24xx_init_irq(void); | ||
47 | |||
48 | extern void s3c24xx_init_io(struct map_desc *mach_desc, int size); | ||
49 | |||
50 | extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
51 | |||
52 | extern void s3c24xx_init_clocks(int xtal); | ||
53 | |||
54 | extern void s3c24xx_init_uartdevs(char *name, | ||
55 | struct s3c24xx_uart_resources *res, | ||
56 | struct s3c2410_uartcfg *cfg, int no); | ||
57 | |||
58 | /* timer for 2410/2440 */ | ||
59 | |||
60 | struct sys_timer; | ||
61 | extern struct sys_timer s3c24xx_timer; | ||
62 | |||
63 | /* system device classes */ | ||
64 | |||
65 | extern struct sysdev_class s3c2410_sysclass; | ||
66 | extern struct sysdev_class s3c2412_sysclass; | ||
67 | extern struct sysdev_class s3c2440_sysclass; | ||
68 | extern struct sysdev_class s3c2442_sysclass; | ||
69 | extern struct sysdev_class s3c2443_sysclass; | ||
diff --git a/arch/arm/plat-s3c24xx/include/plat/devs.h b/arch/arm/plat-s3c24xx/include/plat/devs.h deleted file mode 100644 index badaac9d64a8..000000000000 --- a/arch/arm/plat-s3c24xx/include/plat/devs.h +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* linux/include/asm-arm/plat-s3c24xx/devs.h | ||
2 | * | ||
3 | * Copyright (c) 2004 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for s3c2410 standard platform devices | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | #include <linux/platform_device.h> | ||
13 | |||
14 | struct s3c24xx_uart_resources { | ||
15 | struct resource *resources; | ||
16 | unsigned long nr_resources; | ||
17 | }; | ||
18 | |||
19 | extern struct s3c24xx_uart_resources s3c2410_uart_resources[]; | ||
20 | |||
21 | extern struct platform_device *s3c24xx_uart_devs[]; | ||
22 | extern struct platform_device *s3c24xx_uart_src[]; | ||
23 | |||
24 | extern struct platform_device s3c_device_timer[]; | ||
25 | |||
26 | extern struct platform_device s3c_device_usb; | ||
27 | extern struct platform_device s3c_device_lcd; | ||
28 | extern struct platform_device s3c_device_wdt; | ||
29 | extern struct platform_device s3c_device_i2c; | ||
30 | extern struct platform_device s3c_device_iis; | ||
31 | extern struct platform_device s3c_device_rtc; | ||
32 | extern struct platform_device s3c_device_adc; | ||
33 | extern struct platform_device s3c_device_sdi; | ||
34 | extern struct platform_device s3c_device_hsmmc; | ||
35 | |||
36 | extern struct platform_device s3c_device_spi0; | ||
37 | extern struct platform_device s3c_device_spi1; | ||
38 | |||
39 | extern struct platform_device s3c_device_nand; | ||
40 | |||
41 | extern struct platform_device s3c_device_usbgadget; | ||
42 | |||
43 | /* s3c2440 specific devices */ | ||
44 | |||
45 | #ifdef CONFIG_CPU_S3C2440 | ||
46 | |||
47 | extern struct platform_device s3c_device_camif; | ||
48 | |||
49 | #endif | ||