summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* cmd_bmp: Add support for displaying gzip compressed bmpsHans-Christian Egtvedt2008-01-091-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-091-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-092-2/+2
| | | | Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* Add pre and post configuration callbacks for Spartan FPGAsMatthias Fuchs2008-01-092-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-099-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>
* serial: Make default_serial_console() a weak functionMatthias Fuchs2008-01-091-1/+3
| | | | | | | | | With this patch it is possible to reimplement default_serial_console() in board specific code. This will be done in the upcomming PMC440 U-Boot port. This also allows the lwmon board maintainer to remove the '#if !defined(CONFIG_LWMON) ...' from common/serial.c. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* add 'terminal program' functionalityHarald Welte2008-01-092-0/+103
| | | | | | | | | | This patch adds a 'cu' like serial terminal command to u-boot using which you can access other serial ports from the system console. OpenMoko uses this in their Neo1973 phones to get access to the GSM Modem and GPS chip from the bootloader. Signed-off-by: Harald Welte <laforge@openmoko.org>
* Re-introduce the 'nand read.oob' and 'nand write.oob' commandsHarald Welte2008-01-091-0/+8
| | | | | | that used to exist with the legacy NAND code Signed-off-by: Harald Welte <laforge@openmoko.org>
* Fix building with CRAMFS but not JFFS2 supportHarald Welte2008-01-091-0/+9
| | | | Signed-off-by: Harald Welte <laforge@openmoko.org>
* Allow CONFIG_AUTO_COMPLETE and command history CONFIG_CMDLINE_EDITING at the ↵Jean-Christophe PLAGNIOL-VILLARD2008-01-091-2/+24
| | | | | | | sametime Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'master' of git://www.denx.de/git/u-boot-armWolfgang Denk2008-01-091-2/+2
|\
| * Merge with git://www.denx.de/git/u-boot.gitPeter Pearse2008-01-0745-393/+623
| |\
| * | Remove warnings re CONFIG_EXTRA_ENV_SETTINGSPeter Pearse2007-11-151-2/+2
| | | | | | | | | | | | Remove warnings re onenand_read() & write()
* | | Fine grained per property /chosen updating.Gerald Van Baren2008-01-081-33/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a suggestion by Scott Wood to make the /chosen handling fine grained. Don't overwrite pre-existing properties on a per-property basis, so if /chosen exists but a necessary /chosen/property doesn't, it gets created. If a /chosen property exists, it is NOT overwritten unless the "force" flag is true. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* | | Improve the FDT help message.Gerald Van Baren2008-01-081-7/+3
| | | | | | | | | | | | | | | | | | | | | Add a note that "fdt copy" makes the new address active. Remove most of the extra hints at the end of the fdt help. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* | | Support setting FDT properties with optional values.Gerald Van Baren2008-01-081-7/+9
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug found and documented by Bartlomiej Sieka where the optional value on "fdt set <path> <prop> [<val>]" wasn't optional. => fdt mknode / testnode => fdt print /testnode testnode { }; => fdt set /testnode testprop => fdt print /testnode testnode { testprop; }; Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* | Merge branch 'master' of /home/stefan/git/u-boot/u-boot into for-1.3.2-ver2Stefan Roese2007-12-275-11/+132
|\ \
| * \ Merge branch 'master' of git://www.denx.de/git/u-boot-shWolfgang Denk2007-12-272-2/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: MAINTAINERS Signed-off-by: Wolfgang Denk <wd@denx.de>
| | * \ Merge git://www.denx.de/git/u-bootNobuhiro Iwamatsu2007-12-0738-250/+251
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/Makefile
| | * \ \ Merge git://www.denx.de/git/u-bootNobuhiro Iwamatsu2007-11-2916-183/+582
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/Makefile
| | * | | | sh: Add support command of ide with shNobuhiro Iwamatsu2007-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| | * | | | Merge git://www.denx.de/git/u-bootNobuhiro Iwamatsu2007-09-2371-935/+2301
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: CREDITS
| | * | | | | sh: First support code of SuperH.Nobuhiro Iwamatsu2007-05-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * | | | | | Conditionally compile fdt_fixup_ethernet()Gerald Van Baren2007-12-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix compiler warnings: On boards that don't have ethernets defined, don't compile fdt_fixup_ethernet().
| * | | | | | Added fdt_fixup_stdout that uses aliases to set linux,stdout-pathKumar Gala2007-12-071-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use a combination of the serialN alias and CONFIG_CONS_INDEX to determine which serial alias we should set linux,stdout-path to. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | | Add common memory fixup functionKumar Gala2007-12-071-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the function fdt_fixup_memory() to fixup the /memory node of the fdt Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | | Conditionally compile fdt_support.cKumar Gala2007-12-072-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify common/Makefile to conditionally compile fdt_support.c based on CONFIG_OF_LIBFDT. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | | Add spaces around the = in the fdt print format.Gerald Van Baren2007-12-071-2/+2
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* | | | | | Merge commit 'u-boot/master' into for-1.3.1Stefan Roese2007-12-1143-383/+490
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/rtc/Makefile
| * | | | | Fix fdt printing for updated libfdtGerald Van Baren2007-11-221-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also improve printing (adopt dtc v1 "c style" hex format), whitespace cleanup. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
| * | | | | Add additional fdt fixup helper functionsKumar Gala2007-11-211-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the following fdt fixup helpers: * do_fixup_by_prop{_u32} - Find matching nodes by property name/value * do_fixup_by_compat{_u32} - Find matching nodes by compat The _u32 variants work the same only the property they are setting is know to be a 32-bit integer instead of a byte buffer. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | Add fdt_fixup_ethernet helper to set mac addressesKumar Gala2007-11-211-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a fixup helper that uses aliases to set mac addresses in the device tree based on the bd_t Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | Fix warnings from import of libfdtKumar Gala2007-11-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmd_fdt.c: In function fdt_print: cmd_fdt.c:586: warning: assignment discards qualifiers from pointer target type cmd_fdt.c:613: warning: assignment discards qualifiers from pointer target type cmd_fdt.c:635: warning: assignment discards qualifiers from pointer target type cmd_fdt.c:636: warning: assignment discards qualifiers from pointer target type Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | Update libfdt from device tree compiler (dtc)Kumar Gala2007-11-212-32/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libfdt to commit 8eaf5e358366017aa2e846c5038d1aa19958314e from the device tree compiler (dtc) project. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | Move do_fixup* for libfdt into common codeKumar Gala2007-11-211-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved the generic fixup handling code out of cpu/mpc5xxx and cpu/mpc8260 into common/fdt_support.c and renamed: do_fixup() -> do_fixup_by_path() do_fixup_u32() -> do_fixup_by_path_u32() Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | Make no options to fdt print default to '/'Kumar Gala2007-11-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | Removed some nonused fdt functions and moved fdt_find_and_setprop out of libfdtKumar Gala2007-11-211-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed: fdt_node_is_compatible fdt_find_node_by_type fdt_find_compatible_node To ease merge of newer libfdt as we aren't using them anywhere at this time. Also moved fdt_find_and_setprop out of libfdt into fdt_support.c for the same reason. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
| * | | | | [BUILD] conditionally compile common/cmd_*.c in common/MakefileGrant Likely2007-11-2037-196/+46
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify common/Makefile to conditionally compile the cmd_*.c files based on the board config. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
| * | | | Merge branch 'origin' into kconfig-for-1.3.1Grant Likely2007-11-202-4/+7
| |\ \ \ \
| | * | | | Fix compiler warnings for PPC systems. Update CHANGELOG.Wolfgang Denk2007-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
| | * | | | Fix warning differ in signedness in common/cmd_scsi.cStefan Roese2007-11-181-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Stefan Roese <sr@denx.de>
| * | | | | Merge branch 'origin' into kconfig-for-1.3.1Grant Likely2007-11-165-140/+170
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/Makefile
| | * | | | Fixed mips_io_port_base build errors.Jean-Christophe PLAGNIOL-VILLARD2007-11-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch has been sent on: - 29 Sep 2007 Although mips_io_port_base is currently a part of IDE command, it is quite fundamental for MIPS I/O port access such as in[bwl] and out[bwl]. So move it to MIPS general part, and introduce `set_io_port_base()' from Linux. This patch is triggered by multiple definition of `mips_io_port_base' build error on gth2 (and tb0229 also needs this fix.) board/gth2/libgth2.a(gth2.o): In function `log_serial_char': /home/skuribay/devel/u-boot.git/board/gth2/gth2.c:47: multiple definition of `mips_io_port_base' common/libcommon.a(cmd_ide.o):/home/skuribay/devel/u-boot.git/common/cmd_ide.c:712: first defined here make: *** [u-boot] Error 1 Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * | | | Fix a bug in the slave serial programming mode for the XilinxWolfgang Denk2007-11-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spartan2/3 FPGAs. The old code used "< 0" on a "char" type to test if the most significant bit was set, which did not work on any architecture where "char" defaulted to be an unsigned type. Based on a patch by Angelos Manousaridis <amanous@inaccessnetworks.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
| | * | | | Merge branch 'master' of /home/wd/git/u-boot/workWolfgang Denk2007-11-171-6/+6
| | |\ \ \ \
| | | * | | | Fix warning differ in signedness in common/cmd_ide.cJean-Christophe PLAGNIOL-VILLARD2007-11-161-6/+6
| | | | |_|/ | | | |/| | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * | | | NET: Add Ethernet 1000BASE-X support for PPC4xxLarry Johnson2007-11-062-60/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for 1000BASE-X to functions "miiphy_speed ()" and "miiphy_duplex()". It also adds function "miiphy_is_1000base_x ()", which returns non-zero iff the PHY registers are configured for 1000BASE-X. The "mii info" command is modified to distinguish between 1000BASE-T and -X. Signed-off-by: Larry Johnson <lrj@acm.org> Signed-off-by: Ben Warren <bwarren@qstreams.com>
| | * | | | NET: Cosmetic changesLarry Johnson2007-11-061-73/+68
| | |/ / / | | | | | | | | | | | | | | | | | | | | Signed-off-by: Larry Johnson <lrj@acm.org> Signed-off-by: Ben Warren <bwarren@qstreams.com>
| * | | | Build: split COBJS value into multiple linesGrant Likely2007-11-151-25/+98
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is in preparation for condtitionial compile support in the build system. By spliting them all into seperate lines now, subsequent patches that change 'COBJS-y += ' into 'COBJS-$(CONFIG_<blah>) += ' will be less invasive and easier to review Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
| * | | Fix the issue of usb_kbd driver missing the scan code of key 'z'.Zhang Wei2007-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scan code of the key 'z' is 0x1d, which should be handled. The change has be tested on NOVATEK USB keyboard and ULI PCI OHCI controller. Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
OpenPOWER on IntegriCloud