/openbmc/u-boot/drivers/clk/ |
H A D | mpc83xx_clk.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * enum ratio - Description of a core clock ratio 9 * @RAT_UNK: Unknown ratio 11 * @RAT_1_TO_8: Ratio 1:8 12 * @RAT_1_TO_4: Ratio 1:4 13 * @RAT_1_TO_2: Ratio 1:2 14 * @RAT_1_TO_1: Ratio 1:1 15 * @RAT_1_5_TO_1: Ratio 1.5:1 16 * @RAT_2_TO_1: Ratio 2:1 17 * @RAT_2_5_TO_1: Ratio 2.5:1 [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_esai.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "imx-pcm.h" 25 * struct fsl_esai_soc_data - soc specific data 33 * struct fsl_esai - ESAI private data 38 * @coreclk: clock source to access register 39 * @extalclk: esai clock source to derive HCK, SCK and FS 40 * @fsysclk: system clock source to derive HCK, SCK and FS 41 * @spbaclk: SPBA clock (optional, depending on SoC design) 43 * @soc: soc specific data 51 * @hck_rate: clock rate of desired HCKx clock [all …]
|
H A D | fsl_asrc.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/dma-mapping.h> 14 #include <linux/dma/imx-dma.h> 26 dev_err(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__) 29 dev_dbg(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__) 32 dev_warn(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__) 125 * Check if the divider is available for internal ratio mode 159 * fsl_asrc_sel_proc - Select the pre-processing and post-processing options 162 * @pre_proc: return value for pre-processing option 163 * @post_proc: return value for post-processing option [all …]
|
H A D | fsl_sai.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 // Copyright 2012-2015 Freescale Semiconductor, Inc. 23 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 27 #include "imx-pcm.h" 45 * fsl_sai_dir_is_synced - Check if stream is synced by the opposite stream 59 return !sai->synchronous[dir] && sai->synchronous[adir]; in fsl_sai_dir_is_synced() 66 if (sai->is_pdm_mode) { in fsl_sai_get_pins_state() 69 state = pinctrl_lookup_state(sai->pinctrl, "dsd512"); in fsl_sai_get_pins_state() 73 state = pinctrl_lookup_state(sai->pinctrl, "dsd"); in fsl_sai_get_pins_state() 77 state = pinctrl_lookup_state(sai->pinctrl, "pcm_b2m"); in fsl_sai_get_pins_state() [all …]
|
/openbmc/linux/drivers/gpu/drm/display/ |
H A D | drm_scdc_helper.c | 17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 36 * Status and Control Data Channel (SCDC) is a mechanism introduced by the 37 * HDMI 2.0 specification. It is a point-to-point protocol that allows the 38 * HDMI source and HDMI sink to exchange data. The same I2C interface that 58 * drm_scdc_read - read a block of data from SCDC 64 * Reads a block of data from SCDC, starting at a given offset. 91 return -EPROTO; in drm_scdc_read() 98 * drm_scdc_write - write a block of data to SCDC 101 * @buffer: block of data to write 104 * Writes a block of data to SCDC, starting at a given offset. [all …]
|
/openbmc/u-boot/drivers/ddr/marvell/axp/ |
H A D | ddr3_dfs.c | 1 // SPDX-License-Identifier: GPL-2.0 72 /* Poll - Wait for Refresh operation completion */ in wait_refresh_op_complete() 81 * Desc: Finds CPU/DDR frequency ratio according to Sample@reset and table. 82 * Args: target_freq - target frequency 84 * Returns: freq_par - the ratio parameter 95 /* Find the ratio between PLL frequency and ddr-clk */ in ddr3_get_freq_parameter() 108 * Args: freq - target frequency 110 * Returns: MV_OK - success, MV_FAIL - fail 119 DEBUG_DFS_C("DDR3 - DFS - High To Low - Starting DFS procedure to Frequency - ", in ddr3_dfs_high_2_low() 122 /* target frequency - 100MHz */ in ddr3_dfs_high_2_low() [all …]
|
/openbmc/openbmc/meta-nuvoton/recipes-nuvoton/program-edid/program-edid/ |
H A D | edid.json | 4 "Aspect ratio (landscape)": null, 5 "Aspect ratio (portrait)": null, 8 "DPM active-off supported": true, 63 "Pixel clock (MHz)": 154.0, 70 "Horizontal sync (outside of V-sync)": "Positive", 98 "Pixel clock (MHz)": 25.17, 105 "Horizontal sync (outside of V-sync)": "Positive", 116 "Pixel clock (MHz)": 170, 125 "Data string": "BenQ 241W", 166 "Ratio": "4:3", string [all …]
|
/openbmc/linux/drivers/media/platform/ti/omap3isp/ |
H A D | ispresizer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * TI OMAP3 ISP - Resizer module 42 * "TRM ES3.1, table 12-46" 52 * Constants for ratio calculation 59 * 7-tap mode is for scale factors 0.25x to 0.5x. 60 * 4-tap mode is for scale factors 0.5x to 4.0x. 64 /* For 8-phase 4-tap horizontal filter: */ 75 /* For 8-phase 4-tap vertical filter: */ 86 /* For 4-phase 7-tap horizontal filter: */ 94 /* For 4-phase 7-tap vertical filter: */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/interconnect/ |
H A D | samsung,exynos-bus.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/interconnect/samsung,exynos-bus.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chanwoo Choi <cw00.choi@samsung.com> 11 - Krzysztof Kozlowski <krzk@kernel.org> 14 The Samsung Exynos SoC has many buses for data transfer between DRAM and 15 sub-blocks in SoC. Most Exynos SoCs share the common architecture for buses. 16 Generally, each bus of Exynos SoC includes a source clock and a power line, 17 which are able to change the clock frequency of the bus in runtime. To [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs4270.c | 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 15 * - Software mode is supported. Stand-alone mode is not supported. 16 * - Only I2C is supported, not SPI 17 * - Support for master and slave mode 18 * - The machine driver's 'startup' function must call 20 * - Only I2S and left-justified modes are supported 21 * - Power management is supported 51 #define CS4270_NUMREGS (CS4270_LASTREG - CS4270_FIRSTREG + 1) 101 /* Power-on default values for the registers 103 * This array contains the power-on default values of the registers, with the [all …]
|
H A D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 27 * MCLK/LRCK ratios, but we also add ratio 400, which is commonly used on 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), [all …]
|
/openbmc/u-boot/drivers/clk/sifive/ |
H A D | wrpll-cln28hpc.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * The bulk of this code is primarily useful for clock configurations 25 * that must operate at arbitrary rates, as opposed to clock configurations 27 * pre-determined set of performance points. 30 * - Analog Bits "Wide Range PLL Datasheet", version 2015.10.01 31 * - SiFive FU540-C000 Manual v1p0, Chapter 7 "Clocking and Reset" 39 #include "analogbits-wrpll-cln28hpc.h" 41 /* MIN_INPUT_FREQ: minimum input clock frequency, in Hz (Fref_min) */ 44 /* MAX_INPUT_FREQ: maximum input clock frequency, in Hz (Fref_max) */ 47 /* MIN_POST_DIVIDE_REF_FREQ: minimum post-divider reference frequency, in Hz */ [all …]
|
/openbmc/linux/drivers/clk/analogbits/ |
H A D | wrpll-cln28hpc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2018-2019 SiFive, Inc. 13 * The bulk of this code is primarily useful for clock configurations 14 * that must operate at arbitrary rates, as opposed to clock configurations 16 * pre-determined set of performance points. 19 * - Analog Bits "Wide Range PLL Datasheet", version 2015.10.01 20 * - SiFive FU540-C000 Manual v1p0, Chapter 7 "Clocking and Reset" 21 * https://static.dev.sifive.com/FU540-C000-v1.0.pdf 32 #include <linux/clk/analogbits-wrpll-cln28hpc.h> 34 /* MIN_INPUT_FREQ: minimum input clock frequency, in Hz (Fref_min) */ [all …]
|
/openbmc/linux/Documentation/admin-guide/thermal/ |
H A D | intel_powerclamp.rst | 6 - Arjan van de Ven <arjan@linux.intel.com> 7 - Jacob Pan <jacob.jun.pan@linux.intel.com> 12 - Goals and Objectives 15 - Idle Injection 16 - Calibration 19 - Effectiveness and Limitations 20 - Power vs Performance 21 - Scalability 22 - Calibration 23 - Comparison with Alternative Techniques [all …]
|
/openbmc/u-boot/arch/arm/mach-omap2/am33xx/ |
H A D | ti816x_emif4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include <asm/arch/clock.h> 48 * value is a ratio - so 0x100 represents one cycle. The real delay in ddr_init_settings() 56 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x0F0); /* data0 writelvl init ratio */ in ddr_init_settings() 58 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x194); /* data1 writelvl init ratio */ in ddr_init_settings() 60 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x238); /* data2 writelvl init ratio */ in ddr_init_settings() 62 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x2dc); /* data3 writelvl init ratio */ in ddr_init_settings() 66 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x0FC); /* data0 gatelvl init ratio */ in ddr_init_settings() 68 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x1A0); /* data1 gatelvl init ratio */ in ddr_init_settings() 70 writel((0x20 << 10) | 0x20, DDRPHY_CONFIG_BASE + 0x244); /* data2 gatelvl init ratio */ in ddr_init_settings() [all …]
|
/openbmc/linux/drivers/fpga/ |
H A D | socfpga-a10.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2016 Altera Corporation 10 #include <linux/fpga/fpga-mgr.h> 54 /* FPGA CD Ratio Value */ 65 * struct a10_fpga_priv - private data for fpga manager 67 * @fpga_data_addr: iomap for single address data register to FPGA 68 * @clk: clock 123 regmap_update_bits(priv->regmap, A10_FPGAMGR_IMGCFG_CTL_02_OFST, in socfpga_a10_fpga_set_cfg_width() 133 regmap_write(priv->regmap, A10_FPGAMGR_DCLKSTAT_OFST, in socfpga_a10_fpga_generate_dclks() 137 regmap_write(priv->regmap, A10_FPGAMGR_DCLKCNT_OFST, count); in socfpga_a10_fpga_generate_dclks() [all …]
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | cctrng.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2019-2020 ARM Limited or its affiliates. */ 23 #define CC_REG_HIGH(name) (CC_REG_LOW(name) + name ## _BIT_SIZE - 1) 32 /* data circular buffer in words must be: 33 * - of a power-of-2 size (limitation of circ_buf.h macros) 34 * - at least 6, the size generated in the EHR according to HW implementation 41 * - SAMPLE_CNT is input value from the characterisation process 42 * - all the rest are constants 59 * Value of 0 indicates non-valid rosc 68 /* pending_hw - 1 when HW is pending, 0 when it is idle */ [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s3c-camif/ |
H A D | camif-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 #include <media/media-device.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-ioctl.h> 30 #include <media/videobuf2-v4l2.h> 31 #include <media/videobuf2-dma-contig.h> 33 #include "camif-core.h" 36 /* HCLK CAMIF clock */ 38 /* CAMIF / external camera sensor master clock */ 94 * s3c_camif_find_format() - lookup camif color format by fourcc or an index [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | opp2xxx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * opp2xxx.h - macros for old-style OMAP2xxx "OPP" definitions 5 * Copyright (C) 2005-2009 Texas Instruments, Inc. 6 * Copyright (C) 2004-2009 Nokia Corporation 8 * Richard Woodruff <r-woodruff2@ti.com> 13 * these combinations is via the 'ratio's' which the clocks operate with 14 * respect to each other. These ratio sets are for a given voltage/DPLL 15 * setting. All configurations can be described by a DPLL setting and a ratio 16 * There are 3 ratio sets for the 2430 and X ratio sets for 2420. 19 * They both have a slightly different clock domain setup. 2420(iva1,dsp) vs [all …]
|
H A D | opp2430_data.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * opp2430_data.c - old-style "OPP" table for OMAP2430 5 * Copyright (C) 2005-2009 Texas Instruments, Inc. 6 * Copyright (C) 2004-2009 Nokia Corporation 8 * Richard Woodruff <r-woodruff2@ti.com> 14 * respect to each other. These ratio sets are for a given voltage/DPLL 15 * setting. All configurations can be described by a DPLL setting and a ratio. 18 * They both have a slightly different clock domain setup. 2420(iva1,dsp) vs 21 * XXX Missing voltage data. 25 * OPP API exists, the data in this file should be converted to use it. [all …]
|
/openbmc/linux/drivers/devfreq/ |
H A D | exynos-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/devfreq-event.h> 38 unsigned int ratio; member 42 * Control the devfreq-event device to get the current state of bus 49 for (i = 0; i < bus->edev_count; i++) { \ 50 if (!bus->edev[i]) \ 52 ret = devfreq_event_##ops(bus->edev[i]); \ 70 for (i = 0; i < bus->edev_count; i++) { in exynos_bus_get_event() 71 if (!bus->edev[i]) in exynos_bus_get_event() 74 ret = devfreq_event_get_event(bus->edev[i], &event_data); in exynos_bus_get_event() [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | pata_pdc2027x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 1998-2002 Andre Hedrick <andre@linux-ide.org> 15 * as Documentation/driver-api/libata.rst 65 * ATA Timing Tables based on 133MHz controller clock. 66 * These tables are only used when the controller is in 133MHz clock. 67 * If the controller is in 100MHz clock, the ASIC hardware will 69 * is issued to the device. However, if the controller clock is 133MHz, 170 * port_mmio - Get the MMIO address of PDC2027x extended registers 176 return ap->host->iomap[PDC_MMIO_BAR] + ap->port_no * 0x100 + offset; in port_mmio() 180 * dev_mmio - Get the MMIO address of PDC2027x extended registers [all …]
|
/openbmc/linux/drivers/clk/mvebu/ |
H A D | ap-cpu-clk.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Marvell Armada AP CPU Clock Controller 11 #define pr_fmt(fmt) "ap-cpu-clk: " fmt 13 #include <linux/clk-provider.h> 34 * @divider_reg: full integer ratio from PLL frequency to CPU clock frequency 35 * @force_reg: request to force new ratio regardless of relation to other clocks 127 * struct ap806_clk: CPU cluster clock controller instance 128 * @cluster: Cluster clock controller index 129 * @clk_name: Cluster clock controller name 130 * @dev : Cluster clock device [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | sc27xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/nvmem-consumer.h> 63 /* Timeout (us) for ADC data conversion according to ADC datasheet */ 70 /* ADC voltage ratio definition */ 101 * address and ratio, we should save ratio config and base 102 * in the device data structure. 111 void (*init_scale)(struct sc27xx_adc_data *data); 126 * should use the small-scale graph, and if more than 1.2v, we should use the 127 * big-scale graph. 161 return ((calib_data & 0xff) + calib_adc - 128) * 4; in sc27xx_adc_get_calib_data() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | cx24110.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 cx24110 - Single Chip Satellite Channel Receiver driver module 5 Copyright (C) 2002 Peter Hettkamp <peter.hettkamp@htp-tel.de> based on 40 static struct {u8 reg; u8 data;} cx24110_regdata[]= member 50 {0x07,0x01}, /* @ Fclk, i.e. sampling clock, 60MHz */ 52 {0x0b,0x01}, /* set output clock in gapped mode, start signal low 54 {0x0c,0x11}, /* no parity bytes, large hold time, serial data out */ 74 /* leave front-end AGC parameters at default values */ 82 {0x41,0x00}, /* @ MSB of front-end derotator frequency */ 88 /* the cx24108 data sheet for symbol rates above 15MS/s */ [all …]
|