S3C AUDIO: Added platform data header
Subsystems (2)
PATCH v2 5/7 S3C AUDIO: 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 <[email protected]>
--- arch/arm/plat-s3c/include/plat/audio.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s3c/include/plat/audio.h
arch/arm/plat-s3c/include/plat/audio.h new file +17 -0
@@ -0,0 +1,17 @@ +/* arch/arm/plat-s3c/include/plat/audio.h +* +* Copyright (c) 2009 Samsung Electronics Co. Ltd +* Author: Jaswinder Singh <[email protected]> +* +* 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 *); +};
Signature · 1 line
1.6.2.5
Quoted 8 lines · Jassi Brar
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 <[email protected]>
Acked-by Ben Dooks <[email protected]>
Quoted 31 lines
--- arch/arm/plat-s3c/include/plat/audio.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s3c/include/plat/audio.harch/arm/plat-s3c/include/plat/audio.h new file +17
-0@@ -0,0 +1,17 @@ +/* arch/arm/plat-s3c/include/plat/audio.h +* +* Copyright (c) 2009 Samsung Electronics Co. Ltd +* Author: Jaswinder Singh <[email protected]> +* +* 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 *); +};Signature · 1 line
1.6.2.5
Signature · 5 lines
-- Ben Q: What's a light-year? A: One-third less calories than a regular year.