/openbmc/linux/sound/soc/codecs/ |
H A D | ssm2518.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 15 #include <linux/gpio/consumer.h> 141 static const DECLARE_TLV_DB_MINMAX_MUTE(ssm2518_vol_tlv, -7125, 2400); 142 static const DECLARE_TLV_DB_SCALE(ssm2518_compressor_tlv, -3400, 200, 0); 143 static const DECLARE_TLV_DB_SCALE(ssm2518_expander_tlv, -8100, 300, 0); 144 static const DECLARE_TLV_DB_SCALE(ssm2518_noise_gate_tlv, -9600, 300, 0); 145 static const DECLARE_TLV_DB_SCALE(ssm2518_post_drc_tlv, -2400, 300, 0); 148 0, 7, TLV_DB_SCALE_ITEM(-2200, 200, 0), 149 7, 15, TLV_DB_SCALE_ITEM(-800, 100, 0), [all …]
|
H A D | wm5100-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5100-tables.c -- WM5100 ALSA SoC Audio driver data 5 * Copyright 2011-2 Wolfson Microelectronics plc 815 { 0x0000, 0x0000 }, /* R0 - software reset */ 816 { 0x0001, 0x0000 }, /* R1 - Device Revision */ 817 { 0x0010, 0x0801 }, /* R16 - Ctrl IF 1 */ 818 { 0x0020, 0x0000 }, /* R32 - Tone Generator 1 */ 819 { 0x0030, 0x0000 }, /* R48 - PWM Drive 1 */ 820 { 0x0031, 0x0100 }, /* R49 - PWM Drive 2 */ 821 { 0x0032, 0x0100 }, /* R50 - PWM Drive 3 */ [all …]
|
H A D | rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5651.c -- RT5651 ALSA SoC audio codec driver 13 #include <linux/gpio/consumer.h> 23 #include <sound/soc-dapm.h> 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 369 * set_dmic_clk - Set parameter of dmic. 379 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() [all …]
|
/openbmc/u-boot/board/hisilicon/hikey/ |
H A D | hikey.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 #include <asm-generic/gpio.h> 17 #include <asm/arch/gpio.h> 127 return -1; in board_uart_init() 185 hi6220_clk_enable(PERI_CLK0_USBOTG, &peri_sc->clk0_en); in board_usb_init() 190 &peri_sc->rst0_dis); in board_usb_init() 192 data = readl(&peri_sc->rst0_stat); in board_usb_init() 198 data = readl(&peri_sc->ctrl5); in board_usb_init() 202 writel(data, &peri_sc->ctrl5); in board_usb_init() 207 data = readl(&peri_sc->ctrl4); in board_usb_init() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs35l45.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com> 11 - Richard Fitzgerald <rf@opensource.cirrus.com> 18 - $ref: dai-common.yaml# 23 - cirrus,cs35l45 28 '#sound-dai-cells': 31 reset-gpios: 34 vdd-a-supply: [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-is31fl319x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2015-16 Golden Delicious Computers 20 #include <linux/gpio/consumer.h> 129 return true; /* always write-through */ in is31fl3190_volatile_reg() 161 return true; /* always write-through */ in is31fl3196_volatile_reg() 196 struct is31fl319x_chip *is31 = led->chip; in is31fl3190_brightness_set() 197 int chan = led - is31->leds; in is31fl3190_brightness_set() 202 dev_dbg(&is31->client->dev, "channel %d: %d\n", chan, brightness); in is31fl3190_brightness_set() 204 mutex_lock(&is31->lock); in is31fl3190_brightness_set() 207 ret = regmap_write(is31->regmap, IS31FL3190_PWM(chan), brightness); in is31fl3190_brightness_set() [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | mxs-auart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright 2014 Oleksij Rempel <linux@rempel-privat.de> 11 * Copyright 2008-2010 Freescale Semiconductor, Inc. 34 #include <linux/dma-mapping.h> 37 #include <linux/gpio/consumer.h> 90 #define AUART_LINECTRL_WLEN(v) ((((v) - 5) & 0x3) << 5) 138 * RW. Receive Timeout Counter Value: number of 8-bit-time to wait before 140 * input is idle, then the watchdog counter will decrement each bit-time. Note 141 * 7-bit-time is added to the programmed value, so a value of zero will set 142 * the counter to 7-bit-time, a value of 0x1 gives 15-bit-time and so on. Also [all …]
|
/openbmc/linux/sound/pci/oxygen/ |
H A D | xonar_wm87x6.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * -------- 14 * SPI 0 -> WM8766 (surround, center/LFE, back) 15 * SPI 1 -> WM8776 (front, input) 17 * GPIO 4 <- headphone detect, 0 = plugged 18 * GPIO 6 -> route input jack to mic-in (0) or line-in (1) 19 * GPIO 7 -> enable output to front L/R speaker channels 20 * GPIO 8 -> enable output to other speaker channels and front panel headphone 24 * input 1 <- line 25 * input 2 <- mic [all …]
|
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/ |
H A D | tegra_i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright 2010-2011 NVIDIA Corporation 20 I2C_IS_10_BIT_ADDRESS = 0x2, /* for 10-bit I2C slave address */ 23 I2C_SOFTWARE_CONTROLLER = 0x10, /* for I2C transfer using GPIO */ 55 u32 ctrl2; /* 04: DVC_CTRL_REG2 */ member 151 * @return number of bus, or -1 if there is no DVC active
|
/openbmc/linux/drivers/input/joystick/ |
H A D | as5011.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * - Power on the chip when open() and power down when close() 10 * - Manage power mode 16 #include <linux/gpio.h> 51 /* CTRL2 bits */ 57 #define AS5011_MIN_AXIS (-80) 75 .addr = client->addr, in as5011_i2c_write() 82 error = i2c_transfer(client->adapter, &msg, 1); in as5011_i2c_write() 92 .addr = client->addr, in as5011_i2c_read() 98 .addr = client->addr, in as5011_i2c_read() [all …]
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pcie-designware.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/gpio/consumer.h> 24 #include "pcie-designware.h" 46 [DW_PCIE_NON_STICKY_RST] = "non-sticky", 60 pci->app_clks[i].id = dw_pcie_app_clks[i]; in dw_pcie_get_clocks() 63 pci->core_clks[i].id = dw_pcie_core_clks[i]; in dw_pcie_get_clocks() 65 ret = devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_APP_CLKS, in dw_pcie_get_clocks() 66 pci->app_clks); in dw_pcie_get_clocks() 70 return devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_CORE_CLKS, in dw_pcie_get_clocks() 71 pci->core_clks); in dw_pcie_get_clocks() [all …]
|
/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | ksz8795.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/gpio.h> 16 #include <linux/platform_data/microchip-ksz.h> 47 regs = dev->info->regs; in ksz8_ind_write8() 49 mutex_lock(&dev->alu_mutex); in ksz8_ind_write8() 56 mutex_unlock(&dev->alu_mutex); in ksz8_ind_write8() 81 u8 ctrl2 = 0; in ksz8863_change_mtu() local 84 ctrl2 |= KSZ8863_LEGAL_PACKET_ENABLE; in ksz8863_change_mtu() 86 ctrl2 |= KSZ8863_HUGE_PACKET_ENABLE; in ksz8863_change_mtu() 89 KSZ8863_HUGE_PACKET_ENABLE, ctrl2); in ksz8863_change_mtu() [all …]
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_f30.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016 Synaptics Incorporated 89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters() 90 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_read_control_parameters() 92 dev_err(&fn->dev, in rmi_f30_read_control_parameters() 94 __func__, fn->fd.control_base_addr, error); in rmi_f30_read_control_parameters() 106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button() 107 bool key_down = !(f30->data_regs[reg_num] & BIT(bit_num)); in rmi_f30_report_button() 109 if (f30->trackstick_buttons && in rmi_f30_report_button() 112 rmi_f03_overwrite_button(f30->f03, key_code, key_down); in rmi_f30_report_button() [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 5 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. 9 * - JMicron (hardware and technical support) 19 #include <linux/dma-mapping.h> 33 #include <linux/mmc/slot-gpio.h> 40 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 43 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 73 SDHCI_DUMP("Wake-up: 0x%08x | Clock: 0x%08x\n", in sdhci_dumpregs() 100 if (host->flags & SDHCI_USE_ADMA) { in sdhci_dumpregs() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | pic32_spi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 #include <asm/gpio.h> 19 #include <dt-bindings/clock/microchip,clock.h> 30 struct pic32_reg_atomic ctrl2; member 67 u32 speed_hz; /* spi-clk rate */ 84 writel(PIC32_SPI_CTRL_ON, &priv->regs->ctrl.set); in pic32_spi_enable() 89 writel(PIC32_SPI_CTRL_ON, &priv->regs->ctrl.clr); in pic32_spi_disable() 94 u32 sr = readl(&priv->regs->status.raw); in pic32_spi_rx_fifo_level() 101 u32 sr = readl(&priv->regs->status.raw); in pic32_spi_tx_fifo_level() 111 tx_left = (priv->tx_end - priv->tx) / n_bytes; in pic32_tx_max() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov2659.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/gpio/consumer.h> 20 #include <media/v4l2-ctrls.h> 21 #include <media/v4l2-event.h> 22 #include <media/v4l2-fwnode.h> 23 #include <media/v4l2-image-sizes.h> 24 #include <media/v4l2-subdev.h> 182 u8 ctrl2; member 833 msg.addr = client->addr; in ov2659_write() 834 msg.flags = client->flags; in ov2659_write() [all …]
|
H A D | ov2640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright 2005-2009 Freescale Semiconductor, Inc. All Rights Reserved. 19 #include <linux/gpio/consumer.h> 20 #include <linux/v4l2-mediabus.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-event.h> 25 #include <media/v4l2-subdev.h> 26 #include <media/v4l2-ctrls.h> 27 #include <media/v4l2-image-sizes.h> 70 #define CTRL2 0x86 /* DSP Module enable 2 */ macro [all …]
|
H A D | ov2680.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved. 9 * Copyright (C) 2014-2017 Mentor Graphics Inc. 16 #include <linux/gpio/consumer.h> 25 #include <media/v4l2-cci.h> 26 #include <media/v4l2-common.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-fwnode.h> 29 #include <media/v4l2-subdev.h> 79 /* Fixed pre-div of 1/2 */ [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-pic32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/dma-mapping.h> 39 u32 ctrl2; member 88 #define CTRL2_TX_UR_EN BIT(10) /* Enable int on Tx under-run */ 89 #define CTRL2_RX_OV_EN BIT(11) /* Enable int on Rx over-run */ 105 u32 speed_hz; /* spi-clk rate */ 125 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_set); in pic32_spi_enable() 130 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_clr); in pic32_spi_disable() 140 /* div = (clk_in / 2 * spi_ck) - 1 */ in pic32_spi_set_clk_rate() 141 div = DIV_ROUND_CLOSEST(clk_get_rate(pic32s->clk), 2 * spi_ck) - 1; in pic32_spi_set_clk_rate() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | cs47l24-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 return regmap_register_patch(arizona->regmap, in cs47l24_patch() 183 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ 184 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */ 185 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */ 186 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */ 187 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */ 188 { 0x00000024, 0x0000 }, /* R36 - Tone Generator 5 */ 189 { 0x00000030, 0x0000 }, /* R48 - PWM Drive 1 */ 190 { 0x00000031, 0x0100 }, /* R49 - PWM Drive 2 */ [all …]
|
H A D | wm8998-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8998-tables.c -- data tables for wm8998-class codecs 45 return regmap_register_patch(arizona->regmap, in wm8998_patch() 177 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ 178 { 0x0000000B, 0x001A }, /* R11 - Ctrl IF I2C1 CFG 2 */ 179 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */ 180 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */ 181 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */ 182 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */ 183 { 0x00000024, 0x0000 }, /* R36 - Tone Generator 5 */ [all …]
|
H A D | wm8997-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8997-tables.c -- WM8997 data tables 30 switch (arizona->rev) { in wm8997_patch() 32 return regmap_register_patch(arizona->regmap, in wm8997_patch() 156 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ 157 { 0x00000016, 0x0000 }, /* R22 - Write Sequencer Ctrl 0 */ 158 { 0x00000017, 0x0000 }, /* R23 - Write Sequencer Ctrl 1 */ 159 { 0x00000018, 0x0000 }, /* R24 - Write Sequencer Ctrl 2 */ 160 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */ 161 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */ [all …]
|
H A D | cs47l35-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2017 Cirrus Logic 55 ret = regmap_register_patch(madera->regmap, cs47l35_reva_16_patch, in cs47l35_patch() 58 dev_err(madera->dev, "Error applying patch: %d\n", ret); in cs47l35_patch() 65 { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */ 66 { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */ 67 { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */ 68 { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */ 69 { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */ 70 { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */ [all …]
|
H A D | wm5102-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5102-tables.c -- WM5102 data tables 83 switch (arizona->rev) { in wm5102_patch() 93 return regmap_multi_reg_write_bypassed(arizona->regmap, in wm5102_patch() 244 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ 245 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ 246 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */ 247 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */ 248 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */ 249 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */ [all …]
|
H A D | wm5110-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5110-tables.c -- WM5110 data tables 262 switch (arizona->rev) { in wm5110_patch() 264 return regmap_register_patch(arizona->regmap, in wm5110_patch() 268 return regmap_register_patch(arizona->regmap, in wm5110_patch() 272 return regmap_register_patch(arizona->regmap, in wm5110_patch() 276 return regmap_register_patch(arizona->regmap, in wm5110_patch() 673 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ 674 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ 675 { 0x0000000A, 0x0001 }, /* R10 - Ctrl IF I2C2 CFG 1 */ [all …]
|