Home
last modified time | relevance | path

Searched full:flash (Results 1 – 25 of 3807) sorted by relevance

12345678910>>...153

/openbmc/linux/drivers/leds/flash/
H A Dleds-as3645a.c3 * drivers/leds/leds-as3645a.c - AS3645A and LM3555 flash controllers driver
16 #include <linux/led-class-flash.h>
23 #include <media/v4l2-flash-led-class.h>
156 static int as3645a_write(struct as3645a *flash, u8 addr, u8 val) in as3645a_write() argument
158 struct i2c_client *client = flash->client; in as3645a_write()
170 static int as3645a_read(struct as3645a *flash, u8 addr) in as3645a_read() argument
172 struct i2c_client *client = flash->client; in as3645a_read()
188 * as3645a_set_current - Set flash configuration registers
189 * @flash: The flash
191 * Configure the hardware with flash, assist and indicator currents, as well as
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dadp1653.c38 static int adp1653_update_hw(struct adp1653_flash *flash) in adp1653_update_hw() argument
40 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw()
46 flash->indicator_intensity->val) in adp1653_update_hw()
49 switch (flash->led_mode->val) { in adp1653_update_hw()
53 /* Flash mode, light on with strobe, duration from timer */ in adp1653_update_hw()
55 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val) in adp1653_update_hw()
61 flash->torch_intensity->val) in adp1653_update_hw()
77 static int adp1653_get_fault(struct adp1653_flash *flash) in adp1653_get_fault() argument
79 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault()
87 flash->fault |= fault; in adp1653_get_fault()
[all …]
H A Dlm3646.c4 * General device driver for TI lm3646, Dual FLASH LED Driver
81 static int lm3646_mode_ctrl(struct lm3646_flash *flash, in lm3646_mode_ctrl() argument
86 return regmap_write(flash->regmap, in lm3646_mode_ctrl()
87 REG_ENABLE, flash->mode_reg | MODE_SHDN); in lm3646_mode_ctrl()
89 return regmap_write(flash->regmap, in lm3646_mode_ctrl()
90 REG_ENABLE, flash->mode_reg | MODE_TORCH); in lm3646_mode_ctrl()
92 return regmap_write(flash->regmap, in lm3646_mode_ctrl()
93 REG_ENABLE, flash->mode_reg | MODE_FLASH); in lm3646_mode_ctrl()
101 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_get_ctrl() local
108 rval = regmap_read(flash->regmap, REG_FLAG, &reg_val); in lm3646_get_ctrl()
[all …]
H A Dlm3560.c4 * General device driver for TI lm3559, lm3560, FLASH LED Driver
68 static int lm3560_mode_ctrl(struct lm3560_flash *flash) in lm3560_mode_ctrl() argument
72 switch (flash->led_mode) { in lm3560_mode_ctrl()
74 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
78 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
82 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
90 static int lm3560_enable_ctrl(struct lm3560_flash *flash, in lm3560_enable_ctrl() argument
97 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
100 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
104 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
[all …]
/openbmc/u-boot/drivers/mtd/spi/
H A DKconfig1 menu "SPI Flash Support"
4 bool "Enable Driver Model for SPI flash"
7 Enable driver model for SPI flash. This SPI flash interface
9 implemented by the SPI flash uclass. There is one standard
10 SPI flash driver which knows how to probe most chips
14 during the transition parent. SPI and SPI flash must be
19 bool "Support sandbox SPI flash device"
25 device. Typically the contents of the emulated SPI flash device is
29 bool "Legacy SPI Flash Interface support"
33 Enable the legacy SPI flash support. This will include basic
[all …]
H A Dsf_probe.c3 * SPI flash probing
20 * spi_flash_probe_slave() - Probe for a SPI flash device on a bus
22 * @flashp: Pointer to place to put flash info, which may be NULL if the
25 static int spi_flash_probe_slave(struct spi_flash *flash) in spi_flash_probe_slave() argument
27 struct spi_slave *spi = flash->spi; in spi_flash_probe_slave()
43 ret = spi_nor_scan(flash); in spi_flash_probe_slave()
48 ret = spi_flash_mtd_register(flash); in spi_flash_probe_slave()
61 struct spi_flash *flash; in spi_flash_probe() local
68 flash = calloc(1, sizeof(*flash)); in spi_flash_probe()
69 if (!flash) { in spi_flash_probe()
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-flash.rst6 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.
23 Unsynchronised LED flash (software strobe)
26 Unsynchronised LED flash is controlled directly by the host as the
27 sensor. The flash must be enabled by the host before the exposure of the
29 for the timing of the flash.
34 Synchronised LED flash (hardware strobe)
[all …]
/openbmc/linux/drivers/staging/media/atomisp/i2c/
H A Datomisp-lm3554.c3 * LED flash driver for LM3554
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()
96 static int lm3554_read(struct lm3554 *flash, u8 addr) in lm3554_read() argument
98 struct i2c_client *client = v4l2_get_subdevdata(&flash->sd); in lm3554_read()
113 static int lm3554_set_mode(struct lm3554 *flash, unsigned int mode) in lm3554_set_mode() argument
119 (flash->flash_current << LM3554_FLASH_CURRENT_SHIFT); in lm3554_set_mode()
121 ret = lm3554_write(flash, LM3554_FLASH_BRIGHTNESS_REG, val); in lm3554_set_mode()
123 flash->mode = mode; in lm3554_set_mode()
127 static int lm3554_set_torch(struct lm3554 *flash) in lm3554_set_torch() argument
[all …]
/openbmc/linux/drivers/mtd/devices/
H A Dmchp48l640.c23 #include <linux/spi/flash.h>
60 static int mchp48l640_mkcmd(struct mchp48l640_flash *flash, u8 cmd, loff_t addr, char *buf) in mchp48l640_mkcmd() argument
69 static int mchp48l640_read_status(struct mchp48l640_flash *flash, int *status) in mchp48l640_read_status() argument
76 mutex_lock(&flash->lock); in mchp48l640_read_status()
77 ret = spi_write_then_read(flash->spi, &cmd[0], 1, &cmd[1], 1); in mchp48l640_read_status()
78 mutex_unlock(&flash->lock); in mchp48l640_read_status()
81 dev_dbg(&flash->spi->dev, "read status ret: %d status: %x", ret, *status); in mchp48l640_read_status()
86 static int mchp48l640_waitforbit(struct mchp48l640_flash *flash, int bit, bool set) in mchp48l640_waitforbit() argument
93 ret = mchp48l640_read_status(flash, &status); in mchp48l640_waitforbit()
94 dev_dbg(&flash->spi->dev, "read status ret: %d bit: %x %sset status: %x", in mchp48l640_waitforbit()
[all …]
H A Dsst25l.c5 * Driver for SST25L SPI Flash chips
25 #include <linux/spi/flash.h>
67 static int sst25l_status(struct sst25l_flash *flash, int *status) in sst25l_status() argument
83 err = spi_sync(flash->spi, &m); in sst25l_status()
91 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) in sst25l_write_enable() argument
97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
108 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
113 err = sst25l_status(flash, &status); in sst25l_write_enable()
123 static int sst25l_wait_till_ready(struct sst25l_flash *flash) in sst25l_wait_till_ready() argument
[all …]
H A Dmchp23k256.c16 #include <linux/spi/flash.h>
41 static void mchp23k256_addr2cmd(struct mchp23k256_flash *flash, in mchp23k256_addr2cmd() argument
51 for (i = flash->caps->addr_width; i > 0; i--, addr >>= 8) in mchp23k256_addr2cmd()
55 static int mchp23k256_cmdsz(struct mchp23k256_flash *flash) in mchp23k256_cmdsz() argument
57 return 1 + flash->caps->addr_width; in mchp23k256_cmdsz()
63 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd); in mchp23k256_write() local
71 cmd_len = mchp23k256_cmdsz(flash); in mchp23k256_write()
74 mchp23k256_addr2cmd(flash, to, command); in mchp23k256_write()
84 mutex_lock(&flash->lock); in mchp23k256_write()
86 ret = spi_sync(flash->spi, &message); in mchp23k256_write()
[all …]
H A Dspear_smi.c2 * SMI (Serial Memory Controller) device driver for Serial NOR Flash on
90 /* flash opcodes */
93 /* Flash Device Ids maintenance section */
95 /* data structure to maintain flash ids from different vendors */
165 * @cmd_complete: queue to wait for command completion of NOR-flash.
167 * @flash: separate structure for each Serial NOR-flash attached to SMI.
178 struct spear_snor_flash *flash[MAX_NUM_FLASH_CHIP]; member
182 * struct spear_snor_flash - Structure for Serial NOR Flash
184 * @bank: Bank number(0, 1, 2, 3) for each NOR-flash.
185 * @dev_id: Device ID of NOR-flash.
[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/linux/drivers/mtd/maps/
H A DKconfig7 bool "Support non-linear mappings of flash chips"
10 paged mappings of flash chips.
13 tristate "Flash device in physical memory map"
16 This provides a 'mapping' driver which allows the NOR Flash and
19 the physical address and size of the flash chips on your
38 hex "Physical start address of flash mapping"
42 This is the physical memory location at which the flash chips
48 hex "Physical length of flash mapping"
52 This is the total length of the mapping of the flash chips on
55 than the total amount of flash present. Refer to the memory
[all …]
/openbmc/linux/include/linux/
H A Dled-class-flash.h3 * LED Flash class interface
34 /* set flash brightness */
37 /* get flash brightness */
40 /* set flash strobe state */
42 /* get flash strobe state */
44 /* set flash timeout */
46 /* get the flash LED fault */
51 * Current value of a flash setting along
69 /* flash led specific ops */
72 /* flash brightness value in microamperes along with its constraints */
[all …]
/openbmc/skeleton/flashbios/
H A Dflash_bios_obj.c10 static const gchar* dbus_object_path = "/org/openbmc/control/flash";
11 static const gchar* dbus_name = "org.openbmc.control.Flash";
27 update(Flash* flash, const char* obj_path) in update() argument
34 const gchar* name = flash_get_flasher_name(flash); in update()
35 const gchar* inst = flash_get_flasher_instance(flash); in update()
36 const gchar* filename = flash_get_filename(flash); in update()
44 on_init(Flash *f, in on_init()
50 //tune flash in on_init()
77 printf("ERROR: BIOS Flash is already locked: %s\n",name); in on_lock()
81 printf("Locking BIOS Flash: %s\n",name); in on_lock()
[all …]
/openbmc/u-boot/board/imgtec/malta/
H A Dflash-malta-boot.tcl5 # Programs a MIPS Malta boot flash with a flat binary image.
7 proc flash-boot { binfile } {
8 puts "flash monitor binary $binfile"
14 flash device sharp_16x32_be;
17 flash device sharp_16x32;
20 flash clear all;
21 flash set 0xBE000000..0xBE0FFFFF
22 flash erase sector 0xbe000000;
23 flash erase sector 0xbe020000;
24 flash erase sector 0xbe040000;
[all …]
/openbmc/u-boot/drivers/mtd/
H A DKconfig11 flash, RAM and similar chips, often used for solid state file
15 bool "Enable parallel NOR flash support"
17 Enable support for parallel NOR flash.
26 bool "Enable CFI Flash driver"
28 The Common Flash Interface specification was developed by Intel,
29 AMD and other flash manufactures. It provides a universal method
30 for probing the capabilities of flash devices. If you wish to
36 bool "Enable Driver Model for CFI Flash driver"
39 The Common Flash Interface specification was developed by Intel,
40 AMD and other flash manufactures. It provides a universal method
[all …]
/openbmc/u-boot/include/
H A Dspi_flash.h3 * Common SPI flash Interface
40 * SPI flash chips can lock a region of the flash defined by a
44 * @dev: SPI flash device
59 * spi_flash_read_dm() - Read data from SPI flash
61 * @dev: SPI flash device
70 * spi_flash_write_dm() - Write data to SPI flash
72 * @dev: SPI flash device
82 * spi_flash_erase_dm() - Erase blocks of the SPI flash
84 * Note that @len must be a muiltiple of the flash sector size.
86 * @dev: SPI flash device
[all …]
/openbmc/u-boot/drivers/spi/
H A Daspeed_spi.c35 u32 dma_flash_addr; /* 0x84 DMA Flash Side Address */
118 * and the end address of the AHB window of a SPI flash device.
168 * flash related info
183 struct spi_flash *spi; /* Associated SPI Flash device */
264 void __iomem *ahb_base; /* AHB Window for all flash devices */
278 struct aspeed_spi_flash *flash,
282 static u32 aspeed_spi_flash_to_addr(struct aspeed_spi_flash *flash,
357 * Use some address/size under the first flash device CE0
360 struct aspeed_spi_flash *flash, in aspeed_spi_fmc_checksum() argument
363 u32 flash_addr = (u32)flash->ahb_base + 0x10000; in aspeed_spi_fmc_checksum()
[all …]
/openbmc/phosphor-ipmi-flash/
H A Dipmi_flash.md15 - `open(/flash/active/image)` returns false -- file cannot be opened.
16 - `open(/flash/active/hash)` returns false -- file cannot be opened.
42 - `open(/flash/image)`
43 - `open(/flash/tarball)`
44 - `open(/flash/hash)`
45 - `open(/flash/verify)`
46 - `open(/flash/update)`
52 - `open(/flash/*)` returns false because `fileOpen() == true`
54 - `close(/flash/*)` triggers `state -> verificationPending`
56 - `commit(/flash/*)` returns false
[all …]
/openbmc/linux/drivers/sbus/char/
H A Dflash.c2 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates.
31 } flash; variable
40 if (flash.read_base == flash.write_base) { in flash_mmap()
41 addr = flash.read_base; in flash_mmap()
42 size = flash.read_size; in flash_mmap()
50 addr = flash.read_base; in flash_mmap()
51 size = flash.read_size; in flash_mmap()
53 addr = flash.write_base; in flash_mmap()
54 size = flash.write_size; in flash_mmap()
87 if (file->f_pos > flash.read_size) in flash_llseek()
[all …]
/openbmc/linux/Documentation/leds/
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
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)
26 V4L2 flash wrapper for flash LEDs
37 flash device, e.g. an I2C device
[all …]
/openbmc/linux/include/media/
H A Dv4l2-flash-led-class.h3 * V4L2 flash LED sub-device registration helpers.
21 * struct v4l2_flash_ctrl_data - flash control initialization data, filled
22 * basing on the features declared by the LED flash
25 * @cid: contains v4l2 flash control id if the config
34 * struct v4l2_flash_ops - V4L2 flash operations
36 * @external_strobe_set: Setup strobing the flash by hardware pin state
53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data
56 * @intensity: non-flash strobe constraints for the LED
57 * @flash_faults: bitmask of flash faults that the LED flash class
60 * <linux/led-class-flash.h>
[all …]
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_json_unittest.cpp24 "blob" : "/flash/image", in TEST()
32 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
36 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
52 "blob" : "/flash/image", in TEST()
60 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
64 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
81 "blob" : "/flash/image", in TEST()
89 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
93 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
110 "blob" : "/flash/image", in TEST()
[all …]

12345678910>>...153