diff options
| author | Ben Dooks <ben-linux@fluff.org> | 2008-10-07 18:09:51 -0400 |
|---|---|---|
| committer | Ben Dooks <ben-linux@fluff.org> | 2008-10-07 18:09:51 -0400 |
| commit | d5120ae72a066b18f98e0c45ce73262f58030851 (patch) | |
| tree | 5e00e7d04a560f720bd4ebc8acba2ffcc8de7b7c /include/asm-arm | |
| parent | a2b7ba9ca471438c2bb0c3bdf0ff2ed7fdce3d2f (diff) | |
[ARM] S3C24XX: Additional include moves
Continue moving the include files into arch/arm
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'include/asm-arm')
| -rw-r--r-- | include/asm-arm/plat-s3c/map.h | 40 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c/regs-adc.h | 60 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c/uncompress.h | 155 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c24xx/clock.h | 64 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c24xx/common-smdk.h | 15 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c24xx/dma.h | 82 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c24xx/s3c2412.h | 29 |
7 files changed, 0 insertions, 445 deletions
diff --git a/include/asm-arm/plat-s3c/map.h b/include/asm-arm/plat-s3c/map.h deleted file mode 100644 index b84289d32a54..000000000000 --- a/include/asm-arm/plat-s3c/map.h +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | /* linux/include/asm-arm/plat-s3c/map.h | ||
| 2 | * | ||
| 3 | * Copyright 2003, 2007 Simtec Electronics | ||
| 4 | * http://armlinux.simtec.co.uk/ | ||
| 5 | * Ben Dooks <ben@simtec.co.uk> | ||
| 6 | * | ||
| 7 | * S3C - Memory map definitions (virtual addresses) | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License version 2 as | ||
| 11 | * published by the Free Software Foundation. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef __ASM_PLAT_MAP_H | ||
| 15 | #define __ASM_PLAT_MAP_H __FILE__ | ||
| 16 | |||
| 17 | /* Fit all our registers in at 0xF4000000 upwards, trying to use as | ||
| 18 | * little of the VA space as possible so vmalloc and friends have a | ||
| 19 | * better chance of getting memory. | ||
| 20 | * | ||
| 21 | * we try to ensure stuff like the IRQ registers are available for | ||
| 22 | * an single MOVS instruction (ie, only 8 bits of set data) | ||
| 23 | */ | ||
| 24 | |||
| 25 | #define S3C_ADDR_BASE (0xF4000000) | ||
| 26 | |||
| 27 | #ifndef __ASSEMBLY__ | ||
| 28 | #define S3C_ADDR(x) ((void __iomem __force *)S3C_ADDR_BASE + (x)) | ||
| 29 | #else | ||
| 30 | #define S3C_ADDR(x) (S3C_ADDR_BASE + (x)) | ||
| 31 | #endif | ||
| 32 | |||
| 33 | #define S3C_VA_IRQ S3C_ADDR(0x00000000) /* irq controller(s) */ | ||
| 34 | #define S3C_VA_SYS S3C_ADDR(0x00100000) /* system control */ | ||
| 35 | #define S3C_VA_MEM S3C_ADDR(0x00200000) /* system control */ | ||
| 36 | #define S3C_VA_TIMER S3C_ADDR(0x00300000) /* timer block */ | ||
| 37 | #define S3C_VA_WATCHDOG S3C_ADDR(0x00400000) /* watchdog */ | ||
| 38 | #define S3C_VA_UART S3C_ADDR(0x01000000) /* UART */ | ||
| 39 | |||
| 40 | #endif /* __ASM_PLAT_MAP_H */ | ||
diff --git a/include/asm-arm/plat-s3c/regs-adc.h b/include/asm-arm/plat-s3c/regs-adc.h deleted file mode 100644 index 4323cccc86cd..000000000000 --- a/include/asm-arm/plat-s3c/regs-adc.h +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | /* arch/arm/mach-s3c2410/include/mach/regs-adc.h | ||
| 2 | * | ||
| 3 | * Copyright (c) 2004 Shannon Holland <holland@loser.net> | ||
| 4 | * | ||
| 5 | * This program is free software; yosu can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * S3C2410 ADC registers | ||
| 10 | */ | ||
| 11 | |||
| 12 | #ifndef __ASM_ARCH_REGS_ADC_H | ||
| 13 | #define __ASM_ARCH_REGS_ADC_H "regs-adc.h" | ||
| 14 | |||
| 15 | #define S3C2410_ADCREG(x) (x) | ||
| 16 | |||
| 17 | #define S3C2410_ADCCON S3C2410_ADCREG(0x00) | ||
| 18 | #define S3C2410_ADCTSC S3C2410_ADCREG(0x04) | ||
| 19 | #define S3C2410_ADCDLY S3C2410_ADCREG(0x08) | ||
| 20 | #define S3C2410_ADCDAT0 S3C2410_ADCREG(0x0C) | ||
| 21 | #define S3C2410_ADCDAT1 S3C2410_ADCREG(0x10) | ||
| 22 | |||
| 23 | |||
| 24 | /* ADCCON Register Bits */ | ||
| 25 | #define S3C2410_ADCCON_ECFLG (1<<15) | ||
| 26 | #define S3C2410_ADCCON_PRSCEN (1<<14) | ||
| 27 | #define S3C2410_ADCCON_PRSCVL(x) (((x)&0xFF)<<6) | ||
| 28 | #define S3C2410_ADCCON_PRSCVLMASK (0xFF<<6) | ||
| 29 | #define S3C2410_ADCCON_SELMUX(x) (((x)&0x7)<<3) | ||
| 30 | #define S3C2410_ADCCON_MUXMASK (0x7<<3) | ||
| 31 | #define S3C2410_ADCCON_STDBM (1<<2) | ||
| 32 | #define S3C2410_ADCCON_READ_START (1<<1) | ||
| 33 | #define S3C2410_ADCCON_ENABLE_START (1<<0) | ||
| 34 | #define S3C2410_ADCCON_STARTMASK (0x3<<0) | ||
| 35 | |||
| 36 | |||
| 37 | /* ADCTSC Register Bits */ | ||
| 38 | #define S3C2410_ADCTSC_YM_SEN (1<<7) | ||
| 39 | #define S3C2410_ADCTSC_YP_SEN (1<<6) | ||
| 40 | #define S3C2410_ADCTSC_XM_SEN (1<<5) | ||
| 41 | #define S3C2410_ADCTSC_XP_SEN (1<<4) | ||
| 42 | #define S3C2410_ADCTSC_PULL_UP_DISABLE (1<<3) | ||
| 43 | #define S3C2410_ADCTSC_AUTO_PST (1<<2) | ||
| 44 | #define S3C2410_ADCTSC_XY_PST(x) (((x)&0x3)<<0) | ||
| 45 | |||
| 46 | /* ADCDAT0 Bits */ | ||
| 47 | #define S3C2410_ADCDAT0_UPDOWN (1<<15) | ||
| 48 | #define S3C2410_ADCDAT0_AUTO_PST (1<<14) | ||
| 49 | #define S3C2410_ADCDAT0_XY_PST (0x3<<12) | ||
| 50 | #define S3C2410_ADCDAT0_XPDATA_MASK (0x03FF) | ||
| 51 | |||
| 52 | /* ADCDAT1 Bits */ | ||
| 53 | #define S3C2410_ADCDAT1_UPDOWN (1<<15) | ||
| 54 | #define S3C2410_ADCDAT1_AUTO_PST (1<<14) | ||
| 55 | #define S3C2410_ADCDAT1_XY_PST (0x3<<12) | ||
| 56 | #define S3C2410_ADCDAT1_YPDATA_MASK (0x03FF) | ||
| 57 | |||
| 58 | #endif /* __ASM_ARCH_REGS_ADC_H */ | ||
| 59 | |||
| 60 | |||
diff --git a/include/asm-arm/plat-s3c/uncompress.h b/include/asm-arm/plat-s3c/uncompress.h deleted file mode 100644 index 4df006b9cc10..000000000000 --- a/include/asm-arm/plat-s3c/uncompress.h +++ /dev/null | |||
| @@ -1,155 +0,0 @@ | |||
| 1 | /* linux/include/asm-arm/plat-s3c/uncompress.h | ||
| 2 | * | ||
| 3 | * Copyright 2003, 2007 Simtec Electronics | ||
| 4 | * http://armlinux.simtec.co.uk/ | ||
| 5 | * Ben Dooks <ben@simtec.co.uk> | ||
| 6 | * | ||
| 7 | * S3C - uncompress code | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License version 2 as | ||
| 11 | * published by the Free Software Foundation. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef __ASM_PLAT_UNCOMPRESS_H | ||
| 15 | #define __ASM_PLAT_UNCOMPRESS_H | ||
| 16 | |||
| 17 | typedef unsigned int upf_t; /* cannot include linux/serial_core.h */ | ||
| 18 | |||
| 19 | /* uart setup */ | ||
| 20 | |||
| 21 | static unsigned int fifo_mask; | ||
| 22 | static unsigned int fifo_max; | ||
| 23 | |||
| 24 | /* forward declerations */ | ||
| 25 | |||
| 26 | static void arch_detect_cpu(void); | ||
| 27 | |||
| 28 | /* defines for UART registers */ | ||
| 29 | |||
| 30 | #include <plat/regs-serial.h> | ||
| 31 | #include <asm/plat-s3c/regs-watchdog.h> | ||
| 32 | |||
| 33 | /* working in physical space... */ | ||
| 34 | #undef S3C2410_WDOGREG | ||
| 35 | #define S3C2410_WDOGREG(x) ((S3C24XX_PA_WATCHDOG + (x))) | ||
| 36 | |||
| 37 | /* how many bytes we allow into the FIFO at a time in FIFO mode */ | ||
| 38 | #define FIFO_MAX (14) | ||
| 39 | |||
| 40 | #define uart_base S3C24XX_PA_UART + (0x4000*CONFIG_S3C_LOWLEVEL_UART_PORT) | ||
| 41 | |||
| 42 | static __inline__ void | ||
| 43 | uart_wr(unsigned int reg, unsigned int val) | ||
| 44 | { | ||
| 45 | volatile unsigned int *ptr; | ||
| 46 | |||
| 47 | ptr = (volatile unsigned int *)(reg + uart_base); | ||
| 48 | *ptr = val; | ||
| 49 | } | ||
| 50 | |||
| 51 | static __inline__ unsigned int | ||
| 52 | uart_rd(unsigned int reg) | ||
| 53 | { | ||
| 54 | volatile unsigned int *ptr; | ||
| 55 | |||
| 56 | ptr = (volatile unsigned int *)(reg + uart_base); | ||
| 57 | return *ptr; | ||
| 58 | } | ||
| 59 | |||
| 60 | /* we can deal with the case the UARTs are being run | ||
| 61 | * in FIFO mode, so that we don't hold up our execution | ||
| 62 | * waiting for tx to happen... | ||
| 63 | */ | ||
| 64 | |||
| 65 | static void putc(int ch) | ||
| 66 | { | ||
| 67 | if (uart_rd(S3C2410_UFCON) & S3C2410_UFCON_FIFOMODE) { | ||
| 68 | int level; | ||
| 69 | |||
| 70 | while (1) { | ||
| 71 | level = uart_rd(S3C2410_UFSTAT); | ||
| 72 | level &= fifo_mask; | ||
| 73 | |||
| 74 | if (level < fifo_max) | ||
| 75 | break; | ||
| 76 | } | ||
| 77 | |||
| 78 | } else { | ||
| 79 | /* not using fifos */ | ||
| 80 | |||
| 81 | while ((uart_rd(S3C2410_UTRSTAT) & S3C2410_UTRSTAT_TXE) != S3C2410_UTRSTAT_TXE) | ||
| 82 | barrier(); | ||
| 83 | } | ||
| 84 | |||
| 85 | /* write byte to transmission register */ | ||
| 86 | uart_wr(S3C2410_UTXH, ch); | ||
| 87 | } | ||
| 88 | |||
| 89 | static inline void flush(void) | ||
| 90 | { | ||
| 91 | } | ||
| 92 | |||
| 93 | #define __raw_writel(d,ad) do { *((volatile unsigned int *)(ad)) = (d); } while(0) | ||
| 94 | |||
| 95 | /* CONFIG_S3C_BOOT_WATCHDOG | ||
| 96 | * | ||
| 97 | * Simple boot-time watchdog setup, to reboot the system if there is | ||
| 98 | * any problem with the boot process | ||
| 99 | */ | ||
| 100 | |||
| 101 | #ifdef CONFIG_S3C_BOOT_WATCHDOG | ||
| 102 | |||
| 103 | #define WDOG_COUNT (0xff00) | ||
| 104 | |||
| 105 | static inline void arch_decomp_wdog(void) | ||
| 106 | { | ||
| 107 | __raw_writel(WDOG_COUNT, S3C2410_WTCNT); | ||
| 108 | } | ||
| 109 | |||
| 110 | static void arch_decomp_wdog_start(void) | ||
| 111 | { | ||
| 112 | __raw_writel(WDOG_COUNT, S3C2410_WTDAT); | ||
| 113 | __raw_writel(WDOG_COUNT, S3C2410_WTCNT); | ||
| 114 | __raw_writel(S3C2410_WTCON_ENABLE | S3C2410_WTCON_DIV128 | S3C2410_WTCON_RSTEN | S3C2410_WTCON_PRESCALE(0x80), S3C2410_WTCON); | ||
| 115 | } | ||
| 116 | |||
| 117 | #else | ||
| 118 | #define arch_decomp_wdog_start() | ||
| 119 | #define arch_decomp_wdog() | ||
| 120 | #endif | ||
| 121 | |||
| 122 | #ifdef CONFIG_S3C_BOOT_ERROR_RESET | ||
| 123 | |||
| 124 | static void arch_decomp_error(const char *x) | ||
| 125 | { | ||
| 126 | putstr("\n\n"); | ||
| 127 | putstr(x); | ||
| 128 | putstr("\n\n -- System resetting\n"); | ||
| 129 | |||
| 130 | __raw_writel(0x4000, S3C2410_WTDAT); | ||
| 131 | __raw_writel(0x4000, S3C2410_WTCNT); | ||
| 132 | __raw_writel(S3C2410_WTCON_ENABLE | S3C2410_WTCON_DIV128 | S3C2410_WTCON_RSTEN | S3C2410_WTCON_PRESCALE(0x40), S3C2410_WTCON); | ||
| 133 | |||
| 134 | while(1); | ||
| 135 | } | ||
| 136 | |||
| 137 | #define arch_error arch_decomp_error | ||
| 138 | #endif | ||
| 139 | |||
| 140 | static void error(char *err); | ||
| 141 | |||
| 142 | static void | ||
| 143 | arch_decomp_setup(void) | ||
| 144 | { | ||
| 145 | /* we may need to setup the uart(s) here if we are not running | ||
| 146 | * on an BAST... the BAST will have left the uarts configured | ||
| 147 | * after calling linux. | ||
| 148 | */ | ||
| 149 | |||
| 150 | arch_detect_cpu(); | ||
| 151 | arch_decomp_wdog_start(); | ||
| 152 | } | ||
| 153 | |||
| 154 | |||
| 155 | #endif /* __ASM_PLAT_UNCOMPRESS_H */ | ||
diff --git a/include/asm-arm/plat-s3c24xx/clock.h b/include/asm-arm/plat-s3c24xx/clock.h deleted file mode 100644 index 235b753cd877..000000000000 --- a/include/asm-arm/plat-s3c24xx/clock.h +++ /dev/null | |||
| @@ -1,64 +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 | struct clk { | ||
| 14 | struct list_head list; | ||
| 15 | struct module *owner; | ||
| 16 | struct clk *parent; | ||
| 17 | const char *name; | ||
| 18 | int id; | ||
| 19 | int usage; | ||
| 20 | unsigned long rate; | ||
| 21 | unsigned long ctrlbit; | ||
| 22 | |||
| 23 | int (*enable)(struct clk *, int enable); | ||
| 24 | int (*set_rate)(struct clk *c, unsigned long rate); | ||
| 25 | unsigned long (*get_rate)(struct clk *c); | ||
| 26 | unsigned long (*round_rate)(struct clk *c, unsigned long rate); | ||
| 27 | int (*set_parent)(struct clk *c, struct clk *parent); | ||
| 28 | }; | ||
| 29 | |||
| 30 | /* other clocks which may be registered by board support */ | ||
| 31 | |||
| 32 | extern struct clk s3c24xx_dclk0; | ||
| 33 | extern struct clk s3c24xx_dclk1; | ||
| 34 | extern struct clk s3c24xx_clkout0; | ||
| 35 | extern struct clk s3c24xx_clkout1; | ||
| 36 | extern struct clk s3c24xx_uclk; | ||
| 37 | |||
| 38 | extern struct clk clk_usb_bus; | ||
| 39 | |||
| 40 | /* core clock support */ | ||
| 41 | |||
| 42 | extern struct clk clk_f; | ||
| 43 | extern struct clk clk_h; | ||
| 44 | extern struct clk clk_p; | ||
| 45 | extern struct clk clk_mpll; | ||
| 46 | extern struct clk clk_upll; | ||
| 47 | extern struct clk clk_xtal; | ||
| 48 | |||
| 49 | /* exports for arch/arm/mach-s3c2410 | ||
| 50 | * | ||
| 51 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 | ||
| 52 | */ | ||
| 53 | |||
| 54 | extern struct mutex clocks_mutex; | ||
| 55 | |||
| 56 | extern int s3c2410_clkcon_enable(struct clk *clk, int enable); | ||
| 57 | |||
| 58 | extern int s3c24xx_register_clock(struct clk *clk); | ||
| 59 | extern int s3c24xx_register_clocks(struct clk **clk, int nr_clks); | ||
| 60 | |||
| 61 | extern int s3c24xx_setup_clocks(unsigned long xtal, | ||
| 62 | unsigned long fclk, | ||
| 63 | unsigned long hclk, | ||
| 64 | unsigned long pclk); | ||
diff --git a/include/asm-arm/plat-s3c24xx/common-smdk.h b/include/asm-arm/plat-s3c24xx/common-smdk.h deleted file mode 100644 index 58d9094c935c..000000000000 --- a/include/asm-arm/plat-s3c24xx/common-smdk.h +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | /* linux/include/asm-arm/plat-s3c24xx/common-smdk.h | ||
| 2 | * | ||
| 3 | * Copyright (c) 2006 Simtec Electronics | ||
| 4 | * Ben Dooks <ben@simtec.co.uk> | ||
| 5 | * | ||
| 6 | * Common code for SMDK2410 and SMDK2440 boards | ||
| 7 | * | ||
| 8 | * http://www.fluff.org/ben/smdk2440/ | ||
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License version 2 as | ||
| 12 | * published by the Free Software Foundation. | ||
| 13 | */ | ||
| 14 | |||
| 15 | extern void smdk_machine_init(void); | ||
diff --git a/include/asm-arm/plat-s3c24xx/dma.h b/include/asm-arm/plat-s3c24xx/dma.h deleted file mode 100644 index c78efe316fc8..000000000000 --- a/include/asm-arm/plat-s3c24xx/dma.h +++ /dev/null | |||
| @@ -1,82 +0,0 @@ | |||
| 1 | /* linux/include/asm-arm/plat-s3c24xx/dma.h | ||
| 2 | * | ||
| 3 | * Copyright (C) 2006 Simtec Electronics | ||
| 4 | * Ben Dooks <ben@simtec.co.uk> | ||
| 5 | * | ||
| 6 | * Samsung S3C24XX DMA 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 | extern struct sysdev_class dma_sysclass; | ||
| 14 | extern struct s3c2410_dma_chan s3c2410_chans[S3C2410_DMA_CHANNELS]; | ||
| 15 | |||
| 16 | #define DMA_CH_VALID (1<<31) | ||
| 17 | #define DMA_CH_NEVER (1<<30) | ||
| 18 | |||
| 19 | struct s3c24xx_dma_addr { | ||
| 20 | unsigned long from; | ||
| 21 | unsigned long to; | ||
| 22 | }; | ||
| 23 | |||
| 24 | /* struct s3c24xx_dma_map | ||
| 25 | * | ||
| 26 | * this holds the mapping information for the channel selected | ||
| 27 | * to be connected to the specified device | ||
| 28 | */ | ||
| 29 | |||
| 30 | struct s3c24xx_dma_map { | ||
| 31 | const char *name; | ||
| 32 | struct s3c24xx_dma_addr hw_addr; | ||
| 33 | |||
| 34 | unsigned long channels[S3C2410_DMA_CHANNELS]; | ||
| 35 | unsigned long channels_rx[S3C2410_DMA_CHANNELS]; | ||
| 36 | }; | ||
| 37 | |||
| 38 | struct s3c24xx_dma_selection { | ||
| 39 | struct s3c24xx_dma_map *map; | ||
| 40 | unsigned long map_size; | ||
| 41 | unsigned long dcon_mask; | ||
| 42 | |||
| 43 | void (*select)(struct s3c2410_dma_chan *chan, | ||
| 44 | struct s3c24xx_dma_map *map); | ||
| 45 | |||
| 46 | void (*direction)(struct s3c2410_dma_chan *chan, | ||
| 47 | struct s3c24xx_dma_map *map, | ||
| 48 | enum s3c2410_dmasrc dir); | ||
| 49 | }; | ||
| 50 | |||
| 51 | extern int s3c24xx_dma_init_map(struct s3c24xx_dma_selection *sel); | ||
| 52 | |||
| 53 | /* struct s3c24xx_dma_order_ch | ||
| 54 | * | ||
| 55 | * channel map for one of the `enum dma_ch` dma channels. the list | ||
| 56 | * entry contains a set of low-level channel numbers, orred with | ||
| 57 | * DMA_CH_VALID, which are checked in the order in the array. | ||
| 58 | */ | ||
| 59 | |||
| 60 | struct s3c24xx_dma_order_ch { | ||
| 61 | unsigned int list[S3C2410_DMA_CHANNELS]; /* list of channels */ | ||
| 62 | unsigned int flags; /* flags */ | ||
| 63 | }; | ||
| 64 | |||
| 65 | /* struct s3c24xx_dma_order | ||
| 66 | * | ||
| 67 | * information provided by either the core or the board to give the | ||
| 68 | * dma system a hint on how to allocate channels | ||
| 69 | */ | ||
| 70 | |||
| 71 | struct s3c24xx_dma_order { | ||
| 72 | struct s3c24xx_dma_order_ch channels[DMACH_MAX]; | ||
| 73 | }; | ||
| 74 | |||
| 75 | extern int s3c24xx_dma_order_set(struct s3c24xx_dma_order *map); | ||
| 76 | |||
| 77 | /* DMA init code, called from the cpu support code */ | ||
| 78 | |||
| 79 | extern int s3c2410_dma_init(void); | ||
| 80 | |||
| 81 | extern int s3c24xx_dma_init(unsigned int channels, unsigned int irq, | ||
| 82 | unsigned int stride); | ||
diff --git a/include/asm-arm/plat-s3c24xx/s3c2412.h b/include/asm-arm/plat-s3c24xx/s3c2412.h deleted file mode 100644 index 3ec97685e781..000000000000 --- a/include/asm-arm/plat-s3c24xx/s3c2412.h +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | /* linux/include/asm-arm/plat-s3c24xx/s3c2412.h | ||
| 2 | * | ||
| 3 | * Copyright (c) 2006 Simtec Electronics | ||
| 4 | * Ben Dooks <ben@simtec.co.uk> | ||
| 5 | * | ||
| 6 | * Header file for s3c2412 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 | #ifdef CONFIG_CPU_S3C2412 | ||
| 14 | |||
| 15 | extern int s3c2412_init(void); | ||
| 16 | |||
| 17 | extern void s3c2412_map_io(struct map_desc *mach_desc, int size); | ||
| 18 | |||
| 19 | extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
| 20 | |||
| 21 | extern void s3c2412_init_clocks(int xtal); | ||
| 22 | |||
| 23 | extern int s3c2412_baseclk_add(void); | ||
| 24 | #else | ||
| 25 | #define s3c2412_init_clocks NULL | ||
| 26 | #define s3c2412_init_uarts NULL | ||
| 27 | #define s3c2412_map_io NULL | ||
| 28 | #define s3c2412_init NULL | ||
| 29 | #endif | ||
