1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel Low Power Subsystem clocks.
5 * Copyright (C) 2013, Intel Corporation
6 * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
7 * Heikki Krogerus <heikki.krogerus@linux.intel.com>
10 #include <linux/clk-provider.h>
11 #include <linux/err.h>
12 #include <linux/module.h>
13 #include <linux/platform_data/x86/clk-lpss.h>
14 #include <linux/platform_device.h>
16 static int lpt_clk_probe(struct platform_device
*pdev
)
18 struct lpss_clk_data
*drvdata
;
21 drvdata
= devm_kzalloc(&pdev
->dev
, sizeof(*drvdata
), GFP_KERNEL
);
25 /* LPSS free running clock */
26 drvdata
->name
= "lpss_clk";
27 clk
= clk_register_fixed_rate(&pdev
->dev
, drvdata
->name
, NULL
,
33 platform_set_drvdata(pdev
, drvdata
);
37 static struct platform_driver lpt_clk_driver
= {
41 .probe
= lpt_clk_probe
,
44 int __init
lpt_clk_init(void)
46 return platform_driver_register(&lpt_clk_driver
);