summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeLines
* [new uImage] Use lmb for bootm allocationsKumar Gala2008-02-29-7/+5
| | | | | | | | | | | | | | | | | | | 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>
* [new uImage] Add autostart flag to bootm_headers structureKumar Gala2008-02-29-0/+2
| | | | | | | | | 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>
* [new uImage] Introduce lmb from linux kernel for memory mgmt of boot imagesKumar Gala2008-02-29-0/+56
| | | | | | | | 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>
* [new uImage] rework error handling so common functions don't resetKumar Gala2008-02-29-1/+1
| | | | | | | | | | | | | 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>
* [new uImage] Don't pass kdb to ramdisk_high since we may not have oneKumar Gala2008-02-29-1/+1
| | | | | | | | | 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>
* [new uImage] Correct raw FDT blob handlig when CONFIG_FIT is disabledMarian Balakowicz2008-02-27-2/+3
| | | | | | | | | | | | | | 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>
* [new uImage] Move image verify flag to bootm_headers structureMarian Balakowicz2008-02-27-5/+2
| | | | | | | | | | 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>
* [new uImage] Add dual format uImage support frameworkMarian Balakowicz2008-02-25-4/+49
| | | | | | | | | | | | | | 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>
* [new uImage] Rename and move print_image_hdr() routineMarian Balakowicz2008-02-21-3/+1
| | | | Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Add fit_parse_conf() and fit_parse_subimage() routinesMarian Balakowicz2008-02-21-0/+10
| | | | | | | | | | | | | | | | | | | 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>
* [new uImage] Add gen_get_image() routineMarian Balakowicz2008-02-21-0/+6
| | | | | | | | | 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>
* [new uImage] Pull in libfdt if CONFIG_FIT is enabledMarian Balakowicz2008-02-21-0/+9
| | | | | | | | | | | 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>
* Merge branch 'master' of /home/git/u-bootMarian Balakowicz2008-02-21-12861/+62145
|\
| * ppc4xx: HCU4/5. Cleanup configsNiklaus Giger2008-02-16-46/+27
| | | | | | | | | | | | | | | | | | - 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>
| * ppc4xx: PPC405GPr fix missing register definitionsNiklaus Giger2008-02-16-0/+8
| | | | | | | | Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
| * ppc4xx: Beautify configuration files for Sequoia and Korat boardsLarry Johnson2008-02-16-235/+237
| | | | | | | | Signed-off-by: Larry Johnson <lrj@acm.org>
| * Merge branch '080131_artila' of git://linux-arm.org/u-boot-armdevPeter Pearse2008-02-15-0/+197
| |\
| | * Support for Artila M-501 starter kitTimo Tuunainen2008-02-14-0/+197
| | | | | | | | | | | | | | | Kimmo Leppala / Sysart and Timo Tuunainen / Sysart
| * | Merge branch '080116_at91cap9' of git://linux-arm.org/u-boot-armdevPeter Pearse2008-02-15-0/+891
| |\ \
| | * | AT91CAP9 support : board/ filesStelian Pop2008-02-14-0/+212
| | | | | | | | | | | | | | | | Signed-off-by: Stelian Pop <stelian@popies.net>
| | * | AT91CAP9 support : include/ filesStelian Pop2008-02-14-0/+679
| | |/ | | | | | | | | | Signed-off-by: Stelian Pop <stelian@popies.net>
| * | Merge branch '070524_netstar' of git://linux-arm.org/u-boot-armdevPeter Pearse2008-02-15-47/+39
| |\ \
| | * | Update board NetStarPeter Pearse2008-02-14-47/+39
| | |/ | | | | | | | | | Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
| * | Fix compile warning on lib_ppc/board.cAnatolij Gustschin2008-02-15-1/+1
| | | | | | | | | | | | Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * | Extend ATI Radeon driver to support more video modesAnatolij Gustschin2008-02-15-0/+4
| | | | | | | | | | | | | | | | | | | | | Adds ATI Radeon 9200 support for 1280x1024, 1024x768, 800x600, 640x480 at 24, 16 and 8 bpp. Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * | xsengine: fix typo and few coding styleJean-Christophe PLAGNIOL-VILLARD2008-02-15-9/+9
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | Merge ../custodiansWolfgang Denk2008-02-15-0/+12
| |\ \
| | * \ Merge branch 'master' of git://www.denx.de/git/u-boot-mpc86xxWolfgang Denk2008-02-15-0/+12
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: common/cmd_reginfo.c Signed-off-by: Wolfgang Denk <wd@denx.de>
| | | * \ Merge commit 'wd/master'Jon Loeliger2008-02-14-4/+6
| | | |\ \ | | | | |/
| | | * | Add CFG_MPC86xx_DDR_ADDR and CFG_MPC86xx_DDR2_ADDR symbolsJon Loeliger2008-02-13-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These replace direct structure references for IMMR sections. Signed-off-by: Jon Loeliger <jdl@freescale.com>
| | | * | Merge commit 'wd/master'Jon Loeliger2008-02-13-293/+125
| | | |\ \
| | | * | | 86xx: Add reginfo commandBecky Bruce2008-01-24-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
| | | * | | 86xx: Add print_laws function to fsl_law.cBecky Bruce2008-01-24-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can be used for debug, and will be used by board code to help implement reginfo. Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
| | | * | | 86xx: Convert sbc8641d to use new law setup code.Becky Bruce2008-01-24-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
| | | * | | 86xx: Convert mpc8610hpcd to new law setup method.Becky Bruce2008-01-24-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
| | | * | | 86xx: Support new law setup method and convert mpc8641Becky Bruce2008-01-24-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the support code in cpu/mpc86xx for the new law setup code recently created fsl_law.c, and changes the MPC8641HPCN config to use this code. Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
| * | | | | Merge ../custodiansWolfgang Denk2008-02-15-2/+2
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xxWolfgang Denk2008-02-15-2/+2
| | |\ \ \ \
| | | * \ \ \ Merge branch 'for-1.3.2'Stefan Roese2008-02-14-2/+2
| | | |\ \ \ \ | | | | |_|_|/ | | | |/| | |
| | | | * | | ppc4xx: Fix problem with init-ram bigger than 4k on 440 platformsStefan Roese2008-02-04-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Stefan Roese <sr@denx.de>
| * | | | | | Merge ../custodiansWolfgang Denk2008-02-15-10/+12
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge branch 'master' of git://www.denx.de/git/u-boot-avr32Wolfgang Denk2008-02-15-10/+12
| | |\ \ \ \ \
| | | * | | | | AVR32: Make SDRAM refresh rate configurableHaavard Skinnemoen2008-02-05-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing code assumes the SDRAM row refresh period should always be 15.6 us. This is not always true, and indeed on the ATNGW100, the refresh rate should really be 7.81 us. Add a refresh_period member to struct sdram_info and initialize it properly for both ATSTK1000 and ATNGW100. Out-of-tree boards will panic() until the refresh_period member is updated properly. Big thanks to Gerhard Berghofer for pointing out this issue. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
| | | * | | | | ATSTK1004: Fix comment about default load addressHaavard Skinnemoen2008-02-05-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default load address is SDRAM + 2MB, not SDRAM + 4MB. The latter wouldn't have worked anyway since the board can only access 4MB of SDRAM. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
| | | * | | | | ATSTK1002: Use SDRAM + 4MB as default load addressHaavard Skinnemoen2008-02-05-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many people run into problems when they compile a big kernel and load the uImage at the default SDRAM + 2MB address as the kernel will overwrite the uImage as it is being unpacked. Increase the default load address so that we can load a 4MB kernel image without any problems. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
| | | * | | | | ATNGW100: Fix default mtest rangeHaavard Skinnemoen2008-02-05-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let mtest cover the whole SDRAM except the last megabyte, which is where u-boot lives. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
| * | | | | | | Coding STyle cleanup.Wolfgang Denk2008-02-15-34/+34
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
| * | | | | | Merge branch 'master' of git://www.denx.de/git/u-boot-blackfinWolfgang Denk2008-02-15-12440/+60719
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile doc/README.standalone Signed-off-by: Wolfgang Denk <wd@denx.de>
| | * | | | | | punt Blackfin VDSP headers and import sanitized/auto-generated onesMike Frysinger2008-02-04-12443/+58335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| | * | | | | | always pull in asm/blackfin.h for Blackfin portsMike Frysinger2008-02-04-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>