summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2008-02-29[new uImage] Provide ability to restrict region used for boot imagesKumar Gala
Allow the user to set 'bootm_low' and 'bootm_size' env vars as a way to restrict what memory range is used for bootm. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Marian Balakowicz <m8@semihalf.com>
2008-02-29[new uImage] Use lmb for bootm allocationsKumar Gala
Convert generic ramdisk_high(), get_boot_cmdline(), get_boot_kbd() functions over to using lmb for allocation of the ramdisk, command line and kernel bd info. Convert PPC specific fdt_relocate() to use lmb for allocation of the device tree. Provided a weak function that board code can call to do additional lmb reserves if needed. Also introduce the concept of bootmap_base to specify the offset in physical memory that the bootmap is located at. This is used for allocations of the cmdline, kernel bd, and device tree as they should be contained within bootmap_base and bootmap_base + CFG_BOOTMAPSZ. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-02-29[new uImage] Add autostart flag to bootm_headers structureKumar Gala
The autostart env variable was dropped as part of the initial new uImage cleanup. Add it back here so the arch specific code can decide if it wants to really boot or not. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Marian Balakowicz <m8@semihalf.com>
2008-02-29[new uImage] Introduce lmb from linux kernel for memory mgmt of boot imagesKumar Gala
Introduce the LMB lib used on PPC in the kernel as a clean way to manage the memory spaces used by various boot images and structures. This code will allow us to simplify the code in bootm and its support functions. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-02-29[new uImage] rework error handling so common functions don't resetKumar Gala
Changed image_get_ramdisk() to just return NULL on error and have get_ramdisk() propogate that error to the caller. It's left to the caller to call do_reset() if it wants to. Also moved calling do_reset() in get_fdt() and fdt_relocate() on ppc to a common location. In the future we will change get_fdt() and fdt_relocate() to return success/failure and not call do_reset() at all. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Marian Balakowicz <m8@semihalf.com>
2008-02-29[new uImage] Don't pass kdb to ramdisk_high since we may not have oneKumar Gala
We don't actually need the kdb param as we are just using it to get bd->bi_memsize which we can get from gd->bd->bi_memsize. Also, if we boot via OF we might not actually fill out a kdb. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Marian Balakowicz <m8@semihalf.com>
2008-02-27[new uImage] Correct raw FDT blob handlig when CONFIG_FIT is disabledMarian Balakowicz
Dual format image code must properly handle all three FDT passing methods: - raw FDT blob passed - FDT blob embedded in the legacy uImage - FDT blob embedded in the new uImage This patch enables proper raw FDT handling when no FIT imaeg support is compiled in. This is a bit tricky as we must dected FIT format even when FIT uImage handling is not enabled as both FIT uImages and raw FDT blobs use tha same low level format (libfdt). Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-02-27[new uImage] Move image verify flag to bootm_headers structureMarian Balakowicz
Do not pass image verification flag directly to related routines. Simplify argument passing and move it to the bootm_header structure which contains curently processed image specific data and is already being passed on the argument list. Signed-off-by: Marian Balakowicz <m8@semihalf.com> Acked-by: Kumar Gala <galak@kernel.crashing.org>
2008-02-25[new uImage] Add dual format uImage support frameworkMarian Balakowicz
This patch adds framework for dual format images. Format detection is added and the bootm controll flow is updated to include cases for new FIT format uImages. When the legacy (image_header based) format is detected appropriate legacy specific handling is invoked. For the new (FIT based) format uImages dual boot framework has a minial support, that will only print out a corresponding debug messages. Implementation of the FIT specific handling will be added in following patches. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-02-21[new uImage] Rename and move print_image_hdr() routineMarian Balakowicz
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-02-21[new uImage] Add fit_parse_conf() and fit_parse_subimage() routinesMarian Balakowicz
Introducing routines for parsing new uImage format bootm arguments: [<addr>]#<conf> - configuration specification [<addr>]:<subimg> - subimage specification New format images can contain multiple subimages of the same type. For example a single new format image file can contain three kernels, two ramdisks and a couple of FDT blobs. Subimage and configuration specifications are extensions to bootm (and other image-related commands) arguments' syntax that allow to specify which particular subimage should be operated on. Subimage specification is used to denote a particular subimage. Configurations are a bit more complex -- they are used to define a particualr booting setup, for example a (kernel, fdt blob) pair, or a (kernel, ramdisk, fdt blob) tuple, etc. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-02-21[new uImage] Add gen_get_image() routineMarian Balakowicz
This routine assures that image (whether legacy or FIT) is not in a special dataflash storage. If image address is a dataflash address image is moved to system RAM. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-02-21[new uImage] Pull in libfdt if CONFIG_FIT is enabledMarian Balakowicz
New uImage format (Flattened Image Tree) requires libfdt functionality, print out error message if CONFIG_OF_LIBFDT is not defined. New uImage support is enabled by defining CONFIG_FIT (and CONFIG_OF_LIBFDT). This commit turns it on by default. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-02-21Merge branch 'master' of /home/git/u-bootMarian Balakowicz
2008-02-16ppc4xx: HCU4/5. Cleanup configsNiklaus Giger
- hcu4.h: Removed define of CONFIG_PPC405GPr - Corrected phy addresses - Fix boot variables - Respect line length of 80 chars Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
2008-02-16ppc4xx: PPC405GPr fix missing register definitionsNiklaus Giger
Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
2008-02-16ppc4xx: Beautify configuration files for Sequoia and Korat boardsLarry Johnson
Signed-off-by: Larry Johnson <lrj@acm.org>
2008-02-15Merge branch '080131_artila' of git://linux-arm.org/u-boot-armdevPeter Pearse
2008-02-15Merge branch '080116_at91cap9' of git://linux-arm.org/u-boot-armdevPeter Pearse
2008-02-15Merge branch '070524_netstar' of git://linux-arm.org/u-boot-armdevPeter Pearse
2008-02-15Fix compile warning on lib_ppc/board.cAnatolij Gustschin
Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-02-15Extend ATI Radeon driver to support more video modesAnatolij Gustschin
Adds ATI Radeon 9200 support for 1280x1024, 1024x768, 800x600, 640x480 at 24, 16 and 8 bpp. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-02-15xsengine: fix typo and few coding styleJean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-02-15Merge ../custodiansWolfgang Denk
2008-02-15Merge branch 'master' of git://www.denx.de/git/u-boot-mpc86xxWolfgang Denk
Conflicts: common/cmd_reginfo.c Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-02-15Merge ../custodiansWolfgang Denk
2008-02-15Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xxWolfgang Denk
2008-02-15Merge ../custodiansWolfgang Denk
2008-02-15Merge branch 'master' of git://www.denx.de/git/u-boot-avr32Wolfgang Denk
2008-02-15Coding STyle cleanup.Wolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-02-15Merge branch 'master' of git://www.denx.de/git/u-boot-blackfinWolfgang Denk
Conflicts: Makefile doc/README.standalone Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-02-14sh: Fix register address of SH7722Nobuhiro Iwamatsu
The address of SH7722 is wrong by old document. This patch fixes this problem. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2008-02-1485xx, 86xx: Determine I2C clock frequencies and store in global_dataTimur Tabi
Update global_data to define i2c1_clk and i2c2_clk to 85xx and 86xx. Update the get_clocks() function in 85xx and 86xx to determine the I2C clock frequency and store it in gd->i2c1_clk and gd->i2c2_clk. Signed-off-by: Timur Tabi <timur@freescale.com>
2008-02-14TQM834x: clean up configurationWolfgang Denk
Get board name consistent with Linux and elsewhere; get rid of local network definitions etc. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-02-14PPC: Use r2 instead of r29 as global data pointerWolfgang Denk
R29 was an unlucky choice as with recent toolchains (gcc-4.2.x) gcc will refuse to use load/store multiple insns; instead, it issues a list of simple load/store instructions upon function entry and exit, resulting in bigger code size, which in turn makes the build for a few boards fail. Use r2 instead. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-02-14Merge commit 'wd/master'Jon Loeliger
2008-02-14Merge branch 'for-1.3.2'Stefan Roese
2008-02-14Support for Artila M-501 starter kitTimo Tuunainen
Kimmo Leppala / Sysart and Timo Tuunainen / Sysart
2008-02-14AT91CAP9 support : board/ filesStelian Pop
Signed-off-by: Stelian Pop <stelian@popies.net>
2008-02-14AT91CAP9 support : include/ filesStelian Pop
Signed-off-by: Stelian Pop <stelian@popies.net>
2008-02-14Update board NetStarPeter Pearse
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
2008-02-14Mark board_init_[fr] as noreturnMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-02-14Fix remaining CONFIG_COMMANDSJean-Christophe PLAGNIOL-VILLARD
update comments Fix coding style Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-02-14Remove duplicate defines for ARRAY_SIZEKumar Gala
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-02-13Add CFG_MPC86xx_DDR_ADDR and CFG_MPC86xx_DDR2_ADDR symbolsJon Loeliger
These replace direct structure references for IMMR sections. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2008-02-13Merge commit 'wd/master'Jon Loeliger
2008-02-12Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk
2008-02-12Get rid of "#undef DEBUG" from board config files.Wolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-02-12Remove #undef DEBUG from MPC83xx board header filesTimur Tabi
Remove the "#undef DEBUG" line from all Freescale 83xx board header files. The inclusion of this line makes it impossible to enable debug code in other source files, because "#define DEBUG" typically needs to be defined before any header files are included. Signed-off-by: Timur Tabi <timur@freescale.com>
2008-02-07[new uImage] Cleanup do_botm_linux() boot allocationsMarian Balakowicz
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>