summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJassi Brar <jassi.brar@samsung.com>2009-11-17 08:53:50 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-11-18 14:35:04 +0100
commit07e74c0ac8f1fdb197e24bbbd5aadfa0c430a95c (patch)
tree300cc347d33de07e577c0bb39c2423d70c66ebad
parentARM: S3C64XX: Define PCM Controller base registers (diff)
downloadlinux-07e74c0ac8f1fdb197e24bbbd5aadfa0c430a95c.tar.xz
linux-07e74c0ac8f1fdb197e24bbbd5aadfa0c430a95c.zip
ARM: S3C64XX: Added platform data header
Many SoCs have their I2S pins MUXed with other functions. So we need to pass a callback for driver to configure the pins appropriately. Hence, the need of platform data and this header. As and when needed new callbacks and structure pointers maybe added to this header. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Acked-by: Ben Dooks <ben-linux@fluff.org> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--arch/arm/plat-s3c/include/plat/audio.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/include/plat/audio.h b/arch/arm/plat-s3c/include/plat/audio.h
new file mode 100644
index 000000000000..f22d23bb6271
--- /dev/null
+++ b/arch/arm/plat-s3c/include/plat/audio.h
@@ -0,0 +1,17 @@
+/* arch/arm/plat-s3c/include/plat/audio.h
+ *
+ * Copyright (c) 2009 Samsung Electronics Co. Ltd
+ * Author: Jaswinder Singh <jassi.brar@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/**
+ * struct s3c_audio_pdata - common platform data for audio device drivers
+ * @cfg_gpio: Callback function to setup mux'ed pins in I2S/PCM/AC97 mode
+ */
+struct s3c_audio_pdata {
+ int (*cfg_gpio)(struct platform_device *);
+};