summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Kconfig: sync with linux kernel v2.6.36-rc1-168-ge36c886Jean-Christophe PLAGNIOL-VILLARD2010-08-221-0/+13
| | | | | | this will add also the support of the new ncurse interface nconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* barebox_default_env: fix out of tree buildJean-Christophe PLAGNIOL-VILLARD2010-07-221-3/+5
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Allow to merge default environment from more than one directorySascha Hauer2010-06-222-4/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* errno: add strings for network related error messagesSascha Hauer2010-06-171-3/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-171-19/+21
| | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix error return value while loading environmentLuotao Fu2010-05-031-1/+5
| | | | | Signed-off-by: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock: fix possible error on overflow in is_timeoutUwe Kleine-König2010-04-221-2/+1
| | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce a arch_shutdown call and call it from shutdown_bareboxSascha Hauer2010-03-301-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make panic and hang __noreturn functionsSascha Hauer2010-03-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: allow fancy promptsSascha Hauer2010-03-302-4/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: only remove backslashes introduced from globSascha Hauer2010-03-301-2/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: Fix return code when calling 'exit' inside loopsSascha Hauer2010-03-301-11/+3
| | | | | | | | | | | | | | | | | | | | v2: Do not exit from all scripts but only the current one This fixes the case: barebox:/ cat /test if [ 0 = 0 ]; then exit 1 fi barebox:/ /test barebox:/ echo $? 0 barebox:/ Also, remove code to not allow exit from main shell. The for(;;) loop in common/startup.c will bring us back anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-014-19/+19
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused file common/flash.cSascha Hauer2010-02-011-73/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove/adjust erroneous references to CONFIG_MODULE.Robert P. J. Day2009-12-211-1/+0
| | | | | | | | The correct config variable is CONFIG_MODULES, so tweak any references to the incorrect CONFIG_MODULE. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-1510-59/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Re-format the fileJuergen Beisert2009-12-101-912/+781
| | | | | | | Re-format the file with 'indent' and some manual corrections. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Combine memory initialization with the main memory functions.Juergen Beisert2009-12-102-106/+60
| | | | | | | | | Memory allocation is very simple in u-boot-v2. So, it makes also sense to add the "operating system" emulation layer into the main memory management source file, to keep them at one place and simple. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Use the global string functionsJuergen Beisert2009-12-101-108/+6
| | | | | | | | | Don't try to be smarter than GCC. There are various better optimizations available than to write our own. So, use the globaly available string functions instead. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Remove win32 supportJuergen Beisert2009-12-101-186/+0
| | | | | | | Remove never used code. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Remove debug codeJuergen Beisert2009-12-101-179/+0
| | | | | | | | When assert() is always defined to do nothing, the debug functions makes no sense, because they also do nothing. Removing them shrinks the code. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Use nowadays function prototypesJuergen Beisert2009-12-101-87/+1
| | | | | | | | Use a function prototype style as used in all other u-boot-v2 sources, too. Also remove C++ support. We do not use C++ in this project. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* After moving all declarations to the C source, do the same with the docJuergen Beisert2009-12-101-0/+217
| | | | | | | Done in preparation to provide this documentation for doxygen. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Remove confusing macros that hide the real functions namesJuergen Beisert2009-12-101-31/+33
| | | | | | | | | This feature is provided, to support more than u-boot-v2. But its more confusing than helpful. Remove it and do it straight forward like all other sources in this tree, too. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Use the native 'void' instead of 'Void_t'Juergen Beisert2009-12-101-29/+29
| | | | | | | We are in the *NIX world, so keep a 'void' as is. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Move private settings and configuration into the C sourceJuergen Beisert2009-12-101-1/+458
| | | | | | | | | | | Include the board config first to be able to configure the memory management in the documented way. If not used, the defaults are used. On the other hand, there is no need to pollute the other source files with these local management settings. So, move them from the header into the C source file. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Move variables to bssJuergen Beisert2009-12-101-4/+4
| | | | | | | | There is no need to init variables with 0. So, move them to the bss and let the C runtime does this job for us. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* introduce GENERIC_GPIO labelSascha Hauer2009-12-101-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.c: use USECOND and MSECONDMarc Kleine-Budde2009-12-031-2/+2
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove deadlock messageJuergen Beisert2009-11-191-0/+4
| | | | | | | | | | | | | | | | Any wrong or unknown command will result into the output: Unknown command '<some text>' - try 'help' If the command 'help' is disabled, this will end up in: Unknown command 'help' - try 'help' which is for blondes. Suppress the "try 'help'" for the case the 'help' command is disabled. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ENV_HANDLING requires CRC32Juergen Beisert2009-11-191-0/+1
| | | | | | | | ENV_HANDLUNG requires CRC32 to make the linker happy. Signed-off by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* list: remove duplicated list.hSascha Hauer2009-11-034-4/+4
| | | | | | | | We accidently have two list implementations in the tree: include/list.h and include/linux/list.h. This patch moves the latter (newer one) to include/linux/list.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: remove include/hush.hSascha Hauer2009-10-221-1/+4
| | | | | | | Everything in include/hush.h is only used in hush.c, so remove the header file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* uboot_default_env: fix out of tree buildJean-Christophe PLAGNIOL-VILLARD2009-10-201-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* commands: remove maxargsSascha Hauer2009-10-192-8/+0
| | | | | | | No need to check for maximum argument counts. The commands are safe to be called with more arguments, so lets safe some bytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* call getopt_reset only onceSascha Hauer2009-10-191-0/+3
| | | | | | | instead of calling getopt_reset in each command, call it only once before calling the command. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* commands: return COMMAND_ERROR_USAGESascha Hauer2009-10-191-8/+4
| | | | | | | instead of calling u_boot_cmd_usage in each command to safe space. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* commands: add defines for command errors/successSascha Hauer2009-10-191-1/+7
| | | | | | | | This allows us to return COMMAND_ERROR_USAGE for a failed command which will then print the usage, a very common case for commands. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* consolidate command calling in execute_commandSascha Hauer2009-10-193-35/+21
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* console: partly revert 84688dfdb4aecc8296b4fef9bc657335d7b9ade5Sascha Hauer2009-09-251-1/+0
| | | | | | Some unrelated code leaked in in this commit Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: pass return code from exit commandSascha Hauer2009-09-251-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: Only run list if it's not emptySascha Hauer2009-09-251-1/+6
| | | | | | Running empty lists lead to the wrong return status Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: make locally used function staticSascha Hauer2009-09-251-2/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MMU supportSascha Hauer2009-08-191-0/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: Fix line endingsSascha Hauer2009-08-131-2/+2
| | | | | | use \r\n instead of \n\r Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Improve or fix various parameter documentationJuergen Beisert2009-07-311-0/+4
| | | | Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* get rid of device idsSascha Hauer2009-07-212-3/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move some init work into initcallsSascha Hauer2009-07-211-10/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-213-361/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Change return type of function part_remove to void, otherwise the compilerJuergen Beisert2009-07-011-3/+1
| | | | | | | | complains: common/partition.c:245: warning: initialization from incompatible pointer type Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>