Re: [PATCH 5/10] ARM: S5PV210: Add SCLK_SPDIF clock

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

 



On Fri, Oct 8, 2010 at 7:16 PM, Kukjin Kim <kgene.kim@xxxxxxxxxxx> wrote:
> Seungwhan Youn wrote:
>>
>> This patch add SCLK_SPDIF clock to support source clock of S/PDIF
>> on S5PV210.
>>
>> Signed-off-by: Seungwhan Youn <sw.youn@xxxxxxxxxxx>
>> ---
>> Âarch/arm/mach-s5pv210/clock.c | Â 62
>> +++++++++++++++++++++++++++++++++++------
>> Â1 files changed, 53 insertions(+), 9 deletions(-)
>>
>> diff --git a/arch/arm/mach-s5pv210/clock.c b/arch/arm/mach-s5pv210/clock.c
>> index d562670..195a088 100644
>> --- a/arch/arm/mach-s5pv210/clock.c
>> +++ b/arch/arm/mach-s5pv210/clock.c
>> @@ -431,6 +431,12 @@ static struct clk init_clocks_disable[] = {
>>        .parent     = &clk_p,
>>        .enable     = s5pv210_clk_ip3_ctrl,
>>        .ctrlbit    Â= (1 << 6),
>> + Â Â }, {
>> +       .name      = "spdif",
>> +       .id       = -1,
>> +       .parent     = &clk_p,
>> +       .enable     = s5pv210_clk_ip3_ctrl,
>> +       .ctrlbit    Â= (1 << 0),
>> Â Â Â },
>> Â};
>>
>> @@ -660,6 +666,53 @@ static struct clksrc_sources clkset_sclk_spdif = {
>>    .nr_sources   = ARRAY_SIZE(clkset_sclk_spdif_list),
>> Â};
>>
>> +static int s5pv210_spdif_set_rate(struct clk *clk, unsigned long rate)
>> +{
>> + Â Â struct clk *pclk;
>> + Â Â int ret;
>> +
>> + Â Â pclk = clk_get_parent(clk);
>> + Â Â if (IS_ERR(pclk))
>> + Â Â Â Â Â Â return -EINVAL;
>> +
>> + Â Â ret = pclk->ops->set_rate(pclk, rate);
>> + Â Â clk_put(pclk);
>> +
>> + Â Â return ret;
>> +}
>> +
>
> Similar with previous reply...please refer to it...
>

Please refer my previous reply on "[PATCH 3/10] ARM: S5PC100: Add
SCLK_SPDIF clock".

(snip)

Thanks,
Claude
--
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