[PATCH v2] clk: qcom: Add support for IPQ8064's global clock controller (GCC)

Kumar Gala galak at codeaurora.org
Mon Apr 7 08:10:02 PDT 2014


On Apr 7, 2014, at 10:01 AM, Ivan T. Ivanov <iivanov at mm-sol.com> wrote:

> Hi Kumar,
> 
> On Fri, 2014-04-04 at 15:19 -0500, Kumar Gala wrote:
>> Add a driver for the global clock controller found on IPQ8064 based
>> platforms. This should allow most non-multimedia device drivers to probe
>> and control their clocks.
>> 
>> This is currently missing clocks for SATA, USB, and networking devices.
>> 
>> Signed-off-by: Kumar Gala <galak at codeaurora.org>
>> ---
>> v2:
>> * dropped audio clock from commit message
>> * changed Kconfig symbol to IPQ_GCC_806X
>> * Fixed PXO/CXO clk freq to 25Mhz
>> 
> 
> <snip>
> 
>> --- /dev/null
>> +++ b/drivers/clk/qcom/gcc-ipq806x.c
>> @@ -0,0 +1,1957 @@
>> +/*
>> + * Copyright (c) 2014, The Linux Foundation. All rights reserved.
>> + *
>> + * This software is licensed under the terms of the GNU General Public
>> + * License version 2, as published by the Free Software Foundation, and
>> + * may be copied, distributed, and modified under those terms.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + */
>> +
>> +#include <linux/kernel.h>
>> +#include <linux/bitops.h>
>> +#include <linux/err.h>
>> +#include <linux/platform_device.h>
>> +#include <linux/module.h>
>> +#include <linux/of.h>
>> +#include <linux/of_device.h>
>> +#include <linux/clk-provider.h>
>> +#include <linux/regmap.h>
>> +#include <linux/reset-controller.h>
>> +
>> +#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
>> +#include <dt-bindings/reset/qcom,gcc-ipq806x.h>
>> +
>> +#include "common.h"
> 
> Do I miss something or this file is not available?

Its based on Stephen’s refactoring patch:

https://patchwork.kernel.org/patch/3876761/

- k

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation




More information about the linux-arm-kernel mailing list