Commit 4793d6af authored by Jassi Brar's avatar Jassi Brar Committed by Mark Brown

ASoC: S3C: I2Sv2: Unify clock source IDs

Rather than having the multiple definitions of the same clocks,
define them in one common place and refer by SoC specific names.
Signed-off-by: default avatarJassi Brar <jassi.brar@samsung.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 08226614
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
#define S3C_I2SV2_DIV_RCLK (2) #define S3C_I2SV2_DIV_RCLK (2)
#define S3C_I2SV2_DIV_PRESCALER (3) #define S3C_I2SV2_DIV_PRESCALER (3)
#define S3C_I2SV2_CLKSRC_PCLK 0
#define S3C_I2SV2_CLKSRC_AUDIOBUS 1
#define S3C_I2SV2_CLKSRC_CDCLK 2
/** /**
* struct s3c_i2sv2_info - S3C I2S-V2 information * struct s3c_i2sv2_info - S3C I2S-V2 information
* @dev: The parent device passed to use from the probe. * @dev: The parent device passed to use from the probe.
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
#define S3C2412_DIV_RCLK S3C_I2SV2_DIV_RCLK #define S3C2412_DIV_RCLK S3C_I2SV2_DIV_RCLK
#define S3C2412_DIV_PRESCALER S3C_I2SV2_DIV_PRESCALER #define S3C2412_DIV_PRESCALER S3C_I2SV2_DIV_PRESCALER
#define S3C2412_CLKSRC_PCLK (0) #define S3C2412_CLKSRC_PCLK S3C_I2SV2_CLKSRC_PCLK
#define S3C2412_CLKSRC_I2SCLK (1) #define S3C2412_CLKSRC_I2SCLK S3C_I2SV2_CLKSRC_AUDIOBUS
extern struct clk *s3c2412_get_iisclk(void); extern struct clk *s3c2412_get_iisclk(void);
......
...@@ -23,9 +23,9 @@ struct clk; ...@@ -23,9 +23,9 @@ struct clk;
#define S3C64XX_DIV_RCLK S3C_I2SV2_DIV_RCLK #define S3C64XX_DIV_RCLK S3C_I2SV2_DIV_RCLK
#define S3C64XX_DIV_PRESCALER S3C_I2SV2_DIV_PRESCALER #define S3C64XX_DIV_PRESCALER S3C_I2SV2_DIV_PRESCALER
#define S3C64XX_CLKSRC_PCLK (0) #define S3C64XX_CLKSRC_PCLK S3C_I2SV2_CLKSRC_PCLK
#define S3C64XX_CLKSRC_MUX (1) #define S3C64XX_CLKSRC_MUX S3C_I2SV2_CLKSRC_AUDIOBUS
#define S3C64XX_CLKSRC_CDCLK (2) #define S3C64XX_CLKSRC_CDCLK S3C_I2SV2_CLKSRC_CDCLK
extern struct snd_soc_dai s3c64xx_i2s_dai[]; extern struct snd_soc_dai s3c64xx_i2s_dai[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment