summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/lib
Commit message (Collapse)AuthorAgeFilesLines
* bootm: introduce bootm_load_os helperSascha Hauer2014-01-101-2/+4
| | | | | | | | | | The common bootm code used to load uImage contents to SDRAM before calling into the handlers if possible. This makes the handlers complicated since they have to handle many cases. Instead, introduce a helper to load the os after the handlers have figured out a good load address. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: Remove unneeded assignmentAlexander Shiyan2013-07-091-1/+1
| | | | | | | Assignment of function parameter has no effect outside the function. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: initialize malloc pool before start_barebox()Sascha Hauer2013-03-141-4/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1715-68/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: add __ashrdi3Sascha Hauer2012-06-282-0/+37
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* booting: more flexible Linux bootargs generationSascha Hauer2012-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | We currently use the environment variable 'bootargs' to get the Linux bootargs. This patch allows for a more flexible bootargs generation using global variables. With it the Linux bootargs are concatenated from multiple variables. This allows to replace parts of the bootargs string without having to reconstruct it completely. With this bootargs can be constructed like: global linux.bootargs.base="console=ttyS0,115200" global linux.bootargs.ip="ip=dhcp" global linux.mtdparts="physmap-flash.0:512K(nor0.barebox),-(root)" This will then automatically be combined into a kernel bootargs string during boot. If the 'linux.bootargs.' variables are all empty the old standard 'bootargs' way will be used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: use new uimage codeSascha Hauer2011-12-151-4/+8
| | | | | | | | | | | | | | This switches the bootm code to the new uimage code. Also bootm can now handle other types of images than uImages. Currently the only architecture making use of this is arm which allows to boot zImages, raw images and barebox images. I intended to make a more bisectable series from this but I failed becuase there are many dependencies and no matter how I tried the patches grew bigger and and bigger. So I decided to put this all in a single patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix malloc space sizesSascha Hauer2011-12-031-1/+1
| | | | | | end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: push relocate_image up to the generic commandSascha Hauer2011-11-291-3/+0
| | | | | | | | | All handlers used to just relocate the image without any checks, so we are doomed if we write outside of SDRAM or will overwrite ourselves. Move the relocation up to the generic part where we have a chance of catching these issues. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename include/mem_malloc.h to include/memory.hSascha Hauer2011-09-231-1/+1
| | | | | | | Which is a better name and also better to collect other things. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: fix printf compiler warningsSascha Hauer2011-01-072-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: switch mask to CLOCKSOURCE_MASKJean-Christophe PLAGNIOL-VILLARD2010-11-291-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* reset_cpu: unify declarationRobert Schwebel2010-10-221-1/+1
| | | | | | | | include/common.h declares this as "unsigned long addr", so we unify it. This also silences a doxygen warning. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-10-081-2/+2
| | | | | | Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Revert "Replace direct header access with the API routines"Sascha Hauer2010-10-071-2/+2
| | | | | | | | | | This reverts commit 0ceafe14be072696eff3e549d8c7b7de8a3e416d. Conflicts: include/image.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-09-241-2/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove now unused arch_executeSascha Hauer2010-03-301-11/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: implement arch_shutdown callSascha Hauer2010-03-301-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make reset_cpu a __noreturn functionSascha Hauer2010-03-301-1/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix arch_execute prototypeSascha Hauer2009-12-171-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-157-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [blackfin] memory layout related compile fixesSascha Hauer2008-07-031-2/+3
|
* [blackfin]: register handler for booting linux imagesSascha Hauer2008-02-211-1/+16
|
* Blackfin: Need to mask all interrupts before starting Linux.Sascha Hauer2007-10-231-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* CONFIG_MODULE -> CONFIG_MODULESSascha Hauer2007-10-041-1/+1
|
* add blackfin specific bits for module handlingSascha Hauer2007-09-282-0/+312
|
* declare lots of functions staticSascha Hauer2007-09-281-1/+1
|
* blackfin_linux.c: disable icache unconditionally. If I understand theSascha Hauer2007-09-271-5/+2
| | | | | Manual correctly, there is no need to invalidate the cache beforehand (in fact on my board this function crashes)
* ups. mixed up start and end in blackfin_mem_malloc_initSascha Hauer2007-09-271-2/+2
|
* add blackfin cache and traps handlingSascha Hauer2007-09-166-156/+675
|
* make blackfin linux start function functionalSascha Hauer2007-09-161-6/+4
|
* remove unused blackfin_board.hSascha Hauer2007-09-161-57/+0
|
* add the possibility to have a arch specific 'go' command. SomeSascha Hauer2007-09-161-4/+9
| | | | architectures need this (e.g. blackfin and i386)
* first maybe-working blackfin linux boot functionSascha Hauer2007-09-131-42/+18
|
* add missing files to arch/blackfin/lib/MakefileSascha Hauer2007-09-131-1/+3
|
* remove cli/sti from arch/blackfin/lib/cpu.c. We do not use interruptsSascha Hauer2007-09-131-8/+2
|
* move blackfin cache functions to arch/blackfin/lib/cpu.cSascha Hauer2007-09-121-0/+189
|
* rename bf533_linux.c -> blackfin_linux.cSascha Hauer2007-09-121-0/+0
|
* initial blackfin supportSascha Hauer2007-09-1117-0/+1493