Home
last modified time | relevance | path

Searched +full:physmap +full:- +full:flash (Results 1 – 25 of 179) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/mtd/maps/
DMakefile1 # SPDX-License-Identifier: GPL-2.0
7 obj-$(CONFIG_MTD) += map_funcs.o
11 obj-$(CONFIG_MTD_CFI_FLAGADM) += cfi_flagadm.o
12 obj-$(CONFIG_MTD_DC21285) += dc21285.o
13 obj-$(CONFIG_MTD_L440GX) += l440gx.o
14 obj-$(CONFIG_MTD_AMD76XROM) += amd76xrom.o
15 obj-$(CONFIG_MTD_ESB2ROM) += esb2rom.o
16 obj-$(CONFIG_MTD_ICHXROM) += ichxrom.o
17 obj-$(CONFIG_MTD_CK804XROM) += ck804xrom.o
18 obj-$(CONFIG_MTD_TSUNAMI) += tsunami_flash.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
7 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
21 with config options or at run-time.
24 module will be called physmap.
27 bool "Physmap compat support"
32 physmap configuration options are done via your board's
[all …]
Dphysmap-gemini.c1 // SPDX-License-Identifier: GPL-2.0
3 * Cortina Systems Gemini OF physmap add-on
6 * This SoC has an elaborate flash control register, so we need to
18 #include "physmap-gemini.h"
21 * The Flash-relevant parts of the global status register
63 if (IS_ERR(gf->enabled_state)) in gemini_flash_enable_pins()
65 ret = pinctrl_select_state(gf->p, gf->enabled_state); in gemini_flash_enable_pins()
67 dev_err(gf->dev, "failed to enable pins\n"); in gemini_flash_enable_pins()
74 if (IS_ERR(gf->disabled_state)) in gemini_flash_disable_pins()
76 ret = pinctrl_select_state(gf->p, gf->disabled_state); in gemini_flash_disable_pins()
[all …]
Dphysmap-ixp4xx.c1 // SPDX-License-Identifier: GPL-2.0
3 * Intel IXP4xx OF physmap add-on
10 * Copyright (C) 2003-2004 MontaVista Software, Inc.
17 #include "physmap-ixp4xx.h"
20 * Read/write a 16 bit word from flash address 'addr'.
22 * When the cpu is in little-endian mode it swizzles the address lines
24 * and the like end up on the correct flash address.
27 * handles 32 bit reads, the byte stream ABCD is stored on the flash as:
29 * +---+---+
31 * +---+---+
[all …]
Dphysmap-core.c1 // SPDX-License-Identifier: GPL-2.0+
8 * 031022 - [jsun] add run-time configure and partition setup
14 * Revised to handle newer style flash binding by:
18 * Handle the case where a flash device is mostly addressed using physical
19 * line and supplemented by GPIOs. This way you can hook up say a 8MiB flash
23 * Copyright © 2005-2009 Analog Devices Inc.
36 #include <linux/mtd/physmap.h>
44 #include "physmap-bt1-rom.h"
45 #include "physmap-gemini.h"
46 #include "physmap-ixp4xx.h"
[all …]
Drbtx4939-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rbtx4939-flash (based on physmap.c)
5 * This is a simplified physmap driver with map_init callback function.
34 if (info->mtd) { in rbtx4939_flash_remove()
35 mtd_device_unregister(info->mtd); in rbtx4939_flash_remove()
36 map_destroy(info->mtd); in rbtx4939_flash_remove()
53 pdata = dev_get_platdata(&dev->dev); in rbtx4939_flash_probe()
55 return -ENODEV; in rbtx4939_flash_probe()
59 return -ENODEV; in rbtx4939_flash_probe()
60 info = devm_kzalloc(&dev->dev, sizeof(struct rbtx4939_flash_info), in rbtx4939_flash_probe()
[all …]
/kernel/linux/linux-6.6/drivers/mtd/maps/
DMakefile1 # SPDX-License-Identifier: GPL-2.0
7 obj-$(CONFIG_MTD) += map_funcs.o
11 obj-$(CONFIG_MTD_CFI_FLAGADM) += cfi_flagadm.o
12 obj-$(CONFIG_MTD_DC21285) += dc21285.o
13 obj-$(CONFIG_MTD_L440GX) += l440gx.o
14 obj-$(CONFIG_MTD_AMD76XROM) += amd76xrom.o
15 obj-$(CONFIG_MTD_ESB2ROM) += esb2rom.o
16 obj-$(CONFIG_MTD_ICHXROM) += ichxrom.o
17 obj-$(CONFIG_MTD_CK804XROM) += ck804xrom.o
18 obj-$(CONFIG_MTD_TSUNAMI) += tsunami_flash.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
7 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
21 with config options or at run-time.
24 module will be called physmap.
27 bool "Physmap compat support"
32 physmap configuration options are done via your board's
[all …]
Dphysmap-gemini.c1 // SPDX-License-Identifier: GPL-2.0
3 * Cortina Systems Gemini OF physmap add-on
6 * This SoC has an elaborate flash control register, so we need to
18 #include "physmap-gemini.h"
21 * The Flash-relevant parts of the global status register
63 if (IS_ERR(gf->enabled_state)) in gemini_flash_enable_pins()
65 ret = pinctrl_select_state(gf->p, gf->enabled_state); in gemini_flash_enable_pins()
67 dev_err(gf->dev, "failed to enable pins\n"); in gemini_flash_enable_pins()
74 if (IS_ERR(gf->disabled_state)) in gemini_flash_disable_pins()
76 ret = pinctrl_select_state(gf->p, gf->disabled_state); in gemini_flash_disable_pins()
[all …]
Dphysmap-ixp4xx.c1 // SPDX-License-Identifier: GPL-2.0
3 * Intel IXP4xx OF physmap add-on
10 * Copyright (C) 2003-2004 MontaVista Software, Inc.
17 #include "physmap-ixp4xx.h"
20 * Read/write a 16 bit word from flash address 'addr'.
22 * When the cpu is in little-endian mode it swizzles the address lines
24 * and the like end up on the correct flash address.
27 * handles 32 bit reads, the byte stream ABCD is stored on the flash as:
29 * +---+---+
31 * +---+---+
[all …]
Dphysmap-core.c1 // SPDX-License-Identifier: GPL-2.0+
8 * 031022 - [jsun] add run-time configure and partition setup
14 * Revised to handle newer style flash binding by:
18 * Handle the case where a flash device is mostly addressed using physical
19 * line and supplemented by GPIOs. This way you can hook up say a 8MiB flash
23 * Copyright © 2005-2009 Analog Devices Inc.
36 #include <linux/mtd/physmap.h>
44 #include "physmap-bt1-rom.h"
45 #include "physmap-gemini.h"
46 #include "physmap-ixp4xx.h"
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mtd/
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>
13 Flash chips (Memory Technology Devices) are often used for solid state
17 - $ref: mtd.yaml#
18 - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml#
23 - items:
[all …]
/kernel/linux/linux-5.10/arch/mips/netlogic/xlr/
Dplatform-flash.c18 #include <linux/spi/flash.h>
21 #include <linux/mtd/physmap.h>
26 #include <asm/netlogic/xlr/flash.h>
58 /* Use PHYSMAP flash for NOR */
72 .name = "physmap-flash",
81 * Use "gen_nand" driver for NAND flash
125 .id = -1,
134 * XLR/XLS supports upto 8 devices on its FLASH interface. The value in
136 * flash devices.
137 * Under this, each flash device has an offset and size given by the
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dsimtec-nor.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <linux/mtd/physmap.h>
56 .name = "physmap-flash",
57 .id = -1,
71 printk(KERN_ERR "failed to register physmap-flash device\n"); in nor_simtec_init()
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
Dh5000.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2000-2003 Hewlett-Packard Company.
7 * Copyright 2004-2005 Phil Blundell <pb@handhelds.org>
8 * Copyright 2007-2008 Anton Vorontsov <cbouatmailru@gmail.com>
22 #include <linux/mtd/physmap.h>
24 #include <asm/mach-types.h>
37 * Flash
57 .size = SZ_16M - 0x00040000,
82 .end = PXA_CS0_PHYS + SZ_32M - 1,
88 .end = PXA_CS0_PHYS + SZ_32M + SZ_16M - 1,
[all …]
/kernel/linux/linux-6.6/drivers/bcma/
Ddriver_chipcommon_pflash.c3 * ChipCommon parallel flash
11 #include <linux/mtd/physmap.h>
26 .name = "physmap-flash",
36 struct bcma_pflash *pflash = &cc->pflash; in bcma_pflash_init()
38 pflash->present = true; in bcma_pflash_init()
40 if (!(bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & BCMA_CC_FLASH_CFG_DS)) in bcma_pflash_init()
/kernel/linux/linux-5.10/drivers/bcma/
Ddriver_chipcommon_pflash.c3 * ChipCommon parallel flash
11 #include <linux/mtd/physmap.h>
26 .name = "physmap-flash",
36 struct bcma_pflash *pflash = &cc->pflash; in bcma_pflash_init()
38 pflash->present = true; in bcma_pflash_init()
40 if (!(bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & BCMA_CC_FLASH_CFG_DS)) in bcma_pflash_init()
/kernel/linux/linux-5.10/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
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'.
[all …]
Dintel,ixp4xx-flash.txt1 Flash device on Intel IXP4xx SoC
3 This flash is regular CFI compatible (Intel or AMD extended) flash chips with
4 specific big-endian or mixed-endian memory access pattern.
7 - compatible : must be "intel,ixp4xx-flash", "cfi-flash";
8 - reg : memory address for the flash chip
9 - bank-width : width in bytes of flash interface, should be <2>
11 For the rest of the properties, see mtd-physmap.txt.
13 The device tree may optionally contain sub-nodes describing partitions of the
18 flash@50000000 {
19 compatible = "intel,ixp4xx-flash", "cfi-flash";
[all …]
/kernel/linux/linux-6.6/arch/mips/bcm63xx/
Ddev-flash.c2 * Broadcom BCM63xx flash registration
18 #include <linux/mtd/physmap.h>
50 .name = "physmap-flash",
99 return -EINVAL; in bcm63xx_detect_flash_type()
121 pr_warn("unsupported serial flash detected\n"); in bcm63xx_flash_register()
122 return -ENODEV; in bcm63xx_flash_register()
124 pr_warn("unsupported NAND flash detected\n"); in bcm63xx_flash_register()
125 return -ENODEV; in bcm63xx_flash_register()
127 pr_err("flash detection failed for BCM%x: %d\n", in bcm63xx_flash_register()
129 return -ENODEV; in bcm63xx_flash_register()
/kernel/linux/linux-5.10/arch/mips/bcm63xx/
Ddev-flash.c2 * Broadcom BCM63xx flash registration
18 #include <linux/mtd/physmap.h>
50 .name = "physmap-flash",
99 return -EINVAL; in bcm63xx_detect_flash_type()
121 pr_warn("unsupported serial flash detected\n"); in bcm63xx_flash_register()
122 return -ENODEV; in bcm63xx_flash_register()
124 pr_warn("unsupported NAND flash detected\n"); in bcm63xx_flash_register()
125 return -ENODEV; in bcm63xx_flash_register()
127 pr_err("flash detection failed for BCM%x: %d\n", in bcm63xx_flash_register()
129 return -ENODEV; in bcm63xx_flash_register()
/kernel/linux/linux-6.6/arch/m68k/coldfire/
Dfirebee.c1 // SPDX-License-Identifier: GPL-2.0
5 * firebee.c -- extra startup code support for the FireBee boards
18 #include <linux/mtd/physmap.h>
25 * 8MB of NOR flash fitted to the FireBee board.
27 #define FLASH_PHYS_ADDR 0xe0000000 /* Physical address of flash */
28 #define FLASH_PHYS_SIZE 0x00800000 /* Size of flash */
30 #define PART_BOOT_START 0x00000000 /* Start at bottom of flash */
33 #define PART_IMAGE_SIZE 0x006c0000 /* Most of flash */
68 .name = "physmap-flash",
/kernel/linux/linux-5.10/arch/m68k/coldfire/
Dfirebee.c1 // SPDX-License-Identifier: GPL-2.0
5 * firebee.c -- extra startup code support for the FireBee boards
18 #include <linux/mtd/physmap.h>
25 * 8MB of NOR flash fitted to the FireBee board.
27 #define FLASH_PHYS_ADDR 0xe0000000 /* Physical address of flash */
28 #define FLASH_PHYS_SIZE 0x00800000 /* Size of flash */
30 #define PART_BOOT_START 0x00000000 /* Start at bottom of flash */
33 #define PART_IMAGE_SIZE 0x006c0000 /* Most of flash */
68 .name = "physmap-flash",
/kernel/linux/linux-6.6/arch/sh/boards/
Dboard-espt.c1 // SPDX-License-Identifier: GPL-2.0
3 * Data Technology Inc. ESPT-GIGA board support
11 #include <linux/mtd/physmap.h>
18 /* NOR Flash */
21 .name = "U-Boot",
24 .mask_flags = MTD_WRITEABLE, /* Read-only */
26 .name = "Linux-Kernel",
44 .name = "NOR Flash",
46 .end = SZ_8M - 1,
52 .name = "physmap-flash",
[all …]
/kernel/linux/linux-5.10/arch/sh/boards/
Dboard-espt.c1 // SPDX-License-Identifier: GPL-2.0
3 * Data Technology Inc. ESPT-GIGA board support
11 #include <linux/mtd/physmap.h>
18 /* NOR Flash */
21 .name = "U-Boot",
24 .mask_flags = MTD_WRITEABLE, /* Read-only */
26 .name = "Linux-Kernel",
44 .name = "NOR Flash",
46 .end = SZ_8M - 1,
52 .name = "physmap-flash",
[all …]

12345678