summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* [new uImage] Move kernel data find code to get_kernel() routineMarian Balakowicz2008-02-07-74/+107
| | | | | | | | Verification of the kernel image (in old format) and finding kernel data is moved to a dedicated routine. The routine will also hold support for, to be added, new image format. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Cleanup FDT handling in PPC do_boot_linux()Marian Balakowicz2008-02-07-127/+158
| | | | | | | | Move FDT blob finding and relocation to a dedicated get_fdt() routine. It increases code readability and will make adding support for new uImage format easier. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Cleanup do_botm_linux() boot allocationsMarian Balakowicz2008-02-07-117/+189
| | | | | | | | | | | | | | | This patch moves common pre-boot allocation steps shared between PPC and M68K to a helper routines: common: - get_boot_sp_limit() - get_boot_cmline() - get_boot_kbd() platform: - set_clocks_in_mhz() Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Move ramdisk loading to a common routineMarian Balakowicz2008-02-07-175/+171
| | | | | | | | | Ramdisk loading code, including initrd_high variable handling, was duplicated for PPC and M68K platforms. This patch creates common helper routine that is being called from both platform do_bootm_linux() routines. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Removed dead ramdisk code on microblaze architecturesMarian Balakowicz2008-02-07-5/+0
| | | | | | | Microblaze do_bootm_linux() includes ramdisk processing code but the ramdisk does not get used anywhere later on. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Factor out common image_get_ramdisk() routineMarian Balakowicz2008-02-07-588/+239
| | | | | | | | Architecture specific do_bootm_linux() routines share common ramdisk image processing code. Move this code to a common helper routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Move FDT error printing to common fdt_error() routineMarian Balakowicz2008-02-07-26/+24
| | | | | | | | FDT error handling in PPC do_bootm_linux() shares the same message format. This patch moves error message printing to a helper fdt_error() routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
* [new uImage] Factor out common routines for getting os/arch/type/comp namesMarian Balakowicz2008-02-07-69/+109
| | | | | | | | Move numeric-id to name translation for image os/arch/type/comp header fields to a helper routines: image_get_os_name(), image_get_arch_name(), image_get_type_name(), image_get_comp_name(). Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Remove standalone applications handling from boootmMarian Balakowicz2008-02-07-37/+1
| | | | | | | Standalone applications are supposed to be run using the "go" command. This patch removes standalone images handling from the do_bootm(). Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Remove OF_FLAT_TREE support from PPC bootm codeMarian Balakowicz2008-02-07-68/+7
| | | | | | | Support for OF_FLAT_TREE is to be obsoleted in the near future, remove related code from the bootm routines. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Use image API in SH do_bootm_linux() routineMarian Balakowicz2008-02-07-5/+2
| | | | | | Introduce image handling API for lately added Hitachi SH architecture. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Rename architecture specific bootm code filesMarian Balakowicz2008-02-07-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Implementation of the do_bootm_linux() and other bootm helper routines is architecture specific code. As such it resides in lib_<arch> directories in files named <arch>_linux.c This patch renames those files to a more clear and accurate lib_<arch>/bootm.c form. List of the renamed files: lib_arm/armlinux.c -> lib_arm/bootm.c lib_avr32/avr32_linux.c -> lib_avr32/bootm.c lib_blackfin/bf533_linux.c -> lib_blackfin/bootm.c lib_i386/i386_linux.c -> lib_i386/bootm.c lib_m68k/m68k_linux.c -> lib_m68k/bootm.c lib_microblaze/microblaze_linux.c -> lib_microblaze/bootm.c lib_mips/mips_linux.c -> lib_mips/bootm.c lib_nios/nios_linux.c -> lib_nios/bootm.c lib_nios2/nios_linux.c -> lib_nios2/bootm.c lib_ppc/ppc_linux.c -> lib_ppc/bootm.c lib_sh/sh_linux.c -> lib_sh/bootm.c Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Return error on image move/uncompress overwritesMarian Balakowicz2008-02-07-2/+34
| | | | | | | | | Check for overwrites during image move/uncompress, return with error when the original image gets corrupted. Report clear message to the user and prevent further troubles when pointer to the corrupted images is passed to do_bootm_linux routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Cleanup image header pointer use in bootm codeMarian Balakowicz2008-02-07-489/+435
| | | | | | | - use single image header pointer instead of a set of auxilliary variables. - add multi component image helper routines: get component size/data address Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Cleanup cmd_bootm.cMarian Balakowicz2008-02-07-311/+322
| | | | | | | | - sort and cleanup headers, declarations, etc. - group related routines - cleanup indentation, white spaces Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Add memmove_wd() common routineMarian Balakowicz2008-02-07-53/+33
| | | | | | Move common, watchdog sensible memmove code to a helper memmmove_wd() routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Fix FDT header verification in PPC do_boot_linux() routineMarian Balakowicz2008-02-07-2/+2
| | | | Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Fix uImage header pointer use in i386 do_bootm_linux()Marian Balakowicz2008-02-07-3/+3
| | | | | | | Use image header copy instead of a (possibly corrupted) pointer to a initial image location. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Remove I386 uImage fake_header() routineMarian Balakowicz2008-02-07-79/+1
| | | | | | | | | I386 targets are not using a uImage format, instead fake header is added to ram image before it is further processed by bootm. Remove this fixup and force proper uImage use for I386. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Move CHUNKSZ definition to image.hMarian Balakowicz2008-02-07-11/+7
| | | | | | | CHUNKSZ defined for PPC and M68K is set to the same value of 64K, move this definition to a common header. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Move gunzip() common code to common/gunzip.cMarian Balakowicz2008-02-07-109/+123
| | | | | | | Move gunzip(), zalloc() and zfree() to a separate file. Share zalloc() and zfree() with cramfs uncompress routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Cleanup OF/FDT #if/#elif/#endif use in do_bootm_linux()Marian Balakowicz2008-02-07-11/+12
| | | | | | | Make CONFIG_OF_LIBFDT and CONFIG_OF_FLAT_TREE use more readable in PPC variant of do_bootm_linux() routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Move PPC do_bootm_linux() to lib_ppc/ppc_linux.cMarian Balakowicz2008-02-07-543/+592
| | | | | | | PPC implementation of do_bootm_linux() routine is moved to a dedicated file lib_ppc/ppc_linux.c Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Define a API for image handling operationsMarian Balakowicz2008-02-07-806/+822
| | | | | | | | | - Add inline helper macros for basic header processing - Move common non inline code common/image.c - Replace direct header access with the API routines - Rename IH_CPU_* to IH_ARCH_* Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* Add missing cmd_ximg.o to common/MakefileMarian Balakowicz2008-02-07-0/+1
| | | | Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* ADS5121e: DDR2 init/timing update.Grzegorz Bernacki2008-02-07-22/+27
| | | | | Signed-off-by: John Rigby <jrigby@freescale.com> Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
* Device tree updatesJohn Rigby2008-02-07-5/+6
| | | | | | | | | | | | | | Changes to match 5121 device tree going mainline in 2.6.25. Change OF_SOC from "soc5121" to plain "soc". Remove unneeded "ref-frequency" fixups. Remove "address" enetaddr fixup. Add bus-frequency fixup for old OF_SOC so old kernels with old device trees will work with new u-boot with 66MHz IPS clock Signed-off-by: John Rigby <jrigby@freescale.com>
* Change IPS freq to 66MHzJohn Rigby2008-02-07-1/+1
| | | | | | | Recommended frequency is 66MHz Change divider from 4 to 3. Signed-off-by: John Rigby <jrigby@freescale.com>
* xsengine: rename board_post_init to board_late_initJean-Christophe PLAGNIOL-VILLARD2008-02-07-2/+2
| | | | | | | missing migration from "Cleanup of some init functions" in c837dcb1a316745092567bfe4fb266d0941884ff Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Add attribute POST_PREREL to ECC memory POSTLarry Johnson2008-02-07-2/+2
| | | | Signed-off-by: Larry Johnson <lrj@acm.org>
* TFTP: add host ip addr supportJean-Christophe PLAGNIOL-VILLARD2008-02-05-11/+31
| | | | | | | | 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>
* OMAP5912: fix FIFO handling in UART driverWolfgang Denk2008-02-05-4/+12
| | | | | | | | | | | | According to the OMAP5912 Serial Interfaces Reference Guide (see http://focus.ti.com/lit/ug/spru760c/spru760c.pdf, page 150), the FIFO_EN enable bit in the FIFO Control Register (FCR) can only be changed when the baud clock is not running, i. e. when both DLL and DLH are set to 0. Thus make sure that DLL and DLH are 0 when writing the FCR. Signed-off-by: Wolfgang Denk <wd@denx.de>
* ARM: S3C24x0 SoC NAND controller supportHarald Welte2008-02-04-1/+180
| | | | | | This patch adds NAND support to the S3C24x0 SoC code in u-boot Signed-off-by: Harald Welte <laforge@openmoko.org>
* ARM: s3c24xx: Multiple serial port supportHarald Welte2008-02-04-21/+163
| | | | | | This patch adds support for CONFIG_SERIAL_MULTI on s3c24x0 CPU's Signed-off-by: Harald Welte <laforge@openmoko.org>
* ARM: arm920t: Allow use of 'gd' pointer from IRQHarald Welte2008-02-04-5/+5
| | | | | | | | This patch allows us to use the 'gd' pointer (and thus environment and everything else associated with it) from interrupt context on arm920t. Signed-off-by: Harald Welte <laforge@openmoko.org>
* ARM: arm920/s3c24xx: IRQ demulitplexer callbackHarald Welte2008-02-04-1/+17
| | | | | | | | | | | This patch adds a IRQ demultiplexer callback to the arm920 cpu core code, plus a stub implementation of it for the S3C2410. The purpose is to allow arm920t implementations such as the s3c24x0 to implement interrupt handlers in u-boot without having to touch core arm920t code. 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>
* ARM: add I2C init function call in lib_arm/board.cHebbar2008-02-04-0/+18
| | | | | | | Adds I2C init func call to init sequence for ARM boards. This is present in ppc,blackfin and other processor init sequence. Signed-off-by: K R Gururaja Hebbar <gururajakr@sanyo.co.in>
* ARM: Board voiceblue updateLadislav Michl2008-02-04-96/+35
| | | | Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
* ARM: AT91RM9200 based boards config cleanupLadislav Michl2008-02-04-86/+10
| | | | | | | Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Remove nowhere used struct bd_info_ext, remove trailing whitespaces, fix indentation.
* ARM: Fix at91rm9200dk base addressLadislav Michl2008-02-04-7/+7
| | | | | | | | | | | | | | Somewhere during development of U-Boot-1.1.3 CONFIG_BOOTBINFUNC was renamed into CONFIG_INIT_CRITICAL which was 04 Apr 2005 replaced with CONFIG_SKIP_LOWLEVEL_INIT and CONFIG_SKIP_RELOCATE_UBOOT. However CONFIG_SKIP_LOWLEVEL_INIT has oposite meaning to CONFIG_BOOTBINFUNC, so fix configuration to reflect this fact. I'm sending this patch 4th (!) time in hope it produces at least some reaction. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Fix at91rm9200dk base and environment address.
* MMC for PXA 27X (resubmit)stefano babic2008-02-03-199/+380
| | | | | | | | | | | | | MMC support for X_Scale PXA is broken and does not work. Mainly, the mmc_init() function cannot recognize current SD/MMC cards. There were already some patches around the world but none of them was merged into the official u-boot tree. This patch makes order fixing this issue. Resubmit after code cleanup. Applied and tested on PXA 270 (TrizepsIV module). Signed-off-by: Stefano Babic <sbabic@denx.de>
* Fix gcc issues in pxa-regs.hstefano babic2008-02-03-9/+9
| | | | | | | | | | | Fix gcc4 issue. With some toolchain, a previous patch that fixes gcc4 issues generates wrong code. (Problem was reported with gcc-4.0.2-glibc-2.3.6/arm-softfloat-linux-gnu). This patch fixes the problem and solves the gcc-4 issues as the linux kernel does. Signed-off-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Dmitry Ivanov <ivadmitry@gmail.com>
* inka4x0: remove dead codeWolfgang Denk2008-01-25-10/+0
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Coding Style Cleanup; update CHANGELOGWolfgang Denk2008-01-23-1/+169
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Merge ../custodiansWolfgang Denk2008-01-23-110/+5362
|\
| * Merge branch 'master' of git://www.denx.de/git/u-boot-ixpWolfgang Denk2008-01-23-110/+5362
| |\
| | * Add AcTux board supportMichael Schwingen2008-01-18-46/+3098
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, The patch adds 4 boards, called AcTux-1 .. AcTux-4. This patch contains the files that contain changes for multiple boards, the board-specific files follow as separate patches. Signed-off-by: Michael Schwingen <michael@schwingen.org>
| | * add AcTux-4 board supportMichael Schwingen2008-01-18-0/+518
| | | | | | | | | | | | Signed-off-by: Michael Schwingen <michael@schwingen.org>
| | * add AcTux-3 board supportMichael Schwingen2008-01-18-0/+577
| | | | | | | | | | | | Signed-off-by: Michael Schwingen <michael@schwingen.org>