Home
last modified time | relevance | path

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

12345678910>>...54

/linux-3.3/drivers/media/video/
Dadp1653.c51 static int adp1653_update_hw(struct adp1653_flash *flash) in adp1653_update_hw() argument
53 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw()
59 flash->indicator_intensity->val) in adp1653_update_hw()
62 switch (flash->led_mode->val) { in adp1653_update_hw()
66 /* Flash mode, light on with strobe, duration from timer */ in adp1653_update_hw()
68 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val) in adp1653_update_hw()
74 flash->torch_intensity->val) in adp1653_update_hw()
90 static int adp1653_get_fault(struct adp1653_flash *flash) in adp1653_get_fault() argument
92 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault()
100 flash->fault |= fault; in adp1653_get_fault()
[all …]
Das3645a.c2 * drivers/media/video/as3645a.c - AS3645A and LM3555 flash controllers driver
107 * @pdata: Flash platform data
110 * @led_mode: V4L2 flash LED mode
111 * @timeout: Flash timeout in microseconds
112 * @flash_current: Flash current (0=200mA ... 15=500mA). Maximum
116 * @strobe_source: Flash strobe source (software or external)
139 static int as3645a_write(struct as3645a *flash, u8 addr, u8 val) in as3645a_write() argument
141 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_write()
153 static int as3645a_read(struct as3645a *flash, u8 addr) in as3645a_read() argument
155 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_read()
[all …]
/linux-3.3/drivers/mtd/maps/
DKconfig5 bool "Support non-linear mappings of flash chips"
8 paged mappings of flash chips.
11 tristate "Flash device in physical memory map"
14 This provides a 'mapping' driver which allows the NOR Flash and
17 the physical address and size of the flash chips on your
36 hex "Physical start address of flash mapping"
40 This is the physical memory location at which the flash chips
46 hex "Physical length of flash mapping"
50 This is the total length of the mapping of the flash chips on
53 than the total amount of flash present. Refer to the memory
[all …]
Dscx200_docflash.c5 National Semiconductor SCx200 flash mapped with DOCCS
23 MODULE_DESCRIPTION("NatSemi SCx200 DOCCS Flash Driver");
34 MODULE_PARM_DESC(size, "Size of the flash mapping");
36 MODULE_PARM_DESC(width, "Data width of the flash mapping (8/16)");
42 .name = "NatSemi SCx200 DOCCS Flash",
61 .size = ~0 /* calculate from flash size */
65 .offset = ~0, /* calculate from flash size */
72 .name = "NatSemi SCx200 DOCCS Flash",
83 printk(KERN_DEBUG NAME ": NatSemi SCx200 DOCCS Flash Driver\n"); in init_scx200_docflash()
97 /* Try to use the present flash mapping if any */ in init_scx200_docflash()
[all …]
Dsc520cdp.c21 * from AMD. It has two banks of 32-bit Flash ROM, each 8 Megabytes in size,
22 * and up to 512 KiB of 8-bit DIL Flash ROM.
36 ** The Embedded Systems BIOS decodes the first FLASH starting at
38 ** the flash at this location causes the A22 address line to be high
40 ** order address line on the raw flash devices themselves!!
41 ** This causes the top HALF of the flash to be accessed first. Beyond
42 ** the physical limits of the flash, the flash chip aliases over (to
44 ** flash into two and inverts it! If you then try to access this from another
46 ** first half of the flash, but not find what you expect there. That
48 ** BIOS for the second FLASH bank is also quite a bad choice.
[all …]
DMakefile20 obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o
26 obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o
30 obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o
38 obj-$(CONFIG_MTD_DBOX2) += dbox2-flash.o
47 obj-$(CONFIG_MTD_H720X) += h720x-flash.o
54 obj-$(CONFIG_MTD_BFIN_ASYNC) += bfin-async-flash.o
55 obj-$(CONFIG_MTD_RBTX4939) += rbtx4939-flash.o
56 obj-$(CONFIG_MTD_VMU) += vmu-flash.o
57 obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o
58 obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash.o
[all …]
Ddmv182.c5 * Flash map driver for the Dy4 SVME182 board
9 * Based on the SVME181 flash map, by Tom Nelson, Dot4, Inc. for TimeSys Corp.
28 * This driver currently handles only the 16MiB user flash bank 1 on the
30 * (VxWorks boot), or the optional 48MiB expansion flash.
32 * scott.wood@timesys.com: On the newer boards with 128MiB flash, it
33 * now supports the first 96MiB (the boot flash bank containing FFW
41 MODULE_DESCRIPTION("User-programmable flash device on the Dy4 SVME182 board");
56 // Use the remaining 9MiB at the end of flash for the RFS
106 printk("Failed to ioremap FLASH memory area.\n"); in init_svme182()
119 printk(KERN_NOTICE "SVME182 flash device: %dMiB at 0x%08x\n", in init_svme182()
/linux-3.3/drivers/mtd/devices/
Dm25p80.c2 * MTD SPI driver for ST M25Pxx (and similar) serial flash chips
36 #include <linux/spi/flash.h>
38 /* Flash opcodes. */
47 #define OPCODE_CHIP_ERASE 0xc7 /* Erase whole flash chip */
114 static int read_sr(struct m25p *flash) in read_sr() argument
120 retval = spi_write_then_read(flash->spi, &code, 1, &val, 1); in read_sr()
123 dev_err(&flash->spi->dev, "error %d reading SR\n", in read_sr()
135 static int write_sr(struct m25p *flash, u8 val) in write_sr() argument
137 flash->command[0] = OPCODE_WRSR; in write_sr()
138 flash->command[1] = val; in write_sr()
[all …]
Dsst25l.c4 * Driver for SST25L SPI Flash chips
30 #include <linux/spi/flash.h>
72 static int sst25l_status(struct sst25l_flash *flash, int *status) in sst25l_status() argument
88 err = spi_sync(flash->spi, &m); in sst25l_status()
96 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) in sst25l_write_enable() argument
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
107 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
113 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
118 err = sst25l_status(flash, &status); in sst25l_write_enable()
128 static int sst25l_wait_till_ready(struct sst25l_flash *flash) in sst25l_wait_till_ready() argument
[all …]
DKconfig64 This adds an extra check when data is written to the flash.
82 tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
85 This enables access to most modern SPI flash chips, used for
106 tristate "Support SST25L (non JEDEC) SPI Flash chips"
109 This enables access to the non JEDEC SST25L SPI flash chips, used
132 tristate "28F160xx flash driver for LART"
135 This enables the flash driver for LART. Please note that you do
185 Using Compact Flash as an MTD, these usually present themselves to
207 'NAND Flash Translation Layer' option below, which is used to
208 emulate a block device by using a kind of file system on the flash
[all …]
/linux-3.3/drivers/mtd/nand/
DKconfig19 This enables support for accessing all type of NAND flash
28 This adds an extra check when data is written to the flash. The
29 NAND flash device internally checks only bits transitioning
72 Enable the driver for NAND flash on Intel Moorestown, using the
87 tristate "iPAQ H1900 flash"
90 This enables the driver for the iPAQ h1900 flash.
93 tristate "GPIO NAND Flash driver"
96 This enables a GPIO based NAND flash driver.
99 tristate "NAND Flash device on SPIA board"
105 tristate "NAND Flash device on Amstrad E3"
[all …]
/linux-3.3/drivers/sbus/char/
Dflash.c1 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates.
33 } flash; variable
44 if (flash.read_base == flash.write_base) { in flash_mmap()
45 addr = flash.read_base; in flash_mmap()
46 size = flash.read_size; in flash_mmap()
54 addr = flash.read_base; in flash_mmap()
55 size = flash.read_size; in flash_mmap()
57 addr = flash.write_base; in flash_mmap()
58 size = flash.write_size; in flash_mmap()
91 if (file->f_pos > flash.read_size) in flash_llseek()
[all …]
/linux-3.3/drivers/mtd/chips/
DKconfig1 menu "RAM/ROM/Flash chip drivers"
5 tristate "Detect flash chips by Common Flash Interface (CFI) probe"
9 The Common Flash Interface specification was developed by Intel,
10 AMD and other flash manufactures that provides a universal method
11 for probing the capabilities of flash devices. If you wish to
17 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
20 This option enables JEDEC-style probing of flash chips which are not
21 compatible with the Common Flash Interface, but will use the common
22 CFI-targeted flash drivers for any chips which are identified which
31 bool "Flash chip driver advanced configuration options"
[all …]
/linux-3.3/drivers/mtd/
DKconfig5 Memory Technology Devices are flash, RAM and similar chips, often
30 'images' in flash devices by putting a table one of the erase
33 flash.
54 The option specifies which Flash sectors holds the RedBoot
63 bool "Include unallocated flash regions"
65 If you need to register each unallocated flash region as a MTD
81 command line. Multiple flash resources are supported for hardware where
82 different kinds of flash memory are available.
105 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
108 Same flash, but 2 named partitions, the first one being read-only:
[all …]
/linux-3.3/drivers/mtd/onenand/
Donenand_sim.c70 #define ONENAND_CORE(flash) (flash->data) argument
71 #define ONENAND_CORE_SPARE(flash, this, offset) \ argument
72 ((flash->data) + (this->chipsize) + (offset >> 5))
111 struct onenand_flash flash; member
264 struct onenand_flash *flash = this->priv; in onenand_data_handle() local
295 src = ONENAND_CORE(flash) + offset; in onenand_data_handle()
305 src = ONENAND_CORE_SPARE(flash, this, offset); in onenand_data_handle()
312 dest = ONENAND_CORE(flash) + offset; in onenand_data_handle()
335 dest = ONENAND_CORE_SPARE(flash, this, offset); in onenand_data_handle()
353 memset(ONENAND_CORE(flash) + offset, 0xff, erasesize); in onenand_data_handle()
[all …]
DKconfig5 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.
29 Support for a OneNAND flash device connected to an OMAP2/OMAP3 CPU
36 Support for a OneNAND flash device connected to an Samsung SOC.
44 One Block of the NAND Flash Array memory is reserved as
46 Also, 1st Block of NAND Flash Array can be used as OTP.
49 operations as any other NAND Flash Array memory block.
[all …]
/linux-3.3/arch/powerpc/kernel/
Drtas_flash.c13 * firmware image and flash it as it reboots (see rtas.c).
39 /* Flash image status values */
42 #define FLASH_IMG_SHORT -1005 /* Flash image shorter than expected */
43 #define FLASH_IMG_BAD_LEN -1004 /* Bad length value in flash list block */
44 #define FLASH_IMG_NULL_DATA -1003 /* Bad data value in flash list block */
45 #define FLASH_IMG_READY 0 /* Firmware img ready for flash on reboot */
69 /* ibm,manage-flash-image operation tokens */
87 * that needed by the rtas flash update.
106 /* Local copy of the flash block list.
107 * We only allow one open of the flash proc file and create this
[all …]
/linux-3.3/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c2606 * Flash module specific
2610 * FLASH DMA buffer should be big enough to hold both MFG block and
2619 bfa_flash_cb(struct bfa_flash *flash) in bfa_flash_cb() argument
2621 flash->op_busy = 0; in bfa_flash_cb()
2622 if (flash->cbfn) in bfa_flash_cb()
2623 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
2629 struct bfa_flash *flash = cbarg; in bfa_flash_notify() local
2634 if (flash->op_busy) { in bfa_flash_notify()
2635 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify()
2636 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify()
[all …]
/linux-3.3/Documentation/devicetree/bindings/mtd/
Dmtd-physmap.txt1 CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...)
3 Flash chips (Memory Technology Devices) are often used for solid state
7 used, if known, followed by either "cfi-flash", "jedec-flash"
23 - vendor-id : Contains the flash chip's vendor id (1 byte).
24 - device-id : Contains the flash chip's device id (1 byte).
30 portions of a flash are used for what purposes, but which don't
31 use an on-flash partition table such as RedBoot.
37 Flash partitions
44 read-only. This is usually used for flash partitions
50 flash@ff000000 {
[all …]
/linux-3.3/arch/mips/cavium-octeon/
Dflash_setup.c2 * Octeon Bootbus flash setup
37 * address of the flash. in flash_init()
43 * The bootloader always takes the flash and sets its in flash_init()
44 * address so the entire flash fits below in flash_init()
45 * 0x1fc00000. This way the flash aliases to in flash_init()
47 * full flash at the true address, while core boot can in flash_init()
56 pr_notice("Bootbus flash: Setting flash for %luMB flash at " in flash_init()
65 pr_err("Failed to register MTD device for flash\n"); in flash_init()
/linux-3.3/Documentation/arm/SA1100/
DAssabet51 you need to have RedBoot installed in your flash memory. A known to work
74 To initialize the flash directory:
84 Writing a kernel image into flash
96 To write it to flash:
112 Now the kernel can be retrieved from flash like this:
120 The ramdisk image could be stored into flash as well, but there are better
121 solutions for on-flash filesystems as mentioned below.
127 Using JFFS2 (the Second Journalling Flash File System) is probably the most
128 convenient way to store a writable filesystem into flash. JFFS2 is used in
129 conjunction with the MTD layer which is responsible for low-level flash
[all …]
/linux-3.3/drivers/scsi/bfa/
Dbfa_ioc.c3966 * Flash module specific
3970 * FLASH DMA buffer should be big enough to hold both MFG block and
3999 bfa_flash_cb(struct bfa_flash_s *flash) in bfa_flash_cb() argument
4001 flash->op_busy = 0; in bfa_flash_cb()
4002 if (flash->cbfn) in bfa_flash_cb()
4003 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
4009 struct bfa_flash_s *flash = cbarg; in bfa_flash_notify() local
4011 bfa_trc(flash, event); in bfa_flash_notify()
4015 if (flash->op_busy) { in bfa_flash_notify()
4016 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify()
[all …]
/linux-3.3/arch/arm/mach-ixp4xx/
Dgoramo_mlr.c17 #include <asm/mach/flash.h>
53 /* offsets from start of flash ROM = 0x50000000 */
200 /* Flash memory */
211 .name = "IXP4XX-Flash",
337 static inline u8 __init flash_readb(u8 __iomem *flash, u32 addr) in flash_readb() argument
340 return __raw_readb(flash + addr); in flash_readb()
342 return __raw_readb(flash + (addr ^ 3)); in flash_readb()
346 static inline u16 __init flash_readw(u8 __iomem *flash, u32 addr) in flash_readw() argument
349 return __raw_readw(flash + addr); in flash_readw()
351 return __raw_readw(flash + (addr ^ 2)); in flash_readw()
[all …]
/linux-3.3/drivers/scsi/aic94xx/
Daic94xx_sds.c378 /* ---------- FLASH stuff ---------- */
383 #define FLASH_DIR_COOKIE "*** ADAPTEC FLASH DIRECTORY *** "
572 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
573 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
588 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); in asd_reset_flash()
597 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, in asd_read_flash_seg()
603 * asd_find_flash_dir - finds and reads the flash directory
605 * @flash_dir: pointer to flash directory structure
607 * If found, the flash directory segment will be copied to
619 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir()
[all …]
/linux-3.3/arch/cris/boot/rescue/
Dhead_v10.S3 * flash-memory. when it starts, it checks a partition
9 * If any of the checksums fail, we assume the flash is so
10 * corrupt that we can't use it to boot into the ftp flash
12 * receive a flash-loader and new flash image. we dont include
13 * any flash code here, but just accept a certain amount of
39 * 4 bytes [offset in bytes, from start of flash]
57 * write 0's to the flash.
59 * During the wait for serial input, the status LED will flash so the
122 ;; 0x80000000 if loaded in flash (as it should be)
123 ;; Since etrax actually starts at address 2 when booting from flash, we
[all …]

12345678910>>...54