summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-10-04libfdt: Fix error in documentation for fdt_get_alias_namelen()Gerald Van Baren
Oops, screwed up the function name in the documenting comment for this function. Trivial correction in this patch. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
2008-10-02libfdt: Add function to explicitly expand aliasesDavid Gibson
Kumar has already added alias expansion to fdt_path_offset(). However, in some circumstances it may be convenient for the user of libfdt to explicitly get the string expansion of an alias. This patch adds a function to do this, fdt_get_alias(), and uses it to implement fdt_path_offset(). Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2008-10-02fdt: Overwrite /chosen node in bootm if it already exists in the dtbStefan Roese
Set force parameter in fdt_chosen() call in do_bootm_linux() call. Without this, the chosen node is not overwritten if it already exists. Signed-off-by: Stefan Roese <sr@denx.de>
2008-10-02Fix an overflow case in fdt_offset_ptr() detected by GCC 4.3.Jon Loeliger
Using Gcc 4.3 detected this problem: ../dtc/libfdt/fdt.c: In function 'fdt_next_tag': ../dtc/libfdt/fdt.c:82: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false To fix the problem, treat the offset as an unsigned int. The problem report and proposed fix were provided by Steve Papacharalambous <stevep@freescale.com>. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2008-10-02libfdt: Fix bugs in fdt_get_path()David Gibson
The current implementation of fdt_get_path() has a couple of bugs, fixed by this patch. First, contrary to its documentation, on success it returns the length of the node's path, rather than 0. The testcase is correspondingly wrong, and the patch fixes this as well. Second, in some circumstances, it will return -FDT_ERR_BADOFFSET instead of -FDT_ERR_NOSPACE when given insufficient buffer space. Specifically this happens when there is insufficient space even to hold the path's second last component. This behaviour is corrected, and the testcase updated to check it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2008-09-22ppc4xx: Canyonlands: Remove unnecessary FDT warning upon DTB fixupStefan Roese
Depending on the configuration jumper "SATA SELECT", U-Boot disabled either one PCIe node or the SATA node in the device tree blob. This patch removes the unnecessary and even confusing warning, when the node is not found at all. Signed-off-by: Stefan Roese <sr@denx.de>
2008-09-22Add missing device types to dev_print() in part.cRemy Bohmer
Signed-off-by: Remy Bohmer <linux@bohmer.net>
2008-09-22Fix DPRAM memory leak when CFG_ALLOC_DPRAM is defined, whichWolfgang Denk
eventually leads to a machine check. This change assures that DPRAM is allocated only once in that case. Signed-off-by: Gary Jennejohn <garyj@denx.de> Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-22Fix Spartan-3 definitions.Laurent Pinchart
A few Spartan-3 definitions erroneously use Spartan-3E size constants. This patch fixes them. Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
2008-09-22Remove duplicate Spartan-3E definition.Laurent Pinchart
Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-22socrates: change default mtest address rangeAnatolij Gustschin
Running mtest command on socrates without specifying an address range crashes the board. This patch changes default mtest address range to prevent this behavior. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-09-22socrates: fix crash after relocationAnatolij Gustschin
Currently U-Boot crashes after relocation to RAM. Changing the CPO value of the DDR SDRAM TIMING_CFG_2 register to READ_LAT + 1 (to the value it was before conversion of socrates to new DDR code) fixes the problem. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-09-22socrates: fix SPD EEPROM addressAnatolij Gustschin
Commit be0bd8234b9777ecd63c4c686f72af070d886517 changed SPD EEPROM address to 0x51 and DDR SDRAM detection stopped working. Change this address back to 0x50. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-09-21Merge branch 'master' of git://git.denx.de/u-boot-mpc85xxWolfgang Denk
2008-09-19sh: Fix compile warningNobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2008-09-19sh: Add support watchdog for SH4A coreNobuhiro Iwamatsu
Add support watchdog for SH4A core (SH7763, SH7780 and SH7785). And fix some compile warning. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2008-09-19sh: Fix typo in SH serial driverNobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2008-09-19sh: Add support any page size and empty_zero_page to SH Linux uImageNobuhiro Iwamatsu
Old U-Boot supported 4KB page size only. If this version, Linux kernel can not get command line from U-Boot. SH Linux kernel can change page size and empty_zero_page. This patch support this function and fix promlem. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2008-09-19sh: rsk7203: Add support pkt_data_pull and pkt_data_push functionNobuhiro Iwamatsu
Add function of smc911x, pkt_data_pull and pkt_data_push. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2008-09-18ADS5121: fix typo in "rootpath" default settingWolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-17Coding style cleanup; update CHANEGLOGWolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-16Support for multiple SGMII/TBI interfaces for TSEC ethernetPeter Tyser
Fix TBI PHY accesses to use the proper offset in CPU register space. The previous code would incorrectly access the TBI PHY by reading/writing to CPU register space at the same location as would be used to access external PHYs. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Acked-by: Andy Fleming <afleming@freescale.com>
2008-09-16TQM8xx: Fix CFI flash driver support for all TQM8xx based boardsWolfgang Denk
After switching to using the CFI flash driver, the correct remapping of the flash banks was forgotten. Also, some boards were not adapted, and the old legacy flash driver was not removed yet. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-13Prepare v2008.10-rc2Wolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-13Coding style cleanup, update CHANGELOGWolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-13Update mailing list email and archive addressesPeter Tyser
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2008-09-1385xx: socrates: autoprobe Lime chipu-boot@bugs.denx.de
This patch is an attempt to implement autoprobing for the Lime presence on the bus. Configure GPCM for Lime CS2 and try to access chip ID registers. Second read atempt delivers register values if the chip is present. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-09-1385xx: socrates: Add support for new image format.u-boot@bugs.denx.de
Signed-off-by: Detlev Zundel <dzu@denx.de>
2008-09-13sh: Fix compile error for r2dplusNobuhiro Iwamatsu
netdev.h was not include by r2dplus. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
2008-09-13powerpc: Fix bootm to boot up again with a RamdiskHeiko Schocher
Commit 2a1a2cb6 didnt remove the dummy mem reservation in fdt_chosen, and this stopped Linux from booting with a Ramdisk. This patch fixes this, by deleting the useless dummy mem reservation. When booting with a Ramdisk, a fix offset FDT_RAMDISK_OVERHEAD is now added to of_size, so we dont need anymore a dummy mem reservation. I measured the value of FDT_RAMDISK_OVERHEAD on a MPC8270 based system (=0x44 bytes) and rounded it up to 0x80). Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Kumar Gala <galak@kernel.crashing.org>
2008-09-12Add support for LZMA uncompression algorithm.Luigi 'Comio' Mantellini
Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-12Merge branch 'master' of git://git.denx.de/u-boot-nand-flashWolfgang Denk
2008-09-12fsl_elbc_nand: ecclayout cleanupsAnton Vorontsov
This patch deletes oobavail assignments, they're calculated by the nand core code in nand_scan_tail, plus current oobavail values are wrong for the LP NANDs. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-09-12fsl_elbc_nand: implement support for flash-based BBTAnton Vorontsov
This patch implements support for flash-based BBT for chips working through ELBC NAND controller, so that NAND core will not have to re-scan for bad blocks on every boot. Because ELBC controller may provide HW-generated ECCs we should adjust bbt pattern and bbt version positions in the OOB free area. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-09-12fsl_elbc_nand: fix OOB workability for large page NAND chipsAnton Vorontsov
For large page chips, nand_bbt is looking into OOB area, and checking for "0xff 0xff" pattern at OOB offset 0. That is, two bytes should be reserved for bbt means. But ELBC driver is specifying ecclayout so that oobfree area starts at offset 1, so only one byte left for the bbt purposes. This causes problems with any OOB users, namely JFFS2: after first mount JFFS2 will fill all OOBs with "erased marker", so OOBs will contain: OOB Data: ff 19 85 20 03 00 ff ff ff 00 00 08 ff ff ff ff OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff And on the next boot, NAND core will rescan for bad blocks, then will see "0xff 0x19" pattern, and will mark all blocks as bad ones. To fix the issue we should implement our own bad block pattern: just one byte at OOB start. Though, this will work only for x8 chips. For x16 chips two bytes must be checked. Since ELBC driver does not support x16 NANDs (yet), we're safe for now. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-09-12Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk
2008-09-12Merge branch 'Makefile-next' of git://git.denx.de/u-boot-armWolfgang Denk
2008-09-12Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk
2008-09-12Merge branch 'master' of git://git.denx.de/u-boot-ppc4xxWolfgang Denk
2008-09-12MPC512x: reduce timeout waiting for Ethernet autonegotiation to 2.5sWolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-09-12ppc4xx: Enable device tree (FDT) support in zeus board portStefan Roese
Signed-off-by: Stefan Roese <sr@denx.de>
2008-09-12ppc4xx: Fix SDRAM inititialization of multiple 405 based board portsStefan Roese
This patch fixes a problem introdiced with patch bbeff30c [ppc4xx: Remove superfluous dram_init() call or replace it by initdram()]. The boards affected are: - PCI405 - PPChameleonEVB - quad100hd - taihu - zeus Signed-off-by: Stefan Roese <sr@denx.de>
2008-09-12ppc4xx: Add .gitignore file to xilinx-ppc440 boardsRicardo Ribalda Delgado
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> Signed-off-by: Stefan Roese <sr@denx.de>
2008-09-12ppc4xx: Fix compilation of v5fx30teval_flashRicardo Ribalda Delgado
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> Signed-off-by: Stefan Roese <sr@denx.de>
2008-09-12ppc4xx: Fix in-tree build for ppc440-generic boardsRicardo Ribalda Delgado
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> Signed-off-by: Stefan Roese <sr@denx.de>
2008-09-12ARM: synchronize mach-types.h with linux 2.6.27-rc6Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-12at91rm9200: fix errors with CONFIG_CMD_I2C_TREEJens Scharsig
This patch prevents linker error on AT91RM9200 boards, if CONFIG_CMD_I2_TREE is set. It implements i2c_set_bus_speed and i2c_get_bus_speed as a dummy function. Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
2008-09-12ARM DaVinci: Remove duplicate code in cpu/arm926ejs/davinci/dp83848.cHugo Villeneuve
ARM DaVinci: Remove duplicate code in cpu/arm926ejs/davinci/dp83848.c Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
2008-09-12make: Remove redundant __ARM__ addition when cross-compiling on *BSDShinya Kuribayashi
__ARM__ is given by arm_config.mk automatically. Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
2008-09-12Fix MACH_TYPE for the AT91RM9200DK board.Claudio Scordino
Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>