Home
last modified time | relevance | path

Searched +full:mtd +full:- +full:ram (Results 1 – 25 of 172) sorted by relevance

1234567

/openbmc/linux/drivers/mtd/maps/
H A Dplat-ram.c1 // 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 DKconfig1 # 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 Dpismo.c1 // 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 Duclinux.c4 * 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 …]
/openbmc/linux/drivers/mtd/chips/
H A Dmap_ram.c1 // 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 DKconfig1 # 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 …]
/openbmc/linux/drivers/mtd/devices/
H A DKconfig1 # 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 Dpmc551.c1 // 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 Dmchp23k256.c1 // 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 Dms02-nv.c1 // 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 …]
/openbmc/u-boot/doc/device-tree-bindings/mtd/
H A Dmtd-physmap.txt1 CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...)
6 - compatible : should contain the specific model of mtd chip(s)
7 used, if known, followed by either "cfi-flash", "jedec-flash",
8 "mtd-ram" or "mtd-rom".
9 - reg : Address range(s) of the mtd chip(s)
11 non-identical chips can be described in one node.
12 - bank-width : Width (in bytes) of the bank. Equal to the
14 - device-width : (optional) Width of a single mtd chip. If
15 omitted, assumed to be equal to 'bank-width'.
16 - #address-cells, #size-cells : Must be present if the device has
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/initrdscripts/files/
H A Dobmc-update.sh10 if ! test -r /proc/mounts || ! test -f /proc/mounts
12 mkdir -p /proc
13 mount -t proc proc proc
15 if ! test -d /sys/class
17 mkdir -p /sys
18 mount -t sysfs sys sys
20 if ! test -c /dev/null
22 mkdir -p /dev
23 mount -t devtmpfs dev dev
26 # mtd number N with mtd name Name can be mounted via mtdN, or mtd:Name
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mtd/
H A Dmtd-physmap.yaml1 # 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 …]
/openbmc/linux/Documentation/devicetree/bindings/reserved-memory/
H A Dphram.yaml1 # 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 …]
/openbmc/linux/fs/cramfs/
H A DKconfig1 # 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
/openbmc/linux/drivers/mtd/
H A DKconfig1 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 Dmtdblock_ro.c1 // 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 …]
/openbmc/docs/architecture/code-update/
H A Dflash-layout.md4 code update application requires to be supported out-of-the-box, which includes
7 [code-update.md](code-update.md) for details about code update interfaces.
13 For system initialization and bootstrap, [Das U-Boot][] was selected as the
36 For storage of the root filesystem, a read-only volume was selected. This allows
38 data files, to be stored in a read-only filesystem image. Replacing read-only
50 read-only filesystem content. This applies to systems with limited attached
56 for the BMC can be stored in the U-Boot environment, and an init script can
70 #### JFFS2 on MTD partition
72 The majority of the filesystem is stored in a read-only squashfs in an MTD
73 partition using the block emulation driver (mtdblock). A second MTD partition is
[all …]
/openbmc/linux/fs/romfs/
H A DKconfig1 # 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 …]
/openbmc/u-boot/drivers/mtd/
H A DKconfig1 menu "MTD Support"
6 config MTD config
7 bool "Enable Driver Model for MTD drivers"
10 Enable driver model for Memory Technology Devices (MTD), such as
11 flash, RAM and similar chips, often used for solid state file
20 bool "Enable MTD Device for NAND and ONENAND devices"
22 Adds the MTD device infrastructure from the Linux kernel.
31 support any device that is CFI-compliant, you need to enable this
37 depends on MTD
42 support any device that is CFI-compliant, you need to enable this
[all …]
/openbmc/u-boot/drivers/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0+
3 obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
4 obj-$(CONFIG_$(SPL_TPL_)DM) += core/
5 obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/
6 obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/
7 obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
8 obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
9 obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
10 obj-$(CONFIG_$(SPL_TPL_)LED) += led/
11 obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
[all …]
/openbmc/u-boot/include/configs/km/
H A Dkeymile-common.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2008-2011
66 "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \
75 "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \
77 "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_APP
79 "ubiattach=if test ${boot_bank} -eq 0; then; " \
94 * - set 'subbootcmds'
95 * - set 'bootcmd' and 'altbootcmd'
97 * - 'release': for a standalone system kernel/rootfs from flash
104 "tftp 200000 scripts/develop-${arch}.txt && " \
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxc_nand.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2004-2007 Freescale Semiconductor, Inc.
14 #include <asm/arch/imx-regs.h>
103 while (size--) in mxc_nand_memcpy32()
117 while (max_retries-- > 0) {
119 tmp = readnfc(&host->regs->config2);
122 writenfc(tmp, &host->regs->config2);
124 tmp = readnfc(&host->ip_regs->ipc);
127 writenfc(tmp, &host->ip_regs->ipc);
147 writenfc(cmd, &host->regs->flash_cmd);
[all …]
/openbmc/openbmc/meta-phosphor/dynamic-layers/aspeed-layer/recipes-bsp/u-boot/files/
H A D0003-config-ast-common-Add-bootopts-to-support-ubi-and-mt.patch3 Date: Wed, 9 Aug 2017 14:11:56 -0500
4 Subject: [PATCH 3/4] config/ast-common: Add bootopts to support ubi and mtd
7 Upstream-Status: Pending
9 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
10 ---
11 include/configs/ast-common.h | 19 +++++++++++++++++--
12 1 file changed, 17 insertions(+), 2 deletions(-)
14 diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
16 --- a/include/configs/ast-common.h
17 +++ b/include/configs/ast-common.h
[all …]
/openbmc/linux/include/linux/mtd/
H A Dxip.h1 /* 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"

1234567