| /linux/drivers/mtd/maps/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only3 	depends on MTD!=n
 4 	depends on HAS_IOMEM
 7 	bool "Support non-linear mappings of flash chips"
 10 	  paged mappings of flash chips.
 13 	tristate "Flash device in physical memory map"
 14 	depends on MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM || MTD_LPDDR
 16 	  This provides a 'mapping' driver which allows the NOR Flash and
 19 	  the physical address and size of the flash chips on your
 21 	  with config options or at run-time.
 [all …]
 
 | 
| /linux/include/linux/ | 
| H A D | led-class-flash.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */3  * LED Flash class interface
 17  * Supported led fault bits - must be kept in synch
 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 */
 48 	/* set flash duration */
 [all …]
 
 | 
| /linux/drivers/leds/flash/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.07 	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
 8 	depends on GPIOLIB || COMPILE_TEST
 9 	depends on OF
 10 	depends on PINCTRL
 12 	  This option enables support for the LEDs on the AAT1290.
 15 	tristate "AS3645A and LM3555 LED flash controllers support"
 16 	depends on I2C
 17 	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
 19 	  Enable LED flash class support for AS3645A LED flash
 [all …]
 
 | 
| H A D | leds-as3645a.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * drivers/leds/leds-as3645a.c - AS3645A and LM3555 flash controllers driver
 5  * Copyright (C) 2008-2011 Nokia Corporation
 8  * Based on drivers/media/i2c/as3645a.c.
 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)
 [all …]
 
 | 
| /linux/drivers/mtd/chips/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only2 menu "RAM/ROM/Flash chip drivers"
 3 	depends on MTD!=n
 6 	tristate "Detect flash chips by Common Flash Interface (CFI) probe"
 10 	  The Common Flash Interface specification was developed by Intel,
 11 	  AMD and other flash manufactures that provides a universal method
 12 	  for probing the capabilities of flash devices. If you wish to
 13 	  support any device that is CFI-compliant, you need to enable this
 15 	  for more information on CFI.
 18 	tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
 [all …]
 
 | 
| /linux/drivers/media/i2c/ | 
| H A D | adp1653.c | 1 // SPDX-License-Identifier: GPL-2.0-only5  * Copyright (C) 2008--2011 Nokia Corporation
 15  * - fault interrupt handling
 16  * - hardware strobe
 17  * - power doesn't need to be ON if all lights are off
 27 #include <media/v4l2-device.h>
 31 #define TIMEOUT_MIN		(TIMEOUT_MAX - ADP1653_REG_CONFIG_TMR_SET_MAX \
 33 #define TIMEOUT_US_TO_CODE(t)	((TIMEOUT_MAX + (TIMEOUT_STEP / 2) - (t)) \
 35 #define TIMEOUT_CODE_TO_US(c)	(TIMEOUT_MAX - (c) * TIMEOUT_STEP)
 38 static int adp1653_update_hw(struct adp1653_flash *flash)  in adp1653_update_hw()  argument
 [all …]
 
 | 
