diff options
Diffstat (limited to 'arch/arm/plat-s3c/include/plat')
-rw-r--r-- | arch/arm/plat-s3c/include/plat/audio.h | 48 | ||||
-rw-r--r-- | arch/arm/plat-s3c/include/plat/devs.h | 3 | ||||
-rw-r--r-- | arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h | 2 |
3 files changed, 15 insertions, 38 deletions
diff --git a/arch/arm/plat-s3c/include/plat/audio.h b/arch/arm/plat-s3c/include/plat/audio.h index de0e8da48bc3..f22d23bb6271 100644 --- a/arch/arm/plat-s3c/include/plat/audio.h +++ b/arch/arm/plat-s3c/include/plat/audio.h | |||
@@ -1,45 +1,17 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/audio.h | 1 | /* arch/arm/plat-s3c/include/plat/audio.h |
2 | * | 2 | * |
3 | * Copyright (c) 2004-2005 Simtec Electronics | 3 | * Copyright (c) 2009 Samsung Electronics Co. Ltd |
4 | * http://www.simtec.co.uk/products/SWLINUX/ | 4 | * Author: Jaswinder Singh <jassi.brar@samsung.com> |
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * | ||
7 | * S3C24XX - Audio platfrom_device info | ||
8 | * | 5 | * |
9 | * This program is free software; you can redistribute it and/or modify | 6 | * 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 | 7 | * it under the terms of the GNU General Public License version 2 as |
11 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
12 | */ | 9 | */ |
13 | |||
14 | #ifndef __ASM_ARCH_AUDIO_H | ||
15 | #define __ASM_ARCH_AUDIO_H __FILE__ | ||
16 | |||
17 | /* struct s3c24xx_iis_ops | ||
18 | * | ||
19 | * called from the s3c24xx audio core to deal with the architecture | ||
20 | * or the codec's setup and control. | ||
21 | * | ||
22 | * the pointer to itself is passed through in case the caller wants to | ||
23 | * embed this in an larger structure for easy reference to it's context. | ||
24 | */ | ||
25 | 10 | ||
26 | struct s3c24xx_iis_ops { | 11 | /** |
27 | struct module *owner; | 12 | * struct s3c_audio_pdata - common platform data for audio device drivers |
28 | 13 | * @cfg_gpio: Callback function to setup mux'ed pins in I2S/PCM/AC97 mode | |
29 | int (*startup)(struct s3c24xx_iis_ops *me); | 14 | */ |
30 | void (*shutdown)(struct s3c24xx_iis_ops *me); | 15 | struct s3c_audio_pdata { |
31 | int (*suspend)(struct s3c24xx_iis_ops *me); | 16 | int (*cfg_gpio)(struct platform_device *); |
32 | int (*resume)(struct s3c24xx_iis_ops *me); | ||
33 | |||
34 | int (*open)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm); | ||
35 | int (*close)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm); | ||
36 | int (*prepare)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm, struct snd_pcm_runtime *rt); | ||
37 | }; | 17 | }; |
38 | |||
39 | struct s3c24xx_platdata_iis { | ||
40 | const char *codec_clk; | ||
41 | struct s3c24xx_iis_ops *ops; | ||
42 | int (*match_dev)(struct device *dev); | ||
43 | }; | ||
44 | |||
45 | #endif /* __ASM_ARCH_AUDIO_H */ | ||
diff --git a/arch/arm/plat-s3c/include/plat/devs.h b/arch/arm/plat-s3c/include/plat/devs.h index 0f540ea1e999..932cbbbb4273 100644 --- a/arch/arm/plat-s3c/include/plat/devs.h +++ b/arch/arm/plat-s3c/include/plat/devs.h | |||
@@ -28,6 +28,9 @@ extern struct platform_device s3c64xx_device_iis0; | |||
28 | extern struct platform_device s3c64xx_device_iis1; | 28 | extern struct platform_device s3c64xx_device_iis1; |
29 | extern struct platform_device s3c64xx_device_iisv4; | 29 | extern struct platform_device s3c64xx_device_iisv4; |
30 | 30 | ||
31 | extern struct platform_device s3c64xx_device_pcm0; | ||
32 | extern struct platform_device s3c64xx_device_pcm1; | ||
33 | |||
31 | extern struct platform_device s3c_device_fb; | 34 | extern struct platform_device s3c_device_fb; |
32 | extern struct platform_device s3c_device_usb; | 35 | extern struct platform_device s3c_device_usb; |
33 | extern struct platform_device s3c_device_lcd; | 36 | extern struct platform_device s3c_device_lcd; |
diff --git a/arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h b/arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h index 07659dad1748..abf2fbc2eb2f 100644 --- a/arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h +++ b/arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h | |||
@@ -67,6 +67,8 @@ | |||
67 | #define S3C2412_IISMOD_BCLK_MASK (3 << 1) | 67 | #define S3C2412_IISMOD_BCLK_MASK (3 << 1) |
68 | #define S3C2412_IISMOD_8BIT (1 << 0) | 68 | #define S3C2412_IISMOD_8BIT (1 << 0) |
69 | 69 | ||
70 | #define S3C64XX_IISMOD_CDCLKCON (1 << 12) | ||
71 | |||
70 | #define S3C2412_IISPSR_PSREN (1 << 15) | 72 | #define S3C2412_IISPSR_PSREN (1 << 15) |
71 | 73 | ||
72 | #define S3C2412_IISFIC_TXFLUSH (1 << 15) | 74 | #define S3C2412_IISFIC_TXFLUSH (1 << 15) |