| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
| H A D | mali_kbase_devfreq.c | 1 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 4 * (C) COPYRIGHT 2014-2022 ARM Limited. All rights reserved. 18 * http://www.gnu.org/licenses/gpl-2.0.html. 20 * SPDX-License-Identifier: GPL-2.0 31 #include <linux/clk-provider.h> 56 * get_voltage() - Get the voltage value corresponding to the nominal frequency 59 * @freq: Nominal frequency in Hz passed by devfreq. 61 * This function will be called only when the opp table which is compatible with 62 * "operating-points-v2-mali", is not present in the devicetree for GPU device. 66 static unsigned long get_voltage(struct kbase_device *kbdev, unsigned long freq) in get_voltage() argument [all …]
|
| H A D | mali_kbase_devfreq.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 * (C) COPYRIGHT 2014, 2019-2021 ARM Limited. All rights reserved. 18 * http://www.gnu.org/licenses/gpl-2.0.html. 31 * kbase_devfreq_force_freq - Set GPU frequency on L2 power on/off. 33 * @freq: GPU frequency in HZ to be set when 36 void kbase_devfreq_force_freq(struct kbase_device *kbdev, unsigned long freq); 39 * kbase_devfreq_enqueue_work - Enqueue a work item for suspend/resume devfreq. 47 * kbase_devfreq_opp_translate - Translate nominal OPP frequency from devicetree 51 * @freq: Nominal frequency 56 * This function will only perform translation if an operating-points-v2-mali [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ufs/ |
| H A D | ufshcd-pltfrm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2011-2013 Samsung India Software Operations 16 #include "ufshcd-pltfrm.h" 26 struct device *dev = hba->dev; in ufshcd_parse_clock_info() 27 struct device_node *np = dev->of_node; in ufshcd_parse_clock_info() 37 cnt = of_property_count_strings(np, "clock-names"); in ufshcd_parse_clock_info() 38 if (!cnt || (cnt == -EINVAL)) { in ufshcd_parse_clock_info() 50 if (!of_get_property(np, "freq-table-hz", &len)) { in ufshcd_parse_clock_info() 51 dev_info(dev, "freq-table-hz property not specified\n"); in ufshcd_parse_clock_info() 60 dev_err(dev, "%s len mismatch\n", "freq-table-hz"); in ufshcd_parse_clock_info() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thermal/ |
| H A D | devfreq_cooling.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2014-2015 ARM Limited 9 * - If OPPs are added or removed after devfreq cooling has 30 * struct devfreq_cooling_device - Devfreq cooling device 36 * @power_table: Pointer to table with maximum power draw for each 37 * cooling state. State is the index into the table, and 39 * @freq_table: Pointer to a table with the frequencies sorted in descending 40 * order. You can index the table by cooling device state 71 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state() 73 *state = dfc->freq_table_size - 1; in devfreq_cooling_get_max_state() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/ufs/ |
| H A D | cdns,ufshc.txt | 3 UFS nodes are defined to describe on-chip UFS host controllers. 5 Please see the ufshcd-pltfrm.txt for a list of all available properties. 8 - compatible : Compatible list, contains one of the following controllers: 9 "cdns,ufshc" - Generic CDNS HCI, 10 "cdns,ufshc-m31-16nm" - CDNS UFS HC + M31 16nm PHY 12 "jedec,ufs-2.0" 14 - reg : Address and length of the UFS register set. 15 - interrupts : One interrupt mapping. 16 - freq-table-hz : Clock frequency table. 17 See the ufshcd-pltfrm.txt for details. [all …]
|
| H A D | ufs-mediatek.txt | 3 UFS nodes are defined to describe on-chip UFS hardware macro. 7 contain a phandle reference to UFS M-PHY node. 10 - compatible : Compatible list, contains the following controller: 11 "mediatek,mt8183-ufshci" for MediaTek UFS host controller 13 "mediatek,mt8192-ufshci" for MediaTek UFS host controller 15 - reg : Address and length of the UFS register set. 16 - phys : phandle to m-phy. 17 - clocks : List of phandle and clock specifier pairs. 18 - clock-names : List of clock input name strings sorted in the same 21 - freq-table-hz : Array of <min max> operating frequencies stored in the same [all …]
|
| H A D | ufs-hisi.txt | 3 UFS nodes are defined to describe on-chip UFS hardware macro. 7 - compatible : compatible list, contains one of the following - 8 "hisilicon,hi3660-ufs", "jedec,ufs-1.1" for hisi ufs 10 "hisilicon,hi3670-ufs", "jedec,ufs-2.1" for hisi ufs 12 - reg : should contain UFS register address space & UFS SYS CTRL register address, 13 - interrupts : interrupt number 14 - clocks : List of phandle and clock specifier pairs 15 - clock-names : List of clock input name strings sorted in the same 17 - freq-table-hz : Array of <min max> operating frequencies stored in the same 22 - resets : describe reset node register [all …]
|
| H A D | ufshcd-pltfrm.txt | 3 UFSHC nodes are defined to describe on-chip UFS host controllers. 7 - compatible : must contain "jedec,ufs-1.1" or "jedec,ufs-2.0" 10 SoC-specific compatible along with "qcom,ufshc" and 12 "qcom,msm8994-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 13 "qcom,msm8996-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 14 "qcom,msm8998-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 15 "qcom,sdm845-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 16 "qcom,sm8150-ufshc", "qcom,ufshc", "jedec,ufs-2.0" 17 - interrupts : <interrupt mapping for UFS host controller IRQ> 18 - reg : <registers mapping> [all …]
|
| /OK3568_Linux_fs/kernel/drivers/opp/ |
| H A D | ti-opp-supply.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/ 5 * Dave Gerlach <d-gerlach@ti.com> 25 * struct ti_opp_supply_optimum_voltage_table - optimized voltage table 35 * struct ti_opp_supply_data - OMAP specific opp supply data 36 * @vdd_table: Optimized voltage mapping table 49 * struct ti_opp_supply_of_data - device tree match data 52 * @efuse_voltage_uv: Are the efuse entries in micro-volts? if not, assume 53 * milli-volts. 64 * _store_optimized_voltages() - store optimized voltages [all …]
|
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated. 25 * The root of the list of all opp-tables. All opp_table structures branch off 38 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev() 39 if (opp_dev->dev == dev) in _find_opp_dev() 51 mutex_lock(&opp_table->lock); in _find_opp_table_unlocked() 53 mutex_unlock(&opp_table->lock); in _find_opp_table_unlocked() 62 return ERR_PTR(-ENODEV); in _find_opp_table_unlocked() 66 * _find_opp_table() - find opp_table struct using device pointer 67 * @dev: device pointer used to lookup OPP table [all …]
|
| H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated. 31 /* "operating-points-v2" can be an array for power domain providers */ in _opp_of_get_opp_desc_node() 32 return of_parse_phandle(np, "operating-points-v2", index); in _opp_of_get_opp_desc_node() 38 return _opp_of_get_opp_desc_node(dev->of_node, 0); in dev_pm_opp_of_get_opp_desc_node() 47 np = _opp_of_get_opp_desc_node(dev->of_node, index); in _managed_opp() 52 if (opp_table->np == np) { in _managed_opp() 54 * Multiple devices can point to the same OPP table and in _managed_opp() 55 * so will have same node-pointer, np. in _managed_opp() 58 * OPP table contains a "opp-shared" property. in _managed_opp() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | s3c24xx-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2006-2008 Simtec Electronics 24 #include <linux/soc/samsung/s3c-cpufreq-core.h> 25 #include <linux/soc/samsung/s3c-pm.h> 30 /* note, cpufreq support deals in kHz, no Hz */ 62 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur() 63 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur() 64 cfg->freq.pclk = pclk = clk_get_rate(clk_pclk); in s3c_cpufreq_getcur() 65 cfg->freq.armclk = armclk = clk_get_rate(clk_arm); in s3c_cpufreq_getcur() 67 cfg->pll.driver_data = s3c24xx_read_mpllcon(); in s3c_cpufreq_getcur() [all …]
|
| H A D | sh-cpufreq.c | 4 * Copyright (C) 2002 - 2012 Paul Mundt 7 * Clock framework bits from arch/avr32/mach-at32ap/cpufreq.c 9 * Copyright (C) 2004-2007 Atmel Corporation 35 unsigned int freq; member 46 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() 47 int cpu = policy->cpu; in __sh_cpufreq_target() 51 long freq; in __sh_cpufreq_target() local 54 return -ENODEV; in __sh_cpufreq_target() 58 /* Convert target_freq from kHz to Hz */ in __sh_cpufreq_target() 59 freq = clk_round_rate(cpuclk, target->freq * 1000); in __sh_cpufreq_target() [all …]
|
| H A D | scmi-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/clk-provider.h> 34 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_get_rate() 38 ret = perf_ops->freq_get(ph, priv->domain_id, &rate, false); in scmi_cpufreq_get_rate() 45 * perf_ops->freq_set is not a synchronous, the actual OPP change will 52 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_set_target() 53 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target() local 55 return perf_ops->freq_set(ph, priv->domain_id, freq * 1000, false); in scmi_cpufreq_set_target() 61 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_fast_switch() 63 if (!perf_ops->freq_set(ph, priv->domain_id, in scmi_cpufreq_fast_switch() [all …]
|
| H A D | imx6q-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/nvmem-consumer.h> 81 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", in imx6q_set_target() 114 * - Enable pll2_pfd2_396m_clk and reparent pll1_sw_clk to it in imx6q_set_target() 115 * - Reprogram pll1_sys_clk and reparent pll1_sw_clk back to it in imx6q_set_target() 116 * - Disable pll2_pfd2_396m_clk in imx6q_set_target() 167 /* PLL1 is only needed until after ARM-PODF is set. */ in imx6q_set_target() 192 policy->clk = clks[ARM].clk; in imx6q_cpufreq_init() 194 policy->suspend_freq = max_freq; in imx6q_cpufreq_init() 195 dev_pm_opp_of_register_em(cpu_dev, policy->cpus); in imx6q_cpufreq_init() [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/ |
| H A D | dictbuilder.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 46 if (s1->hz < s2->hz) in cmp_scis_hz_splid_freq() 47 return -1; in cmp_scis_hz_splid_freq() 48 if (s1->hz > s2->hz) in cmp_scis_hz_splid_freq() 51 if (s1->splid.half_splid < s2->splid.half_splid) in cmp_scis_hz_splid_freq() 52 return -1; in cmp_scis_hz_splid_freq() 53 if (s1->splid.half_splid > s2->splid.half_splid) in cmp_scis_hz_splid_freq() 56 if (s1->splid.full_splid < s2->splid.full_splid) in cmp_scis_hz_splid_freq() 57 return -1; in cmp_scis_hz_splid_freq() 58 if (s1->splid.full_splid > s2->splid.full_splid) in cmp_scis_hz_splid_freq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | stv0900_priv.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 45 /* One point of the lookup table */ 51 /* Lookup table definition */ 53 s32 size;/* Size of the lookup table */ 54 struct stv000_lookpoint table[STV0900_MAXLOOKUPSIZE];/* Lookup table */ member 126 STV0900_BLIND_SEARCH,/* offset freq and SR are Unknown */ 128 STV0900_WARM_START/* offset freq and SR are known */ 226 u32 dmd_ref_clk;/* Reference,Input clock for the demod in Hz */ 255 u32 search_range;/* Range of the search (in Hz) */ 295 s32 freq[2]; member
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | ip6_flowlabel.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 /* FL hash table */ 49 /* FL hash table lock: it protects only of GC */ 57 DEFINE_STATIC_KEY_DEFERRED_FALSE(ipv6_flowlabel_exclusive, HZ); 63 fl = rcu_dereference_bh(fl->next)) 65 for (fl = rcu_dereference_bh(fl->next); \ 67 fl = rcu_dereference_bh(fl->next)) 70 for (sfl = rcu_dereference_bh(np->ipv6_fl_list); \ 72 sfl = rcu_dereference_bh(sfl->next)) 79 if (fl->label == label && net_eq(fl->fl_net, net)) in __fl_lookup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | saa7115.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // saa711x - Philips SAA711x video decoder driver 23 // Copyright (c) 2005-2006 Mauro Carvalho Chehab <mchehab@kernel.org> 33 #include <media/v4l2-device.h> 34 #include <media/v4l2-ctrls.h> 35 #include <media/v4l2-mc.h> 49 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 104 return &container_of(ctrl->handler, struct saa711x_state, hdl)->sd; in to_sd() 107 /* ----------------------------------------------------------------------- */ 164 filled with 0 - seems better not to touch on they */ in saa711x_writeregs() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/platform/arm/ |
| H A D | juno_opp.c | 2 * Copyright (C) 2010, 2012-2017 ARM Limited. All rights reserved. 8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13 * Example: Set up opp table 50 return -1; in init_juno_opps_from_scpi() 54 sinfo = sops->dvfs_get_info(2); in init_juno_opps_from_scpi() 58 for (i = 0; i < sinfo->count; i++) { in init_juno_opps_from_scpi() 59 struct scpi_opp *e = &sinfo->opps[i]; in init_juno_opps_from_scpi() 61 MALI_DEBUG_PRINT(2, ("Mali OPP from SCPI: %u Hz @ %u mV\n", e->freq, e->m_volt)); in init_juno_opps_from_scpi() 63 dev_pm_opp_add(dev, e->freq, e->m_volt * 1000); in init_juno_opps_from_scpi() 78 return -EFAULT; in setup_opps() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/opp/ |
| H A D | opp.txt | 2 ---------------------------------------------------- 4 Devices work at voltage-current-frequency combinations and some implementations 13 Binding 1: operating-points 16 This binding only supports voltage-frequency pairs. 19 - operating-points: An array of 2-tuples items, and each item consists 20 of frequency and voltage like <freq-kHz vol-uV>. 21 freq: clock frequency in kHz 27 compatible = "arm,cortex-a9"; 29 next-level-cache = <&L2>; 30 operating-points = < [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/include/asm/ |
| H A D | delay.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 1995-2004 Russell King 5 * Delay routines, using a pre-computed "loops_per_second" value. 11 #include <asm/param.h> /* HZ */ 20 * jiffies_per_sec = HZ 23 * Therefore the constant part is HZ / 1000000 which is a small 32 * UDELAY_MULT = 2^31 * HZ / 1000000 33 * = (2^31 / 1000000) * HZ 34 * = 2147.483648 * HZ 35 * = 2147 * HZ + 483648 * HZ / 1000000 [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/mac/ |
| H A D | macboing.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Mac bong noise generator. Note - we ought to put a boingy noise 6 * ---------------------------------------------------------------------- 10 * Juergen Mellinger (juergen.mellinger@t-online.de) 21 * dumb triangular wave table 26 * Alan's original sine table; needs interpolating to 0x800 27 * (hint: interpolate or hardwire [0 -> Pi/2[, it's symmetric) 31 0, -39, -75, -103, -121, -127, -121, -103, -75, -39 44 static unsigned long mac_bell_phase; /* 0..2*Pi -> 0..0x800 (wavetable size) */ 78 switch ( macintosh_config->ident ) in mac_init_asc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
| H A D | mali_kbase_devfreq.c | 3 * (C) COPYRIGHT 2014-2017 ARM Limited. All rights reserved. 12 * Boston, MA 02110-1301, USA. 60 * opp_translate - Translate nominal OPP frequency from devicetree into real 63 * @freq: Nominal frequency 68 * This function will only perform translation if an operating-points-v2-mali 69 * table is present in devicetree. If one is not present then it will return an 73 unsigned long freq, u64 *core_mask) in opp_translate() argument 77 for (i = 0; i < kbdev->num_opps; i++) { in opp_translate() 78 if (kbdev->opp_table[i].opp_freq == freq) { in opp_translate() 79 *core_mask = kbdev->opp_table[i].core_mask; in opp_translate() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/dvfs/ |
| H A D | rockchip_wtemp_dvfs.c | 1 // SPDX-License-Identifier: GPL-2.0 21 * 1. U-Boot parse cpu/dmc opp table from kernel dtb, anyone of 22 * "rockchip,low-temp = <...>" and "rockchip,high-temp = <...>" present in 25 * 1.1. When temperature trigger "rockchip,low-temp", increase 50mv voltage 26 * as target voltage. If target voltage is over "rockchip,max-volt", 27 * just set "rockchip,max-volt" as target voltage and lower 2 level freq, 29 * 1.2. When temperature trigger "rockchip,high-temp", just apply opp table[0] 30 * voltage and freq. 32 * 2. U-Boot parse cpu/dmc thermal zone "trip-point-0" temperature from kernel 43 * uboot-wide-temperature { [all …]
|