| H A D | lm3560.c | 1 // SPDX-License-Identifier: GPL-2.0-only4  * General device driver for TI lm3559, lm3560, FLASH LED Driver
 9  *			Ldd-Mlp <ldd-mlp@list.ti.com>
 20 #include <media/v4l2-ctrls.h>
 21 #include <media/v4l2-device.h>
 65 	container_of(_ctrl->handler, struct lm3560_flash, ctrls_led[_no])
 68 static int lm3560_mode_ctrl(struct lm3560_flash *flash)  in lm3560_mode_ctrl()  argument
 70 	int rval = -EINVAL;  in lm3560_mode_ctrl()
 72 	switch (flash->led_mode) {  in lm3560_mode_ctrl()
 74 		rval = regmap_update_bits(flash->regmap,  in lm3560_mode_ctrl()
 [all …]
 
 | 
| /linux/drivers/mtd/ | 
| H A D | Kconfig | 5 	  Memory Technology Devices are flash, RAM and similar chips, often6 	  used for solid state file systems on embedded devices. This option
 9 	  to enumerate the devices which are present and obtain a handle on
 17 	depends on m
 40 	depends on BLOCK
 43 	  Although most flash chips have an erase size too large to be useful
 45 	  on RAM chips in this manner. This block device is a user of MTD
 49 	  It's possible to mount a rootfs using the MTD device on the "root="
 53 	  on flash chips to emulate a smaller block size. Needless to say,
 62 	depends on MTD_BLOCK!=y && BLOCK
 [all …]
 
 | 
| /linux/drivers/mtd/parsers/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only4 	depends on BCM47XX || ARCH_BCM_5301X
 6 	  This provides partitions parser for devices based on BCM47xx
 11 	depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST
 19 	tristate "Broadcom's U-Boot partition parser"
 20 	depends on ARCH_BCMBCA || COMPILE_TEST
 22 	  Broadcom uses a custom way of storing U-Boot environment variables.
 23 	  They are placed inside U-Boot partition itself at unspecified offset.
 30 	depends on MTD
 33 	  command line. Multiple flash resources are supported for hardware where
 [all …]
 
 | 
| /linux/Documentation/ABI/testing/ | 
| H A D | sysfs-class-led-flash | 6 		Set the brightness of this LED in the flash strobe mode, in7 		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 …]
 
 | 
| /linux/drivers/mtd/nand/onenand/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only4 	depends on HAS_IOMEM
 6 	  This enables support for accessing all type of OneNAND flash
 14 	  This adds an extra check when data is written to the flash. The
 15 	  OneNAND flash device internally checks only bits transitioning
 21 	tristate "OneNAND Flash device via platform device driver"
 23 	  Support for OneNAND flash via platform device driver.
 26 	tristate "OneNAND on OMAP2/OMAP3 support"
 27 	depends on ARCH_OMAP2 || ARCH_OMAP3 || (COMPILE_TEST && ARM)
 28 	depends on OF
 [all …]
 
 | 
| /linux/drivers/mtd/devices/ | 
| H A D | spear_smi.c | 2  * SMI (Serial Memory Controller) device driver for Serial NOR Flash on4  * The serial nor interface is largely based on m25p80.c, however the SPI
 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.
 166  * @num_flashes: number of flashes actually present on board.
 167  * @flash: separate structure for each Serial NOR-flash attached to SMI.
 178 	struct spear_snor_flash *flash[MAX_NUM_FLASH_CHIP];  member
 [all …]
 
 | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only2 menu "Self-contained MTD device drivers"
 3 	depends on MTD!=n
 4 	depends on HAS_IOMEM
 8 	depends on PCI
 12 	  These devices come in memory configurations from 32M - 1G.  If you
 21 	  particularly useful on the 2.2 kernels on PPC architectures as there
 26 	depends on MTD_PMC551
 34 	depends on MTD_PMC551
 37 	  is only really useful if you are developing on this driver or
 [all …]
 
 | 
| /linux/Documentation/arch/arm/sa1100/ | 
| H A D | assabet.rst | 2 The Intel Assabet (SA-1110 evaluation) board13 -------------------
 25 -----------------------
 27 A couple of bootloaders able to boot Linux on Assabet are available:
 39    John Dorsey has produced add-on patches to add support for Assabet and
 44    RedBoot is a bootloader developed by Red Hat based on the eCos RTOS
 51 Brief examples on how to boot Linux with RedBoot are shown below.  But first
 52 you need to have RedBoot installed in your flash memory.  A known to work
 55 - ftp://ftp.netwinder.org/users/n/nico/
 56 - ftp://ftp.arm.linux.org.uk/pub/linux/arm/people/nico/
 [all …]
 
 | 
| /linux/Documentation/networking/devlink/ | 
| H A D | devlink-flash.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)6 Devlink Flash
 9 The ``devlink-flash`` API allows updating device firmware. It replaces the
 10 older ``ethtool-flash`` mechanism, and doesn't require taking any
 11 networking locks in the kernel to perform the flash update. Example use::
 13   $ devlink dev flash pci/0000:05:00.0 file flash-boot.bin
 22 The ``devlink-flash`` command allows optionally specifying a mask indicating
 23 how the device should handle subsections of flash components when updating.
 26 .. list-table:: List of overwrite mask bits
 29    * - Name
 [all …]
 
 | 
| /linux/include/media/ | 
| H A D | v4l2-flash-led-class.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */3  * V4L2 flash LED sub-device registration helpers.
 12 #include <media/v4l2-ctrls.h>
 13 #include <media/v4l2-subdev.h>
 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
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/mtd/partitions/ | 
| H A D | redboot-fis.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/mtd/partitions/redboot-fis.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: RedBoot FLASH Image System (FIS) Partitions
 9 description: The FLASH Image System (FIS) directory is a flash description
 11     It uses one single flash eraseblock in the flash to store an index of
 12     all images in the flash.
 13     This block size will vary depending on flash but is typically
 17   - Linus Walleij <linus.walleij@linaro.org>
 [all …]
 
 | 
| /linux/drivers/mtd/spi-nor/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only4 	depends on MTD
 5 	depends on MTD && SPI_MASTER
 17 	  Many flash memories support erasing small (4096 B) sectors. Depending
 18 	  on the usage this feature may provide performance gain in comparison
 20 	  Changing a small part of the flash's contents is usually faster with
 21 	  small sectors. On the other hand erasing should be faster when using
 32 	bool "Disable SWP on any flashes (legacy behavior)"
 34 	  This option disables the software write protection on any SPI
 35 	  flashes at boot-up.
 [all …]
 
 | 
