- 06 4月, 2021 1 次提交
-
-
We had a problem detecting 8/16bit flash devices connected only via 8bits to the SoC for quite a while. Commit 239cb9d9 [mtd: cfi_flash: Fix CFI flash driver for 8-bit bus support] finally fixed this 8-bit bus support. But also broke some other boards using this cfi driver. So this patch had to be reverted. I spotted a different, simpler approach for this 8-bit bus support on the barebox mailing list posted by Oleksij Rempel <bug-track@fisher-privat.net>: http://www.spinics.net/lists/u-boot-v2/msg14687.html Here the commit text: " Many cfi chips support 16 and 8 bit modes. Most important difference is use of so called "Q15/A-1" pin. In 16bit mode this pin is used for data IO. In 8bit mode, it is an address input which add one more least significant bit (LSB). In this case we should shift all adresses by one: For example 0xaa << 1 = 0x154 " This patch now is a port of this barebox patch to U-Boot. Along with the change w.r.t from barebox, Some flash chips can support multiple bus widths, override the interface width and limit it to the port width. Tested on 16-bit Spansion flash on sequoia. Tested 8-bit flashes like 256M29EW, 512M29EW. Signed-off-by: NStefan Roese <sr@denx.de> Tested-by: NJagannadha Sutradharudu Teki <jaganna@xilinx.com> Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com> Cc: Aaron Williams <awilliams@marvell.com> Cc: Chandrakala Chavva <cchavva@marvell.com> Cc: Andre Przywara <andre.przywara@arm.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Simon Glass <sjg@chromium.org> Cc: Mario Six <mario.six@gdsys.cc> Cc: York Sun <york.sun@nxp.com> Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
-
- 19 5月, 2020 1 次提交
-
-
由 Simon Glass 提交于
Some functions use the wrong code style and generate checkpatch errors. Fix these. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 25 1月, 2020 1 次提交
-
-
由 Simon Glass 提交于
This function belongs more in flash.h than common.h so move it. Also remove the space before the bracket in some calls. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 18 1月, 2020 1 次提交
-
-
由 Simon Glass 提交于
This function belongs more in flash.h than common.h so move it. Also remove the space before the bracket in some calls. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 04 12月, 2019 1 次提交
-
-
由 Miquel Raynal 提交于
CONFIG_MTD must be reserved for the MTD core. Like any other subsystem, prefix the symbol by DM when it comes to DM support. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: NBoris Brezillon <boris.brezillon@bootlin.com> [trini: Add Kconfig files] Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 07 5月, 2018 1 次提交
-
-
由 Tom Rini 提交于
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 29 1月, 2018 1 次提交
-
-
由 Mario Six 提交于
checkpatch.pl complains about the spelling of ERR_TIMOUT. Since the error is only used in a handful of files, we rename the error to ERR_TIMEOUT. Signed-off-by: NMario Six <mario.six@gdsys.cc> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 26 9月, 2017 2 次提交
-
-
由 Marek Vasut 提交于
The status register is optional in the AMD command sets, but it's presence can be checked by reading out CFI table entry 0xc bit 0. If the register is present, prefer using it's bit 7 to determine if the flash is busy over reading the flash ; this is needed ie. on Hyperflash memories. Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
由 Marek Vasut 提交于
Embed the flash base into struct flash_info instead of having ad-hoc static array in the code. This does not only remove static variable, but also allows CFI-like controllers, ie. HyperFlash ones, to use most of the CFI flash code by populating the flash_info with matching base address. Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 22 8月, 2017 1 次提交
-
-
由 Marek Vasut 提交于
Staticize a few functions and variables which are no longer exposed. Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com> Cc: Stefan Roese <sr@denx.de> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 14 8月, 2017 1 次提交
-
-
由 Patrice Chotard 提交于
A few years ago STM32F1 SoCs support has been added : 0144caf2 gpio: stm32: add stm32f1 support 2d18ef23 ARMv7M: add STM32F1 support But neither STM32F1 dedicated defconfig nor board was associated to these commits. Got confirmation from Tom Rini and Matt Porter to remove all this code [1] [1] http://u-boot.10912.n7.nabble.com/Remove-STM32F1-support-td301603.htmlSigned-off-by: NPatrice Chotard <patrice.chotard@st.com> Reviewed-by: NTom Rini <trini@konsulko.com>
-
- 08 8月, 2017 1 次提交
-
-
由 Marek Vasut 提交于
This is defined twice in the same file, with the same value, likely because of some patch merge issue. Pick the uglier one and nuke it. Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 21 5月, 2016 1 次提交
-
-
由 Purna Chandra Mandal 提交于
Microchip PIC32 has internal parallel flash (non-CFI compliant). These flash devices do not support any identifier command so no standard IDs. Added unique IDs to seperate these flash devices from others supported by U-Boot. Signed-off-by: NPurna Chandra Mandal <purna.mandal@microchip.com>
-
- 27 3月, 2016 1 次提交
-
-
由 Vikas Manocha 提交于
Same flash driver can be used by other stm32 families like stm32f7. Better place for this driver would be mtd driver location. Signed-off-by: NVikas Manocha <vikas.manocha@st.com>
-
- 30 11月, 2015 1 次提交
-
-
由 Thomas Chou 提交于
Give default CONFIG_SYS_MAX_FLASH_SECT in flash.h, so that the header can be included regardless of the present of flash. The value 512 is the most used. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 12 11月, 2015 1 次提交
-
-
由 Thomas Chou 提交于
Implement a Memory Technology Device (MTD) uclass. It should include most flash drivers in the future. Though no uclass ops are defined yet, the MTD ops could be used. The NAND flash driver is based on MTD. The CFI flash and SPI flash support MTD, too. It should make sense to convert them to MTD uclass. Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
- 28 5月, 2015 1 次提交
-
-
由 Matt Porter 提交于
Add ARMv7M STM32F1 support including clocks, timer, gpio, and flash. Signed-off-by: NMatt Porter <mporter@konsulko.com>
-
- 23 4月, 2015 1 次提交
-
-
由 rev13@wp.pl 提交于
Signed-off-by: NKamil Lulko <rev13@wp.pl> Reviewed-by: NTom Rini <trini@konsulko.com>
-
- 19 11月, 2014 1 次提交
-
-
由 Dirk Eibach 提交于
The device id makes u-boot think that this chip needs cfi_reverse_geometry(), which is not the case. Add it to jedec_flash, so it is handled properly. Signed-off-by: NDirk Eibach <dirk.eibach@gdsys.cc> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 15 10月, 2013 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 24 7月, 2013 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: NTom Rini <trini@ti.com>
-
- 10 1月, 2013 1 次提交
-
-
由 Angelo Dureghello 提交于
Add support for SST 4KB sector granularity. Many recent SST flashes, i.e. SST39VF3201B and similar of this family are declared CFI-conformant from SST. They support CFI query, but implement 2 different sector sizes in the same memory: a 64KB sector (they call it "block", std AMD erase cmd=0x30), and a 4KB sector (they call it "sector", erase cmd=0x50). Also, CFI query on these chips, reading from address 0x2dh of cfi query struct, detects a number of secotrs for the 4KB granularity (flinfo shows it). For all other aspects, they are CFI compliant, so, as Linux do, i think it's a good idea to handle these chips in the CFI driver, with a fixup to allow 4KB granularity, as should be expected, instead of 64KB. Signed-off-by: NAngelo Dureghello <sysamfw@gmail.com> Signed-off-by: NStefan Rose <sr@denx.de>
-
- 27 10月, 2012 1 次提交
-
-
由 Marek Vasut 提交于
This stuff has been rotting in the tree for a year now. Remove it. Signed-off-by: NMarek Vasut <marex@denx.de>
-
- 03 9月, 2012 1 次提交
-
-
由 Joe Hershberger 提交于
Check for ctrlc() in operations that take time and loop over the flash addresses. In netconsole, tstc() is expensive. Only check once in a while to not slow down the operation significantly. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 13 8月, 2012 1 次提交
-
-
由 Holger Brunck 提交于
commit 54652991 Work around bug in Numonyx P33/P30 256-Mbit 65nm flash chips fixes a problem for Numonyx P33/P30 flashes for 256-Mbit, but this leads to problems for smaller versions of this chip e.g. the 32Mbit version with deviceid 0x16 on mgcoge. So move the code for this work around to an own function and check previously manufacturer id and device id to not break other flashes which don't need this work around. Signed-off-by: NHolger Brunck <holger.brunck@keymile.com> Signed-off-by: NHeiko Schocher <hs@denx.de> cc: Stefan Roese <sr@denx.de> cc: Philippe De Muyter <phdm@macqel.be> cc: Gerlando Falauto <gerlando.falauto@keymile.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 07 4月, 2011 1 次提交
-
-
由 Heiko Schocher 提交于
collect code which protects default sectors in a function, called flash_protect_default. So boardspecific code can call it too. Signed-off-by: NHeiko Schocher <hs@denx.de> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 20 9月, 2010 1 次提交
-
-
由 Stefan Roese 提交于
This patch simplifies the use of CONFIG_SYS_MAX_FLASH_BANKS_DETECT. By moving these optional variables and defines into the common code, board specific code is minimized. Currently only the following board use this feature: APC405, IDS8247, TQM834x And IDS8247 doesn't seem to really need this feature, since its not updating the bank number variable at all. So this patch removes the definition of CONFIG_SYS_MAX_FLASH_BANKS_DETECT from this board port. This new framework will be used by the upcoming lwmon5 update as well. Signed-off-by: NStefan Roese <sr@denx.de> Acked-by: NHeiko Schocher <hs@denx.de> Cc: Matthias Fuchs <matthias.fuchs@esd.eu>
-
- 26 8月, 2009 1 次提交
-
-
由 Niklaus Giger 提交于
see http://www.jedec.org/download/search/jep106Z.pdf Add some second source legacy flash chips 256x8. Signed-off-by: NNiklaus Giger <niklaus.giger@member.fsf.org> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 05 4月, 2009 1 次提交
-
-
由 Andreas Huber 提交于
On platforms with multiple NOR chips, currently only the first one can be selected using the "ubi part" command. This patch fixes this problem by using different names for the NOR "mtd devices". It also changes the name of the NOR MTD device from "cfi-mtd" to "norX" (X indexing the device numer) to better match the mtdparts defaults. Signed-off-by: NStefan Roese <sr@denx.de> Signed-off-by: NAndreas Huber <andreas.huber@keymile.com>
-
- 12 2月, 2009 1 次提交
-
-
由 Heiko Schocher 提交于
If on your board is more than one flash, you must know the size of every single flash, for example, for updating the DTS before booting Linux. So make this function flash_get_info() extern, and you can have all info about your flashes. Signed-off-by: NHeiko Schocher <hs@denx.de> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 05 2月, 2009 1 次提交
-
-
由 Becky Bruce 提交于
include/flash.h was commented to say that the address in flash_info->start was a physical address. However, from u-boot's point of view, and looking at most flash code, it makes more sense for this to be a virtual address. So I corrected the comment to indicate that this was a virtual address. The only flash driver that was actually treating the address as physical was the mtd/cfi_flash driver. However, this code was using it inconsistently as it actually directly dereferenced the "start" element, while it used map_physmem to get a virtual address in other places. I changed this driver so that the code which initializes the info->start field calls map_physmem to get a virtual address, eliminating the need for further map_physmem calls. The code is now consistent. The *only* place a physical address should be used is when defining the flash banks list that is used to initialize the flash_info struct, usually found in the board config file. Signed-off-by: NBecky Bruce <beckyb@kernel.crashing.org> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 24 11月, 2008 3 次提交
-
-
由 Piotr Ziecik 提交于
Add cfi-mtd driver, which exports CFI flash to MTD layer. This allows CFI flash devices to be used from MTD layer. Building of the new driver is controlled by CONFIG_FLASH_CFI_MTD option. Initialization is done by calling cfi_mtd_init() from flash_init(). Signed-off-by: NPiotr Ziecik <kosmo@semihalf.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
由 Piotr Ziecik 提交于
Add interface for flash verbosity control. It allows to disable output from low-level flash API. It is useful when calling these low-level functions from context other than flash commands (for example the MTD/CFI interface implmentation). Signed-off-by: NPiotr Ziecik <kosmo@semihalf.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
由 Piotr Ziecik 提交于
Export flash_sector_size() function from drivers/mtd/cfi_flash.c, so that it can be used in the upcoming cfi-mtd driver. Signed-off-by: NPiotr Ziecik <kosmo@semihalf.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 19 10月, 2008 2 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
由 Bartlomiej Sieka 提交于
The upcoming automatic update feature needs the ability to adjust an address within Flash to the end of its respective sector. Factor out this functionality to a new function flash_sect_roundb(). Signed-off-by: NRafal Czubak <rcz@semihalf.com> Signed-off-by: NBartlomiej Sieka <tur@semihalf.com> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 21 5月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 13 12月, 2007 1 次提交
-
-
由 Bartlomiej Sieka 提交于
Fixes non-working CFI Flash on the Inka4x0 board. Signed-off-by: NBartlomiej Sieka <tur@semihalf.com>
-
- 08 12月, 2007 1 次提交
-
-
由 Michael Schwingen 提交于
The following patch adds support for non-CFI flash ROMS, by hooking into the CFI flash code and using most of its code, as recently discussed here in the thread "Mixing CFI and non-CFI flashs". Signed-off-by: NMichael Schwingen <michael@schwingen.org> Signed-off-by: NStefan Roese <sr@denx.de>
-
- 14 8月, 2007 1 次提交
-
-
由 Peter Pearse 提交于
Merge to two at45.c files into a common file, split to at45.c and spi.c Fix spelling error in DM9161 PHY Support. Initialize at91rm9200 board (and set LED). Add PIO control for at91rm9200dk LEDs and Mux. Change dataflash partition boundaries to be compatible with Linux 2.6. Signed-off-by: NPeter Pearse <peter.pearse@arm.com> Signed-off-by: NUlf Samuelsson <ulf@atmel.com>
-