intel-lpss.c (320424c7d44f54c18df9812fd7c45f6963524002) intel-lpss.c (82f53f9ee5770177eb102446cc3513bf07e2668a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Intel Sunrisepoint LPSS core support.
4 *
5 * Copyright (C) 2015, Intel Corporation
6 *
7 * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
8 * Mika Westerberg <mika.westerberg@linux.intel.com>

--- 287 unchanged lines hidden (view full) ---

296 snprintf(name, sizeof(name), "%s-enable", devname);
297 tmp = clk_register_gate(NULL, name, __clk_get_name(tmp), 0,
298 lpss->priv, 0, 0, NULL);
299 if (IS_ERR(tmp))
300 return PTR_ERR(tmp);
301
302 snprintf(name, sizeof(name), "%s-div", devname);
303 tmp = clk_register_fractional_divider(NULL, name, __clk_get_name(tmp),
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Intel Sunrisepoint LPSS core support.
4 *
5 * Copyright (C) 2015, Intel Corporation
6 *
7 * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
8 * Mika Westerberg <mika.westerberg@linux.intel.com>

--- 287 unchanged lines hidden (view full) ---

296 snprintf(name, sizeof(name), "%s-enable", devname);
297 tmp = clk_register_gate(NULL, name, __clk_get_name(tmp), 0,
298 lpss->priv, 0, 0, NULL);
299 if (IS_ERR(tmp))
300 return PTR_ERR(tmp);
301
302 snprintf(name, sizeof(name), "%s-div", devname);
303 tmp = clk_register_fractional_divider(NULL, name, __clk_get_name(tmp),
304 0, lpss->priv, 1, 15, 16, 15, 0,
304 CLK_FRAC_DIVIDER_POWER_OF_TWO_PS,
305 lpss->priv, 1, 15, 16, 15, 0,
305 NULL);
306 if (IS_ERR(tmp))
307 return PTR_ERR(tmp);
308 *clk = tmp;
309
310 snprintf(name, sizeof(name), "%s-update", devname);
311 tmp = clk_register_gate(NULL, name, __clk_get_name(tmp),
312 CLK_SET_RATE_PARENT, lpss->priv, 31, 0, NULL);

--- 231 unchanged lines hidden ---
306 NULL);
307 if (IS_ERR(tmp))
308 return PTR_ERR(tmp);
309 *clk = tmp;
310
311 snprintf(name, sizeof(name), "%s-update", devname);
312 tmp = clk_register_gate(NULL, name, __clk_get_name(tmp),
313 CLK_SET_RATE_PARENT, lpss->priv, 31, 0, NULL);

--- 231 unchanged lines hidden ---