| /linux/Documentation/userspace-api/media/v4l/ | 
| H A D | ext-ctrls-flash.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later3 .. _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 …]
 
 | 
| /linux/drivers/mtd/spi-nor/controllers/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only3 	tristate "Hisilicon FMC SPI NOR Flash Controller(SFC)"
 4 	depends on ARCH_HISI || COMPILE_TEST
 5 	depends on HAS_IOMEM
 7 	  This enables support for HiSilicon FMC SPI NOR flash controller.
 10 	tristate "NXP SPI Flash Interface (SPIFI)"
 11 	depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
 12 	depends on HAS_IOMEM
 14 	  Enable support for the NXP LPC SPI Flash Interface controller.
 17 	  Flash. Enable this option if you have a device with a SPIFI
 [all …]
 
 | 
| /linux/arch/powerpc/kernel/ | 
| H A D | rtas_flash.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later9  * firmware image and flash it as it reboots (see rtas.c).
 31 #define RTAS_RC_HW_ERR	-1
 32 #define RTAS_RC_BUSY	-2
 34 /* Flash image status values */
 35 #define FLASH_AUTH           -9002 /* RTAS Not Service Authority Partition */
 36 #define FLASH_NO_OP          -1099 /* No operation initiated by user */
 37 #define FLASH_IMG_SHORT	     -1005 /* Flash image shorter than expected */
 38 #define FLASH_IMG_BAD_LEN    -1004 /* Bad length value in flash list block */
 39 #define FLASH_IMG_NULL_DATA  -1003 /* Bad data value in flash list block */
 [all …]
 
 | 
| /linux/Documentation/filesystems/ | 
| H A D | ubifs.rst | 1 .. SPDX-License-Identifier: GPL-2.010 UBIFS file-system stands for UBI File System. UBI stands for "Unsorted
 11 Block Images". UBIFS is a flash file system, which means it is designed
 12 to work with flash devices. It is important to understand, that UBIFS
 13 is completely different to any traditional file-system in Linux, like
 14 Ext2, XFS, JFS, etc. UBIFS represents a separate class of file-systems
 16 file-system of this class is JFFS2.
 21 1 MTD devices represent flash devices and they consist of eraseblocks of
 24 2 MTD devices support 3 main operations - read from some offset within an
 26   eraseblock. Block  devices support 2 main operations - read a whole
 [all …]
 
 | 
| /linux/Documentation/driver-api/mtd/ | 
| H A D | spi-nor.rst | 5 How to propose a new flash addition6 -----------------------------------
 9 Serial Flash Discoverable Parameter (SFDP) standard. SFDP describes
 10 the functional and feature capabilities of serial flash devices in a
 11 standard set of internal read-only parameter tables.
 14 flash's parameters and settings. If the flash defines the SFDP tables
 15 it's likely that you won't need a flash entry at all, and instead
 16 rely on the generic flash driver which probes the flash solely based
 17 on its SFDP data. All one has to do is to specify the "jedec,spi-nor"
 20 There are cases however where you need to define an explicit flash
 [all …]
 
 | 
| /linux/drivers/net/ethernet/intel/ice/ | 
| H A D | ice_fw_update.c | 1 // SPDX-License-Identifier: GPL-2.02 /* Copyright (C) 2018-2019, Intel Corporation. */
 22 	 * flash update.
 24 	 * 0 - ICE_AQC_NVM_POR_FLAG - A full power on is required
 25 	 * 1 - ICE_AQC_NVM_PERST_FLAG - A cold PCIe reset is required
 26 	 * 2 - ICE_AQC_NVM_EMPR_FLAG - An EMP reset is required
 35  * ice_send_package_data - Send record package data to firmware
 46  * Returns: zero on success, or a negative error code on failure.
 52 	struct netlink_ext_ack *extack = priv->extack;  in ice_send_package_data()
 53 	struct device *dev = context->dev;  in ice_send_package_data()
 [all …]
 
 | 
| /linux/include/linux/mtd/ | 
| H A D | spear_smi.h | 19 /* max possible slots for serial-nor flash chip in the SMI controller */22 /* macro to define partitions for flash devices */
 31  * struct spear_smi_flash_info - platform structure for passing flash
 34  * name: name of the serial nor flash for identification
 35  * mem_base: the memory base on which the flash is mapped
 36  * size: size of the flash in bytes
 39  * fast_mode: whether flash supports fast mode
 52  * struct spear_smi_plat_data - platform structure for configuring smi
 55  * num_flashes: number of flashes present on board
 56  * board_flash_info: specific details of each flash present on board
 
 |