summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* rework device parametersSascha Hauer2010-06-175-16/+15
| | | | | | | | 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>
* net: remove old network stackSascha Hauer2010-06-171-357/+2
| | | | | | All network commands now use the new stack, so remove the old one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Implement a new network stackSascha Hauer2010-06-171-3/+338
| | | | | | | | | | | | | | | | | The old network stack has some bad limitations: - network commands are required to call NetLoop() which only returns when the network layer wants to. Instead we now use a net_poll() function which returns after handling one packet (or immediately if no packet is available). - There can be only one packet handler which makes it impossible to handle multiple connections - CamelCaseMakesItHardToRead The new network stack is implemented as a parallel universe. Currently all commands still use the old stack. They are converted in subsequent patches. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove need for eth_halt/eth_openSascha Hauer2010-06-171-0/+1
| | | | | | | | | | | We used to eth_open/eth_halt the network devices during NetLoopInit which is called whenever the user enters a network command. Change this behaviour so that the current network device gets opened when making it the current one. With this change it's always possible to send packages and we are able to implement a new network stack in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: implement i2c_get_adapter()Sascha Hauer2010-05-261-0/+2
| | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Increase MAX_FILES to 128Sascha Hauer2010-05-031-1/+1
| | | | | | | I already hit the limit while doing DFU on a custom board. Increase the value to a safe limit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mc9s08dz60: Fixed incorrect register offsets.marc2010-04-121-34/+48
| | | | | | | These values dervied from Freescale source code for the mc9s08dz60 Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove now unused arch_executeSascha Hauer2010-03-301-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce a arch_shutdown call and call it from shutdown_bareboxSascha Hauer2010-03-301-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make panic and hang __noreturn functionsSascha Hauer2010-03-301-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make reset_cpu a __noreturn functionSascha Hauer2010-03-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add process_escape_sequence functionSascha Hauer2010-03-301-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add snprintf functionSascha Hauer2010-03-301-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add unlzo supportSascha Hauer2010-03-301-0/+46
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add unaligned access supportSascha Hauer2010-03-3010-0/+510
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'nor' into nextSascha Hauer2010-02-182-1118/+0
|\
| * cfi_flash: move include/cfi_flash.c next to driverSascha Hauer2010-02-081-660/+0
| | | | | | | | | | | | | | | | This file has no useful things for others than the driver, so move it next to the driver and remove the corresponding include from other files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfi_flash: remove old driver and switch to new oneSascha Hauer2010-02-082-661/+203
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | common.h: add compile time check helper functionsMarc Kleine-Budde2010-02-161-2/+29
| | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | import recent include/linux/compiler*.hMarc Kleine-Budde2010-02-164-17/+180
| | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | i2c.h: fix typo in copyrightMarc Kleine-Budde2010-02-161-1/+1
|/ | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Merge branch 'pu'Sascha Hauer2010-02-012-25/+8
|\
| * remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-011-12/+8
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * remove obsolete commentSascha Hauer2010-01-251-5/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * remove unused cdp codeSascha Hauer2010-01-251-8/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-sha-mx35-3-stack-updates' of ↵Sascha Hauer2010-01-192-4/+147
|\ \ | | | | | | | | | ssh://git.pengutronix.de/git/mkl/barebox into next
| * | mc13892: clean up driver interfaceMarc Kleine-Budde2010-01-181-2/+88
| | | | | | | | | | | | | | | | | | | | | Export mc13892_reg_read, mc13892_reg_write and mc13892_set_bits function instead of exposing the i2c interface. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * | mc9sdz60: clean up driver interfaceMarc Kleine-Budde2010-01-181-2/+59
| |/ | | | | | | | | | | | | Export mc9sdz60_reg_read, mc9sdz60_reg_write and mc9sdz60_set_bits function instead of exposing the i2c interface. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | I2C : add NS LP3972 PMIC supportEric Benard2010-01-161-0/+7
| | | | | | | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Start to add ATA support to bareboxJuergen Beisert2010-01-141-0/+39
| | | | | | | | | | | | | | Add the basic files, declarations and folders to bring in ATA support. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add EP93xx ethernet driverMatthias Kaehlcke2010-01-141-0/+1
|/ | | | | | | Added ethernet driver for EP93xx SoCs Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove/adjust erroneous references to CONFIG_MODULE.Robert P. J. Day2009-12-211-1/+1
| | | | | | | | 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>
* i2c: Add a no-op i2c_register_board_info if i2c is disabledSascha Hauer2009-12-181-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* replace // style commentsSascha Hauer2009-12-181-10/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove unnecessary casts in key definesSascha Hauer2009-12-181-6/+6
| | | | 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>
* documentation updatesJuergen Beisert2009-12-1510-0/+40
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup colleteral damage from renamingSascha Hauer2009-12-151-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-1519-68/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Combine memory initialization with the main memory functions.Juergen Beisert2009-12-101-2/+0
| | | | | | | | | 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 nowadays function prototypesJuergen Beisert2009-12-101-9/+0
| | | | | | | | 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-217/+0
| | | | | | | 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-107/+13
| | | | | | | | | 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-23/+15
| | | | | | | 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-475/+0
| | | | | | | | | | | 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>
* Remove unused codeJuergen Beisert2009-12-101-99/+0
| | | | | | | | Remove unused code to get a better understanding what really is happen in the source. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Include the 'size_t' declarationJuergen Beisert2009-12-101-0/+1
| | | | | | | The 'size_t' declaration is needed for the function prototypes. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* remove unused include filesSascha Hauer2009-12-103-291/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Add FB_SYNC_ defines from kernelSascha Hauer2009-12-091-0/+22
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX flash header: make it work on i.MX35Sascha Hauer2009-12-031-1/+1
| | | | | | | | | The flash header is used on different i.MXs other than the i.MX25, so rename it. Also, add a possibility to put a flash header on different offsets (0x100, 0x400 and 0x1000), needed for different boot mediums. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>