linux_dsm_epyc7002/drivers/mtd/maps
Linus Walleij 2aba2f2a70 mtd: physmap_of: add a hook for Intel IXP4xx flash probing
In order to support device tree probing of IXP4xx NOR flash
chips, a certain big-endian or mixed-endian memory access
pattern need to be used.

I have opted to use the pattern set by previous plug-ins
to physmap for Gemini and Versatile, just override some
functions and reuse most of the physmap core code as it
is to minimize maintenance.

Parts of drivers/mtd/ixp4xx.c are copied into this file.

After we have IXP4xx converted fully to device tree, the
drivers/mtd/ixp4xx.c file will be deleted and this will
be the only access pattern to the IXP4xx flash.

I did not keep the quirk in the flash write function
after probe, where the old code for a while checks for
access to odd addresses, fails and assigns a "faster"
write function once it has convinced probe to only use
2-byte accesses. As we mandate that this device should
be using bank-width = <2> this should not be a problem
unless misconfigured.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2019-10-29 14:24:53 +01:00
..
amd76xrom.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
cfi_flagadm.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
ck804xrom.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
dc21285.c mtd: dc21285: use raw spinlock functions for nw_gpio_lock 2015-05-28 12:01:29 -07:00
esb2rom.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
ichxrom.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
impa7.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
intel_vr_nor.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
ixp4xx.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
Kconfig mtd: physmap_of: add a hook for Intel IXP4xx flash probing 2019-10-29 14:24:53 +01:00
l440gx.c mtd: maps: l440gx: Avoid printing address to dmesg 2019-10-29 14:24:47 +01:00
lantiq-flash.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile mtd: physmap_of: add a hook for Intel IXP4xx flash probing 2019-10-29 14:24:53 +01:00
map_funcs.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
netsc520.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
nettel.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
pci.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pcmciamtd.c drivers/mtd/maps/pcmciamtd.c: __iomem annotations 2016-01-04 10:28:56 -05:00
physmap-core.c mtd: physmap_of: add a hook for Intel IXP4xx flash probing 2019-10-29 14:24:53 +01:00
physmap-gemini.c mtd: physmap_of_gemini: remove extranous __xipram annotation 2019-05-06 21:46:44 +02:00
physmap-gemini.h mtd: maps: Rename physmap_of_{versatile, gemini} into physmap-{versatile, gemini} 2018-11-05 22:24:29 +01:00
physmap-ixp4xx.c mtd: physmap_of: add a hook for Intel IXP4xx flash probing 2019-10-29 14:24:53 +01:00
physmap-ixp4xx.h mtd: physmap_of: add a hook for Intel IXP4xx flash probing 2019-10-29 14:24:53 +01:00
physmap-versatile.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
physmap-versatile.h mtd: maps: Rename physmap_of_{versatile, gemini} into physmap-{versatile, gemini} 2018-11-05 22:24:29 +01:00
pismo.c mtd: pismo: Simplify getting the adapter of a client 2019-09-15 23:50:39 +02:00
plat-ram.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
pmcmsp-flash.c mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy 2017-02-08 13:15:49 -08:00
pxa2xx-flash.c mtd: pxa2xx: Use ioremap_cache insted of ioremap_cached 2019-09-15 23:50:22 +02:00
rbtx4939-flash.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sa1100-flash.c mtd: sa1100: Mark expected switch fall-through 2019-08-20 19:43:15 -05:00
sbc_gxx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
sc520cdp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
scb2_flash.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
scx200_docflash.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
solutionengine.c mtd/maps: fix solutionengine.c printk format warnings 2018-07-24 22:43:10 +02:00
sun_uflash.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
ts5500_flash.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
tsunami_flash.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uclinux.c mtd: maps: Make uclinux_ram_map static 2019-05-06 21:47:01 +02:00
vmu-flash.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 467 2019-06-19 17:09:10 +02:00