/linux/drivers/mtd/maps/ |
H A D | plat-ram.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* drivers/mtd/maps/plat-ram.c 4 * (c) 2004-2005 Simtec Electronics 8 * Generic platform device based RAM map 20 #include <linux/mtd/mtd.h> 21 #include <linux/mtd/map.h> 22 #include <linux/mtd/partitions.h> 23 #include <linux/mtd/plat-ram.h> 27 /* private structure for each mtd platform ram device created */ 31 struct mtd_info *mtd; member [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 depends on MTD!=n 7 bool "Support non-linear mappings of flash chips" 21 with config options or at run-time. 74 and RAM driver code to communicate with chips which are mapped 79 bool "Baikal-T1 Boot ROMs OF-based physical memory map handling" 86 This provides some extra DT physmap parsing for the Baikal-T1 87 platforms, some detection and setting up ROMs-specific accessors. 90 bool "ARM Versatile OF-based physical memory map handling" 100 bool "Cortina Gemini OF-based physical memory map handling" [all …]
|
H A D | pismo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * PISMO memory driver - http://www.pismoworld.org/ 14 #include <linux/mtd/physmap.h> 15 #include <linux/mtd/plat-ram.h> 16 #include <linux/mtd/pismo.h> 52 struct i2c_client *client = to_i2c_client(pdev->dev.parent); in pismo_set_vpp() 55 pismo->vpp(pismo->vpp_data, on); in pismo_set_vpp() 72 .addr = client->addr, in pismo_eeprom_read() 76 .addr = client->addr, in pismo_eeprom_read() 83 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in pismo_eeprom_read() [all …]
|
H A D | uclinux.c | 4 * uclinux.c -- generic memory mapped MTD driver for uclinux 20 #include <linux/mtd/mtd.h> 21 #include <linux/mtd/map.h> 22 #include <linux/mtd/partitions.h> 31 #define MAP_NAME "ram" 39 static unsigned long physaddr = -1; 54 static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, in uclinux_point() argument 57 struct map_info *map = mtd->priv; in uclinux_point() 58 *virt = map->virt + from; in uclinux_point() 60 *phys = map->phys + from; in uclinux_point() [all …]
|
/linux/drivers/mtd/chips/ |
H A D | map_ram.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Common code to handle map devices which are simple RAM 15 #include <linux/mtd/mtd.h> 16 #include <linux/mtd/map.h> 24 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 37 struct mtd_info *mtd; in map_ram_probe() local 39 /* Check the first byte is RAM */ in map_ram_probe() 49 /* Check the last byte is RAM */ in map_ram_probe() 50 map_write8(map, 0x55, map->size-1); in map_ram_probe() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 menu "RAM/ROM/Flash chip drivers" 3 depends on MTD!=n 13 support any device that is CFI-compliant, you need to enable this 18 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips" 22 This option enables JEDEC-style probing of flash chips which are not 24 CFI-targeted flash drivers for any chips which are identified which 26 covers most AMD/Fujitsu-compatible chips and also non-CFI 53 are expected to be wired to the CPU in 'host-endian' form. 85 bool "Support 8-bit buswidth" if MTD_CFI_GEOMETRY [all …]
|
/linux/drivers/mtd/devices/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 menu "Self-contained MTD device drivers" 3 depends on MTD!=n 7 tristate "Ramix PMC551 PCI Mezzanine RAM card support" 10 This provides a MTD device driver for the Ramix PMC551 RAM PCI card 12 These devices come in memory configurations from 32M - 1G. If you 41 tristate "DEC MS02-NV NVRAM module support" 44 This is an MTD driver for the DEC's MS02-NV (54-20948-01) battery 45 backed-up NVRAM module. The module was originally meant as an NFS 52 The module will be called ms02-nv. [all …]
|
H A D | pmc551.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * PMC551 PCI Mezzanine Ram Device 10 * This driver is intended to support the PMC551 PCI Ram device 15 * implements this PCI Ram device as an MTD (Memory Technology 28 * of ram configured (making a grand total of 256MiB onboard). 34 * the ram will cause the driver to detect the onboard memory 49 * Most of the MTD code for this driver was originally written 50 * for the slram.o module in the MTD drivers package which 51 * allows the mapping of system memory into an MTD device. 93 #include <linux/mtd/mtd.h> [all …]
|
H A D | mchp23k256.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Driver for Microchip 23k256 SPI RAM chips 11 #include <linux/mtd/mtd.h> 12 #include <linux/mtd/partitions.h> 30 struct mtd_info mtd; member 39 #define to_mchp23k256_flash(x) container_of(x, struct mchp23k256_flash, mtd) 51 for (i = flash->caps->addr_width; i > 0; i--, addr >>= 8) in mchp23k256_addr2cmd() 57 return 1 + flash->caps->addr_width; in mchp23k256_cmdsz() 60 static int mchp23k256_write(struct mtd_info *mtd, loff_t to, size_t len, in mchp23k256_write() argument 63 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd); in mchp23k256_write() [all …]
|
H A D | ms02-nv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/mtd/mtd.h> 22 #include "ms02-nv.h" 26 "ms02-nv.c: v.1.0.0 13 Aug 2001 Maciej W. Rozycki.\n"; 28 MODULE_AUTHOR("Maciej W. Rozycki <macro@linux-mips.org>"); 29 MODULE_DESCRIPTION("DEC MS02-NV NVRAM module driver"); 34 * Addresses we probe for an MS02-NV at. Modules may be located 45 static const char ms02nv_name[] = "DEC MS02-NV NVRAM"; 46 static const char ms02nv_res_diag_ram[] = "Diagnostic RAM"; 47 static const char ms02nv_res_user_ram[] = "General-purpose RAM"; [all …]
|
/linux/Documentation/devicetree/bindings/mtd/ |
H A D | mtd-physmap.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mtd/mtd-physmap.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 10 - Rob Herring <robh@kernel.org> 17 - $ref: mtd.yaml# 18 - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 23 - items: 24 - enum: [all …]
|
/linux/Documentation/devicetree/bindings/reserved-memory/ |
H A D | phram.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/reserved-memory/phram.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MTD/block device in RAM 10 Specifies that the reserved memory region can be used as an MTD or block 13 The "phram" node is named after the "MTD in PHysical RAM" driver which 17 - Vincent Whitchurch <vincent.whitchurch@axis.com> 20 - $ref: reserved-memory.yaml 21 - $ref: /schemas/mtd/mtd.yaml [all …]
|
/linux/fs/cramfs/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 8 file system for ROM based embedded systems. CramFs is read-only, 20 purpose to remain small and low on RAM usage. It is most suitable 21 for small embedded systems. If you have ample RAM to spare, you may 37 depends on CRAMFS && CRAMFS <= MTD 41 a linear addressed memory range (usually non-volatile memory 47 MTD device capable of direct memory mapping e.g. from 48 the 'physmap' map driver or a resulting MTD partition. 50 the MTD partition named "xip_fs" on the /mnt mountpoint: 52 mount -t cramfs mtd:xip_fs /mnt
|
/linux/drivers/mtd/ |
H A D | Kconfig | 1 menuconfig MTD config 2 tristate "Memory Technology Device (MTD) support" 5 Memory Technology Devices are flash, RAM and similar chips, often 7 will provide the generic support for MTD drivers to register 8 themselves with the kernel and for potential users of MTD devices 11 particular hardware and users of MTD devices. If unsure, say N. 13 if MTD 16 tristate "MTD tests support (DANGEROUS)" 19 This option includes various MTD tests into compilation. The tests 23 WARNING: some of the tests will ERASE entire MTD device which they [all …]
|
H A D | mtdblock_ro.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Simple read-only (writable only for RAM) mtdblock driver 5 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org> 10 #include <linux/mtd/mtd.h> 11 #include <linux/mtd/blktrans.h> 21 err = mtd_read(dev->mtd, (block * 512), 512, &retlen, buf); in mtdblock_readsect() 32 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_writesect() 37 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd() argument 44 dev->mtd = mtd; in mtdblock_add_mtd() 45 dev->devnum = mtd->index; in mtdblock_add_mtd() [all …]
|
/linux/fs/romfs/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 4 depends on BLOCK || MTD 6 This is a very small read-only file system mainly intended for 7 initial ram disks of installation disks, but it could be used for 8 other read-only media as well. Read 30 bool "Block device-backed ROM file system support" 40 bool "MTD-backed ROM file system support" 41 depends on MTD=y || (ROMFS_FS=m && MTD) 43 This permits ROMFS to use MTD based devices directly, without the 45 also allows direct mapping of MTD devices through romfs files under [all …]
|
/linux/include/linux/mtd/ |
H A D | xip.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * MTD primitives for XIP support 9 * This XIP support for MTD has been loosely inspired 28 * those functions so they get relocated to ram. 64 #include <asm/mtd-xip.h> 68 #warning "missing IRQ and timer primitives for XIP MTD support" 69 #warning "some of the XIP MTD support code will be disabled"
|
H A D | plat-ram.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* linux/include/linux/mtd/plat-ram.h 8 * Generic platform device based RAM map
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-mtd | 1 What: /sys/class/mtd/ 4 Contact: linux-mtd@lists.infradead.org 6 The mtd/ class subdirectory belongs to the MTD subsystem 7 (MTD core). 9 What: /sys/class/mtd/mtdX/ 12 Contact: linux-mtd@lists.infradead.org 14 The /sys/class/mtd/mtd{0,1,2,3,...} directories correspond 19 What: /sys/class/mtd/mtdXro/ 22 Contact: linux-mtd@lists.infradead.org 24 These directories provide the corresponding read-only device [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx27-phytec-phycore-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 /dts-v1/; 11 compatible = "phytec,imx27-pcm038", "fsl,imx27"; 18 reg_3v3: regulator-0 { 19 compatible = "regulator-fixed"; 20 regulator-name = "3V3"; 21 regulator-min-microvolt = <3300000>; 22 regulator-max-microvolt = <3300000>; 25 reg_5v0: regulator-1 { 26 compatible = "regulator-fixed"; [all …]
|
H A D | imx6dl-colibri-eval-v3.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2014-2022 Toradex 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 13 #include "imx6qdl-colibri.dtsi" 17 compatible = "toradex,colibri_imx6dl-eval-v3", "toradex,colibri_imx6dl", 31 stdout-path = "serial0:115200n8"; 35 clk16m: clock-16m { 36 compatible = "fixed-clock"; [all …]
|
/linux/drivers/mtd/nand/onenand/ |
H A D | onenand_bbt.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include <linux/mtd/mtd.h> 16 #include <linux/mtd/onenand.h> 20 * check_short_pattern - [GENERIC] check if a pattern is in the buffer 38 for (i = 0; i < td->len; i++) { in check_short_pattern() 39 if (p[i] != td->pattern[i]) in check_short_pattern() 40 return -1; in check_short_pattern() 46 * create_bbt - [GENERIC] Create a bad block table by scanning the device 47 * @mtd: MTD device structure 50 * @chip: create the table for a specific chip, -1 read all chips. [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | mxc_nand.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. 11 #include <linux/mtd/mtd.h> 12 #include <linux/mtd/rawnand.h> 13 #include <linux/mtd/partitions.h> 28 #define NFC_V1_V2_BUF_SIZE (host->regs + 0x00) 29 #define NFC_V1_V2_BUF_ADDR (host->regs + 0x04) 30 #define NFC_V1_V2_FLASH_ADDR (host->regs + 0x06) 31 #define NFC_V1_V2_FLASH_CMD (host->regs + 0x08) 32 #define NFC_V1_V2_CONFIG (host->regs + 0x0a) [all …]
|
/linux/Documentation/filesystems/ |
H A D | cramfs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Cramfs - cram a filesystem onto a small ROM 10 allows random page access. The meta-data is not compressed, but is 15 compact also makes it _very_ hard to update on-the-fly), so you have to 20 ----------- 36 no need to use -noleaf in ``find``, btw.) 39 (1970 GMT). Recently-accessed files may have updated timestamps, but 52 -------------------------- 62 eXecute-In-Place (XIP) from ROM of read-only segments. Data segments mapped 63 read-write (hence they have to be copied to RAM) may still be compressed in [all …]
|
/linux/arch/powerpc/boot/dts/ |
H A D | pdm360ng.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009 - 2010 DENX Software Engineering. 17 #address-cells = <1>; 18 #size-cells = <1>; 19 interrupt-parent = <&ipic>; 27 bank-width = <0x1>; 41 compatible = "amd,s29gl01gp", "cfi-flash"; 44 #address-cells = <1>; 45 #size-cells = <1>; 46 bank-width = <4>; [all …]
|