Home
last modified time | relevance | path

Searched +full:prescaler +full:- +full:exponent (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/Documentation/devicetree/bindings/power/supply/
Dlltc,ltc294x.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
17 - Sebastian Reichel <sre@kernel.org>
20 - $ref: power-supply.yaml#
25 - lltc,ltc2941
26 - lltc,ltc2942
27 - lltc,ltc2943
28 - lltc,ltc2944
33 lltc,resistor-sense:
[all …]
/Linux-v6.1/drivers/power/supply/
Dltc2941-battery-gauge.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/devm-helpers.h>
85 return ((Q * (info->Qlsb / 10))) / 100; in convert_bin_to_uAh()
93 Q = (uAh * 100) / (info->Qlsb/10); in convert_uAh_to_bin()
104 msgs[0].addr = client->addr; in ltc294x_read_regs()
108 msgs[1].addr = client->addr; in ltc294x_read_regs()
113 ret = i2c_transfer(client->adapter, &msgs[0], 2); in ltc294x_read_regs()
115 dev_err(&client->dev, "ltc2941 read_reg(0x%x[%d]) failed: %pe\n", in ltc294x_read_regs()
120 dev_dbg(&client->dev, "%s (%#x, %d) -> %#x\n", in ltc294x_read_regs()
134 dev_err(&client->dev, "ltc2941 write_reg(0x%x[%d]) failed: %pe\n", in ltc294x_write_regs()
[all …]
/Linux-v6.1/drivers/clocksource/
Dtimer-cadence-ttc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2011-2013 Xilinx
22 * This driver configures the 2 16/32-bit count-up timers as follows:
29 * common to all the timer channels (T1, T2, and T3). With a pre-scaler of 32,
33 * obtained from device tree. The pre-scaler of 32 is used.
54 * Setup the timers to use pre-scaling, using a fixed value for now that will
58 #define PRESCALE 2048 /* The exponent must match this */
59 #define CLK_CNTRL_PRESCALE ((PRESCALE_EXPONENT - 1) << 1)
66 * struct ttc_timer - This definition defines local timer structure
104 * ttc_set_interval - Set the timer interval value
[all …]
/Linux-v6.1/drivers/iio/adc/
Dat91-sama5d2_adc.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/dma-mapping.h>
31 #include <linux/nvmem-consumer.h>
36 #include <dt-bindings/iio/adc/at91-sama5d2_adc.h>
74 /* Prescaler Rate Selection */
110 /* Interrupt Enable Register - TS X measurement ready */
112 /* Interrupt Enable Register - TS Y measurement ready */
114 /* Interrupt Enable Register - TS pressure measurement ready */
116 /* Interrupt Enable Register - Data ready */
118 /* Interrupt Enable Register - general overrun error */
[all …]
/Linux-v6.1/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c2 Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc.
52 /*-----------------------------------------------------------------------------
54 ----------------------------------------------------------------------------*/
74 #define DRX39XX_MAIN_FIRMWARE "dvb-fe-drxj-mc-1.0.8.fw"
200 /*-----------------------------------------------------------------------------
202 ----------------------------------------------------------------------------*/
204 /*-----------------------------------------------------------------------------
206 ----------------------------------------------------------------------------*/
208 #define DRXJ_WAKE_UP_KEY (demod->my_i2c_dev_addr->i2c_addr)
437 #define AUD_VOLUME_DB_MIN -60
[all …]