- Sep 17, 2009
-
-
Simon Kagstrom authored
Commits 02f99901 52d61227 introduced a regression where platform-specific ffs/fls implementations were defined away. This patch corrects that by using PLATFORM_xxx instead of the name itself. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Stefan Roese <sr@denx.de>
-
- Sep 15, 2009
-
-
Simon Kagstrom authored
UBIFS requires fls(), which is not defined for arm (and some other architectures) and this patch adds it. The implementation is taken from Linux and is generic. ffs() is also defined for those that miss it. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net>
-
Simon Kagstrom authored
__set_bit and __clear_bit are defined in ubifs.h as well as in asm/include/bitops.h for some architectures. This patch moves the generic implementation to include/linux/bitops.h and uses that unless it's defined by the architecture. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net>
-
- Aug 26, 2009
-
-
Sandeep Paulraj authored
This patch adds the new mode NAND_ECC_HW_OOB_FIRST in the nand code to support 4-bit ECC on TI DaVinci devices with large page (up to 2K) NAND chips. This ECC mode is similar to NAND_ECC_HW, with the exception of read_page API that first reads the OOB area, reads the data in chunks, feeds the ECC from OOB area to the ECC hw engine and perform any correction on the data as per the ECC status reported by the engine. This patch has been accepted by Andrew Morton and can be found at http://userweb.kernel.org/~akpm/mmotm/broken-out/mtd-nand-add-new-ecc-mode-ecc_hw_oob_first.patch Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by:
Sneha Narnakaje <nsnehaprabha@ti.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Sandeep Paulraj authored
This patch adds a new "page" parameter to all NAND read_page/read_page_raw APIs. The read_page API for the new mode ECC_HW_OOB_FIRST requires the page information to send the READOOB command and read the OOB area before the data area. This patch has been accepted by Andrew Morton and can be found at http://userweb.kernel.org/~akpm/mmotm/broken-out/mtd-nand-add-page-parameter-to-all-read_page-read_page_raw-apis.patch WE would like this to become part of the u-boot GIT as well Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by:
Sneha Narnakaje <nsnehaprabha@ti.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Kyungmin Park authored
Remove unused read_spareram and add unlock_all as kernel does Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Kyungmin Park authored
Remove unused read_spareram and add unlock_all as kernel does Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com>
-
- Aug 25, 2009
-
-
Albin Tonnerre authored
In the process, also remove backward-compatiblity macros BIN_TO_BCD and BCD_TO_BIN and update the sole board using them to use the new bin2bcd and bcd2bin instead Signed-off-by:
Albin Tonnerre <albin.tonnerre@free-electrons.com> Acked-by:
Stefan Roese <sr@denx.de> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Jul 17, 2009
-
-
Scott Wood authored
Legacy NAND had been scheduled for removal. Any boards that use this were already not building in the previous release due to an #error. The disk on chip code in common/cmd_doc.c relies on legacy NAND, and it has also been removed. There is newer disk on chip code in drivers/mtd/nand; someone with access to hardware and sufficient time and motivation can try to get that working, but for now disk on chip is not supported. Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Jul 16, 2009
-
-
Stefan Roese authored
This is needed for the MPC512x NAND driver (fsl_nfc_nand.c) which already defines such a 4k plus 218 bytes ECC layout. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Jul 07, 2009
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jun 12, 2009
-
-
Stefan Roese authored
This patch brings the U-Boot MTD infrastructure in sync with the current Linux MTD version (2.6.30-rc3). Biggest change is the 64bit device size support and a resync of the mtdpart.c file which has seen multiple fixes meanwhile. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Kyungmin Park <kmpark@infradead.org>
-
Stefan Roese authored
This patch adds concatenation support to the U-Boot MTD infrastructure. By enabling CONFIG_MTD_CONCAT this MTD CFI wrapper will concatenate all found NOR devices into one single MTD device. This can be used by e.g by UBI to access a partition that spans over multiple NOR chips. Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Mar 23, 2009
-
-
Wolfgang Grandegger authored
The NAND flash on the TQM8548_BE modules requires a short delay after running the UPM pattern like the MPC8360ERDK board does. The TQM8548_BE requires a further short delay after writing out a buffer. Normally the R/B pin should be checked, but it's not connected on the TQM8548_BE. The corresponding Linux FSL UPM driver uses similar delay points at the same locations. To manage these extra delays in a more general way, I introduced the "wait_flags" field allowing the board-specific driver to specify various types of extra delay. Signed-off-by:
Wolfgang Grandegger <wg@grandegger.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Wolfgang Grandegger authored
For the NAND chips on the TQM8548 modules, a special chip-select logic is used. It uses dedicated address lines to be set via UPM machine address register (mar). This patch adds such support to the FSL-UPM driver. Signed-off-by:
Wolfgang Grandegger <wg@grandegger.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Wolfgang Grandegger authored
This patch adds support for multi-chip NAND devices to the FSL-UPM driver. The "dev_ready" callback of the "struct fsl_upm_nand" is now called with the argument "chip_nr" to allow testing the proper chip select line. The NAND support of the MPC8360ERDK is updated as well. No other boards are currently using the FSL UPM driver. Signed-off-by:
Wolfgang Grandegger <wg@grandegger.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Mar 20, 2009
-
-
Stefan Roese authored
The U-Boot UBIFS implementation is largely a direct copy from the current Linux version (2.6.29-rc6). As already done in the UBI version we have an "abstraction layer" to redefine or remove some OS calls (e.g. mutex_lock() ...). This makes it possible to use the original Linux code with very little changes. And by this we can better update to later Linux versions. I removed some of the Linux features that are not used in the U-Boot version (e.g. garbage-collection, write support). Signed-off-by:
Stefan Roese <sr@denx.de> CC: Artem Bityutskiy <dedekind@infradead.org> CC: Adrian Hunter <ext-Adrian.Hunter@nokia.com>
-
Stefan Roese authored
This patch adds LZO decompression support to U-Boot. It is needed for the upcoming UBIFS support, since UBIFS uses LZO as default compressor/ decompressor. Since we only support read-only in UBIFS, only the decompressor is needed. All this is copied with minor changes from the current Linux kernel version (2.6.28-rc8). This patch only implements this LZO decompressor support for PPC. Other platforms using UBIFS will have to add the required "include/asm/unaligned.h" as well. It should be fairly easy to copy this from the Linux source tree as I have done it for PPC in this patch. Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Jan 23, 2009
-
-
Wolfgang Grandegger authored
This patch renames NAND_MAX_CHIPS to CONFIG_SYS_NAND_MAX_CHIPS and changes the default from 8 to 1 for the legacy and the new MTD NAND layer. This allows to remove all NAND_MAX_CHIPS definitions in the board config files because none of the boards use multi chip support (NAND_MAX_CHIPS > 1) so far. The bamboo and the DU440 define #define NAND_MAX_CHIPS CONFIG_SYS_MAX_NAND_DEVICE but that's bogus and did not work anyhow. Signed-off-by:
Wolfgang Grandegger <wg@grandegger.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Stefan Roese authored
- Add subpage write support - Add onenand_oob_64/32 ecclayout This has been missing and without it UBI has some incompatibilies issues with the current (>= 2.6.27) Linux kernel version. vid_hdr_offset is placed differently (2048 instead of 512) without this fix. Signed-off-by:
Stefan Roese <sr@denx.de> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Kyungmin Park authored
Sync with OneNAND kernel codes Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com>
-
- Dec 16, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Nov 19, 2008
-
-
Kyungmin Park authored
This patch adds basic UBI (Unsorted Block Image) support to U-Boot. It's based on the Linux UBI version and basically has a "OS" translation wrapper that defines most Linux specific calls (spin_lock() etc.) into no-ops. Some source code parts have been uncommented by "#ifdef UBI_LINUX". This makes it easier to compare this version with the Linux version and simplifies future UBI ports/bug-fixes from the Linux version. Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Stefan Roese <sr@denx.de>
-
Kyungmin Park authored
This patch adds basic UBI (Unsorted Block Image) support to U-Boot. It's based on the Linux UBI version and basically has a "OS" translation wrapper that defines most Linux specific calls (spin_lock() etc.) into no-ops. Some source code parts have been uncommented by "#ifdef UBI_LINUX". This makes it easier to compare this version with the Linux version and simplifies future UBI ports/bug-fixes from the Linux version. Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Stefan Roese <sr@denx.de>
-
Kyungmin Park authored
This patch adds basic UBI (Unsorted Block Image) support to U-Boot. It's based on the Linux UBI version and basically has a "OS" translation wrapper that defines most Linux specific calls (spin_lock() etc.) into no-ops. Some source code parts have been uncommented by "#ifdef UBI_LINUX". This makes it easier to compare this version with the Linux version and simplifies future UBI ports/bug-fixes from the Linux version. Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Oct 31, 2008
-
-
Alessandro Rubini authored
This removes in nand.h code that is verbatim duplicated from bbm.h, including directly bbm.h in nand.h. The previous state of affairs prevented compiling code for a board hosting both NAND and OneNAND chips. Reported-by:
Scott Wood <scottwood@freescale.com> Signed-off-by:
Alessandro Rubini <rubini@unipv.it> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Oct 29, 2008
-
-
Scott Wood authored
This brings the core NAND code up to date with the Linux kernel. Since there were several drivers in Linux as of the last update that are not in u-boot, I'm not bringing over new drivers that have been added since in the absence of an interested party. I did not update OneNAND since it was recently synced by Kyungmin Park, and I'm not sure exactly what the common ancestor is. Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Oct 18, 2008
-
-
Kyungmin Park authored
Now it's used at UBI module. Of course other modules can use it. If you want to use it, please define CONFIG_RBTREE Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com>
-
- Sep 13, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 31, 2008
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Aug 21, 2008
-
-
Kyungmin Park authored
Also sync with kernel OneNAND codes Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Aug 14, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 13, 2008
-
-
Kyungmin Park authored
Since page size field is changed from oobblock to writesize. But OneNAND is not updated. - fix bufferram management at erase operation This patch includes the NAND/OneNAND state filed too. Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Aug 12, 2008
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
Ilya Yanok authored
Rather than scanning on boot, scan upon the first attempt to check the badness of a block. This speeds up boot when not using NAND, and reduces the likelihood of needing to reflash via JTAG if NAND becomes nonfunctional. Signed-off-by:
Ilya Yanok <yanok@emcraft.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Anton Vorontsov authored
Signed-off-by:
Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
William Juul authored
- Fixing leading white spaces - Fixing indentation where 4 spaces are used instead of tab - Removing C++ comments (//), wherever I introduced them Signed-off-by:
William Juul <william.juul@tandberg.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
William Juul authored
Signed-off-by:
William Juul <william.juul@tandberg.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
William Juul authored
A lot changed in the Linux MTD code, since it was last ported from Linux to U-Boot. This patch takes U-Boot NAND support to the level of Linux 2.6.22.1 and will enable support for very large NAND devices (4KB pages) and ease the compatibility between U-Boot and Linux filesystems. This patch is tested on two custom boards with PPC and ARM processors running YAFFS in U-Boot and Linux using gcc-4.1.2 cross compilers. MAKEALL ppc/arm has some issues: * DOC/OneNand/nand_spl is not building (I have not tried porting these parts, and since I do not have any HW and I am not familiar with this code/HW I think its best left to someone else.) Except for the issues mentioned above, I have ported all drivers necessary to run MAKEALL ppc/arm without errors and warnings. Many drivers were trivial to port, but some were not so trivial. The following drivers must be examined carefully and maybe rewritten to some degree: cpu/ppc4xx/ndfc.c cpu/arm926ejs/davinci/nand.c board/delta/nand.c board/zylonite/nand.c Signed-off-by:
William Juul <william.juul@tandberg.com> Signed-off-by:
Stig Olsen <stig.olsen@tandberg.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Jul 09, 2008
-
-
Scott Wood authored
This is particularly problematic now that non-NAND-specific code is including <nand.h>, and thus all debugging code is being compiled regardless of whether it was requested, as reported by Scott McNutt <smcnutt@psyent.com>. Signed-off-by:
Scott Wood <scottwood@freescale.com>
-