- 07 6月, 2014 1 次提交
-
-
由 Brian Norris 提交于
As per following Sections in ONFI Spec, NAND_CMD_READID should use only lower 8-bit for transfering command, address and data even on x16 NAND device. *Section: Target Initialization" "The Read ID and Read Parameter Page commands only use the lower 8-bits of the data bus. The host shall not issue commands that use a word data width on x16 devices until the host determines the device supports a 16-bit data bus width in the parameter page." *Section: Bus Width Requirements* "When the host supports a 16-bit bus width, only data is transferred at the 16-bit width. All address and command line transfers shall use only the lower 8-bits of the data bus. During command transfers, the host may place any value on the upper 8-bits of the data bus. During address transfers, the host shall set the upper 8-bits of the data bus to 00h." Thus porting following commit from linux-kernel to ensure that column address is not altered to align to x16 bus when issuing NAND_CMD_READID command. commit 3dad2344e92c6e1aeae42df1c4824f307c51bcc7 mtd: nand: force NAND_CMD_READID onto 8-bit bus Author: Brian Norris <computersforpeace@gmail.com> (preserving authorship) The NAND command helpers tend to automatically shift the column address for x16 bus devices, since most commands expect a word address, not a byte address. The Read ID command, however, expects an 8-bit address (i.e., 0x00, 0x20, or 0x40 should not be translated to 0x00, 0x10, or 0x20). This fixes the column address for a few drivers which imitate the nand_base defaults. Signed-off-by: NPekon Gupta <pekon@ti.com>
-
- 18 4月, 2014 1 次提交
-
-
由 Tom Rini 提交于
This mainly converts the am335x_spl_bch driver to the "normal" format which means a slight change to nand_info within the driver. Acked-by: NScott Wood <scottwood@freescale.com> Signed-off-by: NTom Rini <trini@ti.com>
-
- 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 12月, 2012 1 次提交
-
-
由 Ilya Yanok 提交于
AM33XX with BCH8 can't work with nand_spl_simple correctly because custom read_page implementation is required for proper syndrome generation. This simple driver mostly duplicates nand_spl_simple but has nand_read_page changed to suit our needs. Signed-off-by: NIlya Yanok <ilya.yanok@cogentembedded.com>
-
- 27 1月, 2012 1 次提交
-
-
由 Stefano Babic 提交于
Currently nand_spl_simple puts it's temp data at 0x10000 offset in SDRAM which is likely to contain already loaded data. The patch saves the oob data and the ecc on the stack replacing the fixed address in RAM. Signed-off-by: NStefano Babic <sbabic@denx.de> CC: Ilya Yanok <yanok@emcraft.com> CC: Scott Wood <scottwood@freescale.com> CC: Tom Rini <tom.rini@gmail.com> CC: Simon Schwarz <simonschwarzcor@googlemail.com> CC: Wolfgang Denk <wd@denx.de> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 08 12月, 2011 1 次提交
-
-
由 Anatolij Gustschin 提交于
Fix warnings for both cases: definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST: nand_spl_simple.c: In function 'nand_read_page': nand_spl_simple.c:156:6: warning: variable 'stat' set but not used [-Wunused-but-set-variable] not definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST: nand_spl_simple.c: In function 'nand_read_page': nand_spl_simple.c:196:6: warning: variable 'stat' set but not used [-Wunused-but-set-variable] Signed-off-by: NAnatolij Gustschin <agust@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Scott Wood <scottwood@freescale.com> Acked-by: NHeiko Schocher <hs@denx.de> Acked-by: NMarek Vasut <marek.vasut@gmail.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 07 12月, 2011 1 次提交
-
-
由 Ilya Yanok 提交于
This patch adds support for software ECC to the nand_spl_simple driver. To enable this one have to define CONFIG_SPL_NAND_SOFTECC. Tested on OMAP3. Signed-off-by: NIlya Yanok <yanok@emcraft.com> Acked-by: NScott Wood <scottwood@freescale.com>
-
- 04 11月, 2011 1 次提交
-
-
由 Heiko Schocher 提交于
similiar to commit dc7cd8e5, only adapted for the new spl framework. Signed-off-by: NHeiko Schocher <hs@denx.de> Acked-by: NTom Rini <trini@ti.com> Acked-by: NScott Wood <scottwood@freescale.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 01 10月, 2011 1 次提交
-
-
由 Simon Schwarz 提交于
Adds NAND library to SPL. Signed-off-by: NSimon Schwarz <simonschwarzcor@gmail.com> Acked-by: NScott Wood <scottwood@freescale.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 02 7月, 2011 1 次提交
-
-
由 Alex Waterman 提交于
This patch adds support for 16 bit NAND devices attached to the NDFC on ppc4xx processors. Two config entries were added: CONFIG_SYS_NDFC_16 - Setting this tells the NDFC that a 16 bit device is attached. CONFIG_SYS_NDFC_EBC0_CFG - This is for the External Bus Controller configuration register. Also, a new ndfc_read_byte() function was added which does not first convert the data to little endian. The NAND SPL was also modified to do 16bit bad block testing when a 16 bit chip is being used. Signed-off-by: NAlex Waterman <awaterman@dawning.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 17 5月, 2011 1 次提交
-
-
由 Stefan Roese 提交于
Remove the last CONFIG_SYS_NAND_READ_DELAY occurance from nand_boot.c. I missed this one in patch a9c847cb [nand_spl: nand_boot.c: Remove CONFIG_SYS_NAND_READ_DELAY]. This fixes a compile breakage on kilauea_nand for example. Signed-off-by: NStefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 14 5月, 2011 3 次提交
-
-
由 Stefan Roese 提交于
There are multiple reasons why this define should be removed: First it saves some space and therefore fixes a problem we have on the canyonlands_nand and glacier_nand targets right now. Second, the define was hackish and would most likely not work on all board using nand_boot.c. Boards not providing a real dev_ready() function should implement a board specific function instead. I checked and it seems, that all boards using nand_boot.c right now already implement a board specific dev_ready() function. So this patch should not break any boards and will result in smaller NAND_SPL images. Signed-off-by: NStefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Sughosh Ganu <urwithsughosh@gmail.com> Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Tested-by: NSughosh Ganu <urwithsughosh@gmail.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Stefan Roese 提交于
Patch 65a9db7b [nand_spl: Fix large page nand_command()] broke nand booting on canyonlands. "options" has to be initialized to 0. If not, boards might have the NAND_BUSWIDTH_16 bit set, resulting in wrong offset calculation. Signed-off-by: NStefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Alex Waterman <awaterman@dawning.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Alex Waterman 提交于
The canyonland boards nand_spl size is just under the maximum 4KByte size. This patch decreases the size of the nand_spl to make a previous commit - commit 65a9db7b - fit in the nand_spl. Signed-off-by: NAlex Waterman <awaterman@dawning.com> Acked-by: NStefan Roese <sr@denx.de> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 16 4月, 2011 1 次提交
-
-
由 Alex Waterman 提交于
This patch changes the large page nand_command() routine to use a word offset instead of a byte offset. The 'offs' argument gets divided by 2 so that the offset passed to nand_command() is still by byte offset. Originally, the offset was not shifted and when too high an offset was requested the nand chip would attempt to read non-existent data. Signed-off-by: NAlex Waterman <awaterman@dawning.com>
-
- 09 12月, 2010 2 次提交
-
-
由 Sughosh Ganu 提交于
The patch adds basic board support for TI's OMAP-L138 based Hawkboard. This board is pretty similar to the da850 EVM. Support for nand and network access is added in this version. The following bootup procedure is used. At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand controllers and copies the second stage bootloader(nand_spl) to RAM. The secondary bootloader then copies u-boot from a predefined location in the nand flash to the RAM, and passes control to the u-boot image. Three config options are supported * hawkboard_config - Used to create the u-boot.bin. Tftp the u-boot.bin image to the RAM from u-boot, and flash to the nand flash at address 0xe0000. * hawkboard_nand_config - Used to generate the secondary bootloader(nand_spl) image. This creates an elf file u-boot-spl under nand_spl/. Create an AIS signed image using this file, and flash it to the nand flash at address 0x20000. The ais file should fit in one block. * hawkboard_uart_config - This is same as the first image, but with the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS Signed-off-by: NSughosh Ganu <urwithsughosh@gmail.com> Signed-off-by: NBen Gardiner <bengardiner@nanometrics.ca> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
由 Sughosh Ganu 提交于
Remove the board_init_f function from nand_spl/nand_boot.c. This function is to be defined by all boards using the nand_spl functionality in their individual board directory. Currently this function was being used by the smdk6400 board. Added the board specific function definition. Signed-off-by: NSughosh Ganu <urwithsughosh@gmail.com> Acked-by: NScott Wood <scottwood@freescale.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 01 12月, 2010 1 次提交
-
-
由 Sughosh Ganu 提交于
The patch adds basic board support for TI's OMAP-L138 based Hawkboard. This board is pretty similar to the da850 EVM. Support for nand and network access is added in this version. The following bootup procedure is used. At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand controllers and copies the second stage bootloader(nand_spl) to RAM. The secondary bootloader then copies u-boot from a predefined location in the nand flash to the RAM, and passes control to the u-boot image. Three config options are supported * hawkboard_config - Used to create the u-boot.bin. Tftp the u-boot.bin image to the RAM from u-boot, and flash to the nand flash at address 0xe0000. * hawkboard_nand_config - Used to generate the secondary bootloader(nand_spl) image. This creates an elf file u-boot-spl under nand_spl/. Create an AIS signed image using this file, and flash it to the nand flash at address 0x20000. The ais file should fit in one block. * hawkboard_uart_config - This is same as the first image, but with the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS Signed-off-by: NSughosh Ganu <urwithsughosh@gmail.com> Signed-off-by: NBen Gardiner <bengardiner@nanometrics.ca> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 29 11月, 2010 1 次提交
-
-
由 Sughosh Ganu 提交于
Remove the board_init_f function from nand_spl/nand_boot.c. This function is to be defined by all boards using the nand_spl functionality in their individual board directory. Currently this function was being used by the smdk6400 board. Added the board specific function definition. Signed-off-by: NSughosh Ganu <urwithsughosh@gmail.com> Acked-by: NScott Wood <scottwood@freescale.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 30 10月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
When this define was introduced, the idea was to provide a soft migration path for ARM boards to get adapted to the new relocation support. However, other recent changes led to a different implementation (ELF relocation), where this no longer works. By now CONFIG_SYS_ARM_WITHOUT_RELOC does not only not help any more, but it actually hurts because it obfuscates the actual code by sprinkling it with lots of dead and non-working debris. So let's make a clean cut and drop CONFIG_SYS_ARM_WITHOUT_RELOC. Signed-off-by: NWolfgang Denk <wd@denx.de> Tested-by: NHeiko Schocher <hs@denx.de> Tested-by: NReinhard Meyer <u-boot@emk-elektronik.de>
-
- 19 10月, 2010 2 次提交
-
-
由 Wolfgang Denk 提交于
Commit 14d0a02a "Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE" missed a few places, especially for boards that were added inbetween. Fix the remaining issues. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
由 Wolfgang Denk 提交于
The change is currently needed to be able to remove the board configuration scripting from the top level Makefile and replace it by a simple, table driven script. Moving this configuration setting into the "CONFIG_*" name space is also desirable because it is needed if we ever should move forward to a Kconfig driven configuration system. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 20 9月, 2010 1 次提交
-
-
由 Heiko Schocher 提交于
!! This breaks support for all arm boards !! To compile in old style, you must define CONFIG_SYS_ARM_WITHOUT_RELOC or you can compile with "CONFIG_SYS_ARM_WITHOUT_RELOC=1 ./MAKEALL board" !! This define will be removed soon, so convert your board to use relocation support Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: NHeiko Schocher <hs@denx.de> Fix boot from NAND for non-ARM systems Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 08 7月, 2009 2 次提交
-
-
由 Scott Wood 提交于
When adding large page NAND support to this file, I had a misunderstanding about the exact semantics of NAND_CTRL_CHANGE (which isn't documented anywhere I can find) -- it is apparently just a hint to drivers, which aren't required to preserve the old value for subsequent non-"change" invocations. This change makes nand_boot.c no longer assume this. Note that this happened to work by chance with some NAND drivers, which don't preserve the value, but treat 0 equivalently to NAND_CTRL_ALE. I don't have hardware to test this, so any testing is appreciated. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Guennadi Liakhovetski 提交于
Currently, when booting from NAND using nand_spl, in the beginning the default environment is used until later in boot process the dynamic environment is read out. This way environment variables that must be interpreted early, like the baudrate or "silent", cannot be modified dynamically and remain at their default values. Fix this problem by reading out main and redundand (if used) copies of the environment in the nand_spl code. Signed-off-by: NGuennadi Liakhovetski <lg@denx.de> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 27 1月, 2009 1 次提交
-
-
由 Stefan Roese 提交于
This patch removes the now obsolete and additionally wrongly defined board_nand_init() prototype from nand_spl/nand_boot.c. Signed-off-by: NStefan Roese <sr@denx.de> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 19 10月, 2008 1 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- 14 8月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 13 8月, 2008 4 次提交
-
-
由 Guennadi Liakhovetski 提交于
Supporting page-aligned reads doesn't incure any sinificant overhead, just a small change in the algorithm. Also replace in_8 with readb, since there is no in_8 on ARM. Signed-off-by: NGuennadi Liakhovetski <lg@denx.de> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Scott Wood 提交于
Also, remove the ctrl variable in favor of passing the constants directly, and remove redundant (u8) casts. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Scott Wood 提交于
Note that with older board revisions, NAND boot may only work after a power-on reset, and not after a warm reset. I don't have a newer board to test on; if you have a board with a 33MHz crystal, please let me know if it works after a warm reset. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Stefan Roese 提交于
This patch changes the NAND booting driver nand_spl/nand_boot.c to match the new infrastructure from the updated NAND subsystem. This NAND subsystem was recently synced again with the Linux 2.6.22 MTD/NAND subsystem. Signed-off-by: NStefan Roese <sr@denx.de>
-
- 04 6月, 2008 1 次提交
-
-
由 Stefan Roese 提交于
This patch consolidates the 405 and 440 parts of the NAND booting code selected via CONFIG_NAND_SPL. Now common code is used to initialize the SDRAM by calling initdram() and to "copy/relocate" to SDRAM/OCM/etc. Only *after* running from this location, nand_boot() is called. Please note that the initsdram() call is now moved from nand_boot.c to start.S. I experienced problems with some boards like Kilauea (405EX), which don't have internal SRAM (OCM) and relocation needs to be done to SDRAM before the NAND controller can get accessed. When initdram() is called later on in nand_boot(), this can lead to problems with variables in the bss sections like nand_ecc_pos[]. Signed-off-by: NStefan Roese <sr@denx.de> Acked-by: NScott Wood <scottwood@freescale.com>
-
- 18 4月, 2008 1 次提交
-
-
由 Stefan Roese 提交于
This patch adds support for booting from 2k page sized NAND device (e.g. Micron 29F2G08AAC). Tested on AMCC Canyonlands. Signed-off-by: NStefan Roese <sr@denx.de>
-
- 10 1月, 2008 1 次提交
-
-
由 Marcel Ziswiler 提交于
Signed-off-by: NMarcel Ziswiler <marcel@ziswiler.com>
-
- 01 6月, 2007 1 次提交
-
-
由 Stefan Roese 提交于
The U-Boot NAND booting support is now extended to support ECC upon loading of the NAND U-Boot image. Tested on AMCC Sequoia (440EPx) and Bamboo (440EP). Signed-off-by: NStefan Roese <sr@denx.de>
-
- 09 10月, 2006 1 次提交
-
-
由 Wolfgang Denk 提交于
-
- 13 9月, 2006 1 次提交
-
-
由 Stefan Roese 提交于
Patch by Stefan Roese, 12 Sep 2006
-
- 07 9月, 2006 1 次提交
-
-
由 Stefan Roese 提交于
- Add support for PPC440EPx & PPC440GRx - Add support for PPC440EP(x)/GR(x) NAND controller in cpu/ppc4xx directory - Add NAND boot functionality for Sequoia board, please see doc/README.nand-boot-ppc440 for details - This Sequoia NAND image doesn't support environment in NAND for now. This will be added in a short while. Patch by Stefan Roese, 07 Sep 2006
-