summaryrefslogtreecommitdiff
path: root/common
Commit message (Collapse)AuthorAgeLines
* common/kgdb.c: fix 'dereferencing type-punned pointer' warningWolfgang Denk2008-03-09-5/+5
| | | | | | and get rid of a couple of unneeded casts. Signed-off-by: Wolfgang Denk <wd@denx.de>
* fix copy from ram to dataflashKim B. Heino2008-03-03-1/+1
| | | | | | | | If I try to "cp.b <ram> <dataflash>", u-boot selects normal flash routines instead of dataflash. This is because it checks "if source address is not dataflash" instead of target address. Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>
* ENV: remove saveenv when CFG_ENV_IS_NOWHERE is selectedJean-Christophe PLAGNIOL-VILLARD2008-02-23-4/+6
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch '080116_at91cap9' of git://linux-arm.org/u-boot-armdevPeter Pearse2008-02-15-8/+9
|\
| * AT91CAP9 supportStelian Pop2008-02-14-8/+9
| | | | | | | | | | | | | | | | | | --------------------------------- read_dataflash() takes a signed char pointer as a parameter. Silence a few warnings dues to incorrect parameter types in env_dataflash.c. Signed-off-by: Stelian Pop <stelian@popies.net>
* | Fix wrong memory limit calculation in memory-testGuennadi Liakhovetski2008-02-15-15/+8
| | | | | | | | | | | | | | | | | | | | If the length of the memory address range passed to the "mtest" command is not of the form 2^x - 1, not all address lines are tested. This bug is inherited from the original software at http://www.netrino.com/Embedded-Systems/How-To/Memory-Test-Suite-C. Fix this. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
* | Merge branch 'master' of git://www.denx.de/git/u-boot-mpc86xxWolfgang Denk2008-02-15-1/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: common/cmd_reginfo.c Signed-off-by: Wolfgang Denk <wd@denx.de>
| * \ Merge commit 'wd/master'Jon Loeliger2008-02-14-3/+3
| |\ \ | | |/
| * | Merge commit 'wd/master'Jon Loeliger2008-02-13-49/+18
| |\ \
| * | | 86xx: Add reginfo commandBecky Bruce2008-01-24-2/+8
| | | | | | | | | | | | | | | | Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
* | | | Merge branch 'master' of git://www.denx.de/git/u-boot-blackfinWolfgang Denk2008-02-15-8/+340
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile doc/README.standalone Signed-off-by: Wolfgang Denk <wd@denx.de>
| * | | | new command for displaying strings at specified memory locationsMike Frysinger2008-02-04-0/+50
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | | | interface to Blackfin on-chip One-Time-Programmable memoryMike Frysinger2008-02-04-0/+164
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | | | add support for memory commands with Blackfin L1 instruction memoryMike Frysinger2008-02-04-3/+48
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | | | add Blackfin-specific reginfo commandMike Frysinger2008-02-04-4/+41
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | | | add Blackfin-specific bdinfo commandMike Frysinger2008-02-04-0/+31
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * | | | fix building on Blackfin as the assembler supports the .set syntax, not the ↵Mike Frysinger2008-02-04-1/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | = syntax, for assigning symbols Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | | | Fix return value of mtest when CFG_ALT_MEMTEST setGuennadi Liakhovetski2008-02-14-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fix a missing return statement from a non-void function. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
* | | | common/miiphyutil.c: Cleanup MII_DEBUG and debug()Shinya Kuribayashi2008-02-14-22/+9
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current MII_DEBUG is confusing in two ways. One is useless define-then- undef at the top of the file. The other is there is only one debug() in this file, and that doesn't seem worthwhile to bother having MII_DEBUG. While there are many useful printf()/puts() debug codes, but they are for DEBUG, not for MII_DEBUG. This patch tries to put them all together into MII_DEBUG and debug(). Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
* | | Fix building of fdt_support.c if DEBUG setKumar Gala2008-02-13-3/+3
| |/ |/| | | | | Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* | QE: Move FDT support into a common fileKumar Gala2008-02-12-48/+0
| | | | | | | | | | | | | | Move the flat device tree setup for QE related devices into a common file shared between 83xx & 85xx platforms that have QE's. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* | TFTP: add host ip addr supportJean-Christophe PLAGNIOL-VILLARD2008-02-05-1/+1
| | | | | | | | | | | | | | | | allow to use a different server as set in serverip add CONFIG_TFTP_FILE_NAME_MAX_LEN to configure the file name length if not defined the max length will be at 128 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | ARM: s3c24xx: Multiple serial port supportHarald Welte2008-02-04-0/+15
| | | | | | | | | | | | This patch adds support for CONFIG_SERIAL_MULTI on s3c24x0 CPU's Signed-off-by: Harald Welte <laforge@openmoko.org>
* | ARM: Display Ethernet info in do_bdinfo only if CONFIG_CMD_NET is definedHebbar2008-02-04-0/+2
|/ | | | | | | Add ifdef to bdinfo command to display ethernet information only if CONFIG_CMD_NET is defined for arm modules. Signed-off-by: K R Gururaja Hebbar <gururajakr@sanyo.co.in>
* Merge branch 'master' of git://www.denx.de/git/u-boot-netWolfgang Denk2008-01-23-1/+1
|\
| * Fix nfs command help to reflect that the serverip is optionalJean-Christophe PLAGNIOL-VILLARD2008-01-16-1/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
* | FSL: Fix common EEPROM_data structure definitionHaiying Wang2008-01-17-2/+2
|/ | | | | | | | - Fix EEPROM_data structure definition according to System EEPROM Data Format. - Read MAC addresses from EEPROM to ethXaddr before saving ethXaddr to bd->bi_ethaddr. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
* cmd_nand : fix compiler warning.Jean-Christophe PLAGNIOL-VILLARD2008-01-13-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Make bootretry work when command line editing is enabledAndreas Engel2008-01-12-0/+7
| | | | | | | Currently, when CONFIG_CMDLINE_EDITING is set, bootretry doesn't work. This patch fixes the problem. Signed-off-by: Andreas Engel <andreas.engel@ericsson.com>
* Refactor code for "i2c sdram" commandLarry Johnson2008-01-12-291/+220
| | | | Signed-off-by: Larry Johnson <lrj@acm.org>
* Fix "i2c sdram" command for DDR2 DIMMsLarry Johnson2008-01-12-119/+496
| | | | | | | | Many of the SPD bytes for DDR2 SDRAM are not interpreted correctly by the "i2c sdram" command. This patch provides correct alternative interpretations when DDR2 memory is detected. Signed-off-by: Larry Johnson <lrj@acm.org>
* Fix compilation problem in common/cmd_bmp.cAnatolij Gustschin2008-01-12-1/+1
| | | | | | | common/cmd_bmp.c fails to compile if CONFIG_VIDEO_BMP_GZIP isn't defined. This patch fix this. Signed-off-by: Anatolij Gustschin <agust@denx.de>
* Merge ../custodiansWolfgang Denk2008-01-11-0/+2
|\
| * Nios2: remove common/cmd_bdinfo.c unused variable.Jean-Christophe PLAGNIOL-VILLARD2008-01-10-0/+2
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
* | Fix compiler warningKumar Gala2008-01-11-1/+1
|/ | | | | | | main.c: In function 'readline_into_buffer': main.c:927: warning: unused variable 'p_buf' Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Merge branch 'master' of git://www.denx.de/git/u-boot-mpc85xxWolfgang Denk2008-01-10-0/+48
|\
| * 85xx: add ability to upload QE firmwareTimur Tabi2008-01-09-0/+48
| | | | | | | | | | | | | | | | | | | | | | Define the layout of a binary blob that contains a QE firmware and instructions on how to upload it. Add function qe_upload_firmware() to parse the blob and perform the actual upload. Add command-line command "qe fw" to take a firmware blob in memory and upload it. Update ft_cpu_setup() on 85xx to create the 'firmware' device tree node if U-Boot has uploaded a firmware. Fully define 'struct rsp' in immap_qe.h to include the actual RISC Special Registers. Signed-off-by: Timur Tabi <timur@freescale.com>
* | Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk2008-01-09-4/+1
|\ \
| * \ Merge branch 'master' of git://www.denx.de/git/u-boot-freebsdWolfgang Denk2008-01-09-4/+1
| |\ \ | | |/ | |/|
| | * Globalize envmatch()Rafal Jaworowski2008-01-09-4/+1
| | | | | | | | | | | | | | | | | | | | | The newly introduced API (routines related to env vars) will need to call it. Signed-off-by: Rafal Zabdyr <armo@semihalf.com>
* | | Expose parse_line() globally.James Yang2008-01-09-10/+15
|/ / | | | | | | | | | | | | | | | | | | | | Add new function readline_into_buffer() that allows the output of readline to be put into a pointer to char buffer. This refactoring allows other functions besides the main command loop to also use the same input mechanism. Signed-off-by: James Yang <James.Yang@freescale.com> Acked-by: Jon Loeliger <jdl@freescale.com>
* | Add Ctrl combo key support to usb keyboard driver.Zhang Wei2008-01-09-0/+19
| | | | | | | | | | | | | | | | | | Ctrl combo key support is added, which is very useful to input Ctrl-C for interrupt current job. Also add usb_event_poll() calling to usb_kbd_testc(), which can get key input when tstc() is called. Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
* | fix comments with new drivers organizationMarcel Ziswiler2008-01-09-1/+1
| | | | | | | | Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
* | Remove the obsolete terse version of do_mii()Shinya Kuribayashi2008-01-09-139/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have more useful version of do_mii() and everybody use it. Gerald Van Baren says: > When I originally wrote the mii command 6(!) years ago, I wrote a > verbose version that printed human readable decomposition of the flags, > etc., and a terse one that didn't print as much stuff and thus had a > smaller memory footprint. > > It sounds like the terse version has withered and died, apparently > people are only using the verbose version (which is very understandable, > I do myself). Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com> Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* | common/cmd_mii.c: Add sanity argc checkShinya Kuribayashi2008-01-09-0/+5
|/ | | | | | | If type mii command without arguments, we suffer from uninitialized argv[] entries; for example we MIPS get stuck by TLB error. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
* cmd_bmp: Add support for displaying gzip compressed bmpsHans-Christian Egtvedt2008-01-09-49/+85
| | | | | | | | | | | | | The existing code can show information about a gzip compressed BMP image, but can't actually display it. Therefore, move the decompression code out of bmp_info() and use it in bmp_display() as well in order to display a compressed BMP image. Also, clean things up a bit and fix a memory leak while we're at it. [hskinnemoen@atmel.com: a bit of refactoring] Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* Remove bit swapping in Xilinx Spartan bitfile loadingMatthias Fuchs2008-01-09-36/+1
| | | | | | | This patch removes the unnecessary bit swapping when booting .bit files with the 'fpga loadb' command. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* Fix MSB check in Xilinx Spartan slave serial modeMatthias Fuchs2008-01-09-2/+2
| | | | Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* Add pre and post configuration callbacks for Spartan FPGAsMatthias Fuchs2008-01-09-4/+32
| | | | | | | | This patch adds a post configuration callback for Spartan2/3 FPGAs. pre and post configuration callback are now optional and not called when the function pointer is set to NULL. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* Improve configuration of FPGA subsystemMatthias Fuchs2008-01-09-50/+42
| | | | | | | | | | | | | This patch removes the FPGA subsystem configuration through the CONFIG_FPGA bitmask configuration option. See README for the new options: CONFIG_FPGA, CONFIG_FPGA_<vendor>, CONFIG_FPGA_<family> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>