clock sourcing suggestion
Hi,
I2S audio-bus[0,1] in s3c6410 can source clock, among other options, from dedicated pcm_cdclk[0,1] respectively.
Whereas in s3c6400, both I2S audio-bus[0,1] share one common pcm_cdclk.
The arch/arm/plat-s3c64xx/s3c6400-clock.c makes audio-bus-0,1 share the same pcm_cdclk(s3c6400 case).
Should we use #ifdef CPU_S3C6410 to assign proper clock sources ? But I am afraid that might come in the way of building common kernel for 6400 and 6410.
What should be the solution, please suggest?
Quoted 6 lines · jassi brar
Hi,
I2S audio-bus[0,1] in s3c6410 can source clock, among other options, from dedicated pcm_cdclk[0,1] respectively.
Whereas in s3c6400, both I2S audio-bus[0,1] share one commonpcm_cdclk.
Quoted 8 lines
The
arch/arm/plat-s3c64xx/s3c6400-clock.cmakes audio-bus-0,1 share the samepcm_cdclk(s3c6400 case).Should we use #ifdef
CPU_S3C6410to assign proper clock sources ? But I am afraid that might come in the way of building common kernel for 6400 and 6410.What should be the solution, please suggest?
A quick think would suggest two solutions:
1) Change the clocks before registering in the relevant init function
2) Moving those clocks out of the common clock code and registering s3c6400 version in s3c6400 clock setup and s3c6410 in s3c6410 clock setup.
I can have a look tommorow at the code if any further info is required.
(2) is probably the best thing to do.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.