Home
last modified time | relevance | path

Searched +full:flash +full:- +full:mode (Results 1 – 25 of 1033) sorted by relevance

12345678910>>...42

/openbmc/linux/drivers/media/i2c/
H A Dlm3646.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * General device driver for TI lm3646, Dual FLASH LED Driver
9 * Ldd-Mlp <ldd-mlp@list.ti.com>
19 #include <media/v4l2-ctrls.h>
20 #include <media/v4l2-device.h>
61 * @led_mode: V4L2 LED mode
64 * @mode_reg : mode register value
78 container_of(_ctrl->handler, struct lm3646_flash, ctrls_led)
80 /* enable mode control */
81 static int lm3646_mode_ctrl(struct lm3646_flash *flash, in lm3646_mode_ctrl() argument
[all …]
/openbmc/linux/drivers/staging/media/atomisp/i2c/
H A Datomisp-lm3554.c1 // SPDX-License-Identifier: GPL-2.0
3 * LED flash driver for LM3554
5 * Copyright (c) 2010-2012 Intel Corporation. All Rights Reserved.
26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-device.h>
69 unsigned int mode; member
82 static int lm3554_write(struct lm3554 *flash, u8 addr, u8 val) in lm3554_write() argument
84 struct i2c_client *client = v4l2_get_subdevdata(&flash->sd); in lm3554_write()
89 dev_dbg(&client->dev, "Write Addr:%02X Val:%02X %s\n", addr, val, in lm3554_write()
96 static int lm3554_read(struct lm3554 *flash, u8 addr) in lm3554_read() argument
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-flash.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _flash-controls:
6 Flash Control Reference
9 The V4L2 flash controls are intended to provide generic access to flash
10 controller devices. Flash controller devices are typically used in
13 The interface can support both LED and xenon flash devices. As of
14 writing this, there is no xenon flash driver using this interface.
17 .. _flash-controls-use-cases:
23 Unsynchronised LED flash (software strobe)
24 ------------------------------------------
[all …]
/openbmc/linux/Documentation/leds/
H A Dleds-lm3556.rst6 1.5 A Synchronous Boost LED Flash Driver w/ High-Side Current Source
10 - Daniel Jeong
12 Contact:Daniel Jeong(daniel.jeong-at-ti.com, gshark.jeong-at-gmail.com)
15 -----------
16 There are 3 functions in LM3556, Flash, Torch and Indicator.
18 Flash Mode
21 In Flash Mode, the LED current source(LED) provides 16 target current levels
22 from 93.75 mA to 1500 mA.The Flash currents are adjusted via the CURRENT
23 CONTROL REGISTER(0x09).Flash mode is activated by the ENABLE REGISTER(0x0A),
26 LM3556 Flash can be controlled through /sys/class/leds/flash/brightness file
[all …]
H A Dleds-class-flash.rst2 Flash LED handling under Linux
5 Some LED devices provide two modes - torch and flash. In the LED subsystem
6 those modes are supported by LED class (see Documentation/leds/leds-class.rst)
7 and LED Flash class respectively. The torch mode related features are enabled
8 by default and the flash ones only if a driver declares it by setting
11 In order to enable the support for flash LEDs CONFIG_LEDS_CLASS_FLASH symbol
12 must be defined in the kernel config. A LED Flash class driver must be
15 Following sysfs attributes are exposed for controlling flash LED devices:
16 (see Documentation/ABI/testing/sysfs-class-led-flash)
18 - flash_brightness
[all …]
/openbmc/linux/drivers/spi/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 dynamic device discovery; some are even write-only or read-only.
16 eeprom and flash memory, codecs and various other controller
17 chips, analog to digital (and d-to-a) converters, and more.
44 If your system has an master-capable SPI controller (which
56 by providing a high-level interface to send memory-like commands.
86 This enables master mode support for the SPIFC (SPI flash
112 tristate "Aspeed flash controllers in SPI mode"
118 to SPI NOR chips, and support for the SPI flash memory
143 This enables support for the Quad SPI controller in master mode.
[all …]
/openbmc/u-boot/doc/SPI/
H A DREADME.ti_qspi_flash1 QSPI U-Boot support
2 ------------------
4 Host processor is connected to serial flash device via qpsi
11 from Quad SPI flash devices.
14 -------
16 MLO/u-boot.img will be flashed from SD/MMC to the flash device
17 using serial flash erase and write commands. Then, switch settings
19 from the predefined location in the flash, where it was flashed and
21 u-boot.img from flash and execute it from SDRAM.
23 SPI mode
[all …]
/openbmc/linux/drivers/mtd/devices/
H A Dspear_smi.c2 * SMI (Serial Memory Controller) device driver for Serial NOR Flash on
60 #define SW_MODE (0x1 << 28) /* enables SW Mode */
61 #define WB_MODE (0x1 << 29) /* Write Burst Mode */
62 #define FAST_MODE (0x1 << 15) /* Fast Mode */
90 /* flash opcodes */
93 /* Flash Device Ids maintenance section */
95 /* data structure to maintain flash ids from different vendors */
157 * struct spear_smi - Structure for SMI Device
165 * @cmd_complete: queue to wait for command completion of NOR-flash.
167 * @flash: separate structure for each Serial NOR-flash attached to SMI.
[all …]
H A Ddocg3.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Handles the M-Systems DiskOnChip G3 chip
14 * Flash memory areas :
15 * - 0x0000 .. 0x07ff : IPL
16 * - 0x0800 .. 0x0fff : Data area
17 * - 0x1000 .. 0x17ff : Registers
18 * - 0x1800 .. 0x1fff : Unknown
82 * Flash registers
123 * Flash sequences
138 * Flash commands
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mtd/
H A Ddavinci-nand.txt7 Davinci DM646x - https://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf
8 Kestone - https://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf
12 - compatible: "ti,davinci-nand"
13 "ti,keystone-nand"
15 - reg: Contains 2 offset/length values:
16 - offset and length for the access window.
17 - offset and length for accessing the AEMIF
20 - ti,davinci-chipselect: number of chipselect. Indicates on the
23 Can be in the range [0-3].
27 - ti,davinci-mask-ale: mask for ALE. Needed for executing address
[all …]
H A Dnxp-spifi.txt1 * NXP SPI Flash Interface (SPIFI)
3 NXP SPIFI is a specialized SPI interface for serial Flash devices.
4 It supports one Flash device with 1-, 2- and 4-bits width in SPI
5 mode 0 or 3. The controller operates in either command or memory
6 mode. In memory mode the Flash is accessible from the CPU as
10 - compatible : Should be "nxp,lpc1773-spifi"
11 - reg : the first contains the register location and length,
13 - reg-names: Should contain the reg names "spifi" and "flash"
14 - interrupts : Should contain the interrupt for the device
15 - clocks : The clocks needed by the SPIFI controller
[all …]
/openbmc/u-boot/drivers/spi/
H A Daspeed_spi.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2015-2018, IBM Corporation.
32 u32 soft_rst_cmd_ctrl; /* 0x50 Auto Soft-Reset Command Control */
35 u32 dma_flash_addr; /* 0x84 DMA Flash Side Address */
113 /* Auto Soft-Reset Command Control */
118 * and the end address of the AHB window of a SPI flash device.
121 * CE0 0x20000000 - 0x2fffffff 128MB
122 * CE1 0x28000000 - 0x29ffffff 32MB
123 * CE2 0x2a000000 - 0x2bffffff 32MB
126 * covered and CE0 start address and CE2 end addresses are read-only.
[all …]
/openbmc/u-boot/board/imgtec/malta/
H A Dflash-malta-boot.tcl1 # SPDX-License-Identifier: GPL-2.0+
5 # Programs a MIPS Malta boot flash with a flat binary image.
7 proc flash-boot { binfile } {
8 puts "flash monitor binary $binfile"
13 puts "CPU in BE mode"
14 flash device sharp_16x32_be;
16 puts "CPU in LE mode"
17 flash device sharp_16x32;
20 flash clear all;
21 flash set 0xBE000000..0xBE0FFFFF
[all …]
/openbmc/linux/drivers/leds/flash/
H A Dleds-max77693.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the flash cell of max77693 mfd.
11 #include <linux/led-class-flash.h>
13 #include <linux/mfd/max77693-common.h>
14 #include <linux/mfd/max77693-private.h>
20 #include <media/v4l2-flash-led-class.h>
41 FLASH, enumerator
59 /* corresponding LED Flash class device */
61 /* V4L2 Flash device */
66 /* flash timeout cache */
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
15 tristate "AS3645A and LM3555 LED flash controllers support"
19 Enable LED flash class support for AS3645A LED flash
20 controller. V4L2 flash API is provided as well if
24 tristate "LED support for Kinetic KTD2692 flash LED controller"
28 This option enables support for Kinetic KTD2692 LED flash connected
39 of flash, torch and indicator classes.
42 tristate "LED support for MAX77693 Flash"
47 This option enables support for the flash part of the MAX77693
48 multifunction device. It has build in control for two leds in flash
[all …]
H A Dleds-as3645a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/leds/leds-as3645a.c - AS3645A and LM3555 flash controllers driver
5 * Copyright (C) 2008-2011 Nokia Corporation
16 #include <linux/led-class-flash.h>
23 #include <media/v4l2-flash-led-class.h>
25 #define AS_TIMER_US_TO_CODE(t) (((t) / 1000 - 100) / 50)
30 /* Read-only Design info register: Reset state: xxxx 0001 */
35 /* Read-only Version control register: Reset state: 0000 0000
105 ((min_t(u32, AS_PEAK_mA_MAX, a) - 1250) / 250)
143 enum as_mode mode; member
[all …]
H A Dleds-ktd2692.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver : leds-ktd2692.c
12 #include <linux/led-class-flash.h>
19 /* Value related the movie mode */
24 /* Value related the flash mode */
29 /* Macro for getting offset of flash timeout */
56 /* Movie / Flash Mode Control */
64 /* maximum LED current in movie mode */
66 /* maximum LED current in flash mode */
68 /* maximum flash timeout */
[all …]
H A Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the AAT1290
4 * 1.5A Step-Up Current Regulator for Flash LEDs
12 #include <linux/led-class-flash.h>
20 #include <media/v4l2-flash-led-class.h>
49 /* maximum LED current in movie mode */
51 /* maximum LED current in flash mode */
53 /* maximum flash timeout */
67 /* corresponding LED Flash class device */
69 /* V4L2 Flash device */
[all …]
/openbmc/linux/Documentation/devicetree/bindings/leds/
H A Drichtek,rt8515.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
13 The Richtek RT8515 is a dual channel (two mode) LED driver that
14 supports driving a white LED in flash or torch mode. The maximum
15 current for each mode is defined in hardware using two resistors
22 enf-gpios:
24 description: A connection to the 'ENF' (enable flash) pin.
26 ent-gpios:
[all …]
/openbmc/u-boot/cmd/
H A Dotp_info.h7 #define OTP_REG_RESERVED -1
8 #define OTP_REG_VALUE -2
9 #define OTP_REG_VALID_BIT -3
67 { 19, 1, 0, "Boot from eMMC speed mode : normal" },
68 { 19, 1, 1, "Boot from eMMC speed mode : high" },
73 { 22, 1, 0, "Normal BMC mode" },
74 { 22, 1, 1, "Disable dedicated BMC functions for non-BMC application" },
99 { 39, 1, 0, "Disable SAFS mode" },
100 { 39, 1, 1, "Enable SAFS mode" },
103 { 41, 1, 0, "Disable boot SPI 3B address mode auto-clear" },
[all …]
H A Dsf.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Command for accessing SPI flash.
19 #include <dm/device-internal.h>
21 static struct spi_flash *flash; variable
26 * 1. <cmd> offset len - operate on <'offset', 'len')
27 * 2. <cmd> offset +len - operate on <'offset', 'round_up(len)')
30 * If it isn't in the flash, the function will fail (return -1).
37 * -1: failure (bad format, bad address).
53 return -1; in sf_parse_len_arg()
55 if (round_up_len && flash->sector_size > 0) in sf_parse_len_arg()
[all …]
/openbmc/u-boot/board/gateworks/gw_ventana/
H A DREADME1 U-Boot for the Gateworks Ventana Product Family boards
3 This file contains information for the port of U-Boot to the Gateworks
7 is supported by a single bootloader build by using a common SPL and U-Boot
13 ---------------------------------
19 will build the following artifacts from U-Boot source:
20 - SPL - Secondary Program Loader that the i.MX6 BOOT ROM (Primary Program
22 The DRAM controller, loads u-boot.img from the detected boot device,
25 - u-boot.img - The main U-Boot core which is u-boot.bin with a image header.
29 --------
31 To build U-Boot for the Gateworks Ventana product family:
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-flash6 Set the brightness of this LED in the flash strobe mode, in
7 microamperes. The file is created only for the flash LED devices
8 that support setting flash brightness.
18 Maximum brightness level for this LED in the flash strobe mode,
26 Hardware timeout for flash, in microseconds. The flash strobe
28 of the strobe. The file is created only for the flash LED
29 devices that support setting flash timeout.
36 Maximum flash timeout for this LED, in microseconds.
43 Flash strobe state. When written with 1 it triggers flash strobe
44 and when written with 0 it turns the flash off.
[all …]
/openbmc/u-boot/board/freescale/mx28evk/
H A DREADME4 Supported hardware: MX28EVK rev C and D are supported in U-Boot.
7 --------------------------
9 arch/arm/cpu/arm926ejs/mxs/ - The CPU support code for the Freescale i.MX28
10 arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28
11 board/freescale/mx28evk/ - MX28EVK board specific files
12 include/configs/mx28evk.h - MX28EVK configuration file
15 ---------------------
17 To boot MX28EVK from an SD card, set the boot mode DIP switches as:
19 * Boot Mode Select: 1 0 0 1 (Boot from SD card Slot 0 - U42)
26 To boot MX28EVK from SPI NOR flash, set the boot mode DIP switches as:
[all …]
/openbmc/linux/Documentation/powerpc/
H A Dcxlflash.rst2 Coherent Accelerator (CXL) Flash
12 purpose co-processors which can read or write an application's
14 an adapter running in CAPI mode does not require the data buffers to
26 kernel/device driver stack. The CXL Flash Adapter Driver enables a
27 user space application direct access to Flash storage.
29 The CXL Flash Adapter Driver is a kernel module that sits in the
31 protocol drivers) for the IBM CXL Flash Adapter. This driver is
34 communicates directly the Flash Accelerator Functional Unit (AFU)
40 - Any flash device (LUN) can be configured to be accessed as a
41 regular disk device (i.e.: /dev/sdc). This is the default mode.
[all …]

12345678910>>...42