Release 4.7 drivers/clk/clk-max77686.c
/*
* clk-max77686.c - Clock driver for Maxim 77686
*
* Copyright (C) 2012 Samsung Electornics
* Jonghwa Lee <jonghwa3.lee@samsung.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/mfd/max77686.h>
#include <linux/mfd/max77686-private.h>
#include <linux/clk-provider.h>
#include <linux/mutex.h>
#include <linux/clkdev.h>
#include <dt-bindings/clock/maxim,max77686.h>
#include "clk-max-gen.h"
static struct clk_init_data max77686_clks_init[MAX77686_CLKS_NUM] = {
[MAX77686_CLK_AP] = {
.name = "32khz_ap",
.ops = &max_gen_clk_ops,
},
[MAX77686_CLK_CP] = {
.name = "32khz_cp",
.ops = &max_gen_clk_ops,
},
[MAX77686_CLK_PMIC] = {
.name = "32khz_pmic",
.ops = &max_gen_clk_ops,
},
};
static int max77686_clk_probe(struct platform_device *pdev)
{
struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent);
return max_gen_clk_probe(pdev, iodev->regmap, MAX77686_REG_32KHZ,
max77686_clks_init, MAX77686_CLKS_NUM);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jonghwa lee | jonghwa lee | 33 | 80.49% | 1 | 33.33% |
tomasz figa | tomasz figa | 4 | 9.76% | 1 | 33.33% |
javier martinez canillas | javier martinez canillas | 4 | 9.76% | 1 | 33.33% |
| Total | 41 | 100.00% | 3 | 100.00% |
static int max77686_clk_remove(struct platform_device *pdev)
{
return max_gen_clk_remove(pdev, MAX77686_CLKS_NUM);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jonghwa lee | jonghwa lee | 15 | 78.95% | 1 | 33.33% |
javier martinez canillas | javier martinez canillas | 3 | 15.79% | 1 | 33.33% |
tomasz figa | tomasz figa | 1 | 5.26% | 1 | 33.33% |
| Total | 19 | 100.00% | 3 | 100.00% |
static const struct platform_device_id max77686_clk_id[] = {
{ "max77686-clk", 0},
{ },
};
MODULE_DEVICE_TABLE(platform, max77686_clk_id);
static struct platform_driver max77686_clk_driver = {
.driver = {
.name = "max77686-clk",
},
.probe = max77686_clk_probe,
.remove = max77686_clk_remove,
.id_table = max77686_clk_id,
};
module_platform_driver(max77686_clk_driver);
MODULE_DESCRIPTION("MAXIM 77686 Clock Driver");
MODULE_AUTHOR("Jonghwa Lee <jonghwa3.lee@samsung.com>");
MODULE_LICENSE("GPL");
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jonghwa lee | jonghwa lee | 209 | 89.32% | 1 | 16.67% |
javier martinez canillas | javier martinez canillas | 17 | 7.26% | 2 | 33.33% |
tomasz figa | tomasz figa | 5 | 2.14% | 2 | 33.33% |
paul gortmaker | paul gortmaker | 3 | 1.28% | 1 | 16.67% |
| Total | 234 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.