Re: clock sourcing suggestion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 30, 2009 at 11:36:27AM +0900, jassi brar wrote:
> 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?

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.

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux