summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ata: guessing disk sizes is only needed on X86v2011.04.0-phytec-pcm049Sascha Hauer2011-04-121-1/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: turn several pr_* statements into debugSascha Hauer2011-04-121-13/+13
| | | | | | These are mostly useful for developers, so turn them off by default. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: shrink string footprintSascha Hauer2011-04-121-6/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci-core: fix debug statementsSascha Hauer2011-04-121-4/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci omap: make write support optionalSascha Hauer2011-04-121-1/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci omap: rename functions from mxc to omapSascha Hauer2011-04-121-6/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM beagle board: add xload defconfigSascha Hauer2011-04-121-0/+38
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap beagle: update defconfigSascha Hauer2011-04-121-2/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap beagle: Add noshell support for booting from MMCSascha Hauer2011-04-122-0/+43
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: add pcm049 defconfigsSascha Hauer2011-04-122-0/+97
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap4: Add pcm049 board supportSascha Hauer2011-04-129-0/+679
| | | | | | This patch adds support for Phytecs pcm049 board Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add panda defconfigsSascha Hauer2011-04-122-0/+86
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap4: panda board supportSascha Hauer2011-04-128-0/+664
| | | | | | This patch adds support for the TI omap4 panda board. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: add xload helper functionsSascha Hauer2011-04-125-1/+99
| | | | | | | Add some common xload helper functions to determine the boot source on omap3/4 and to load images from mmc and nand. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: Add omap4 supportSascha Hauer2011-04-129-1/+1663
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: make sr32 a static inline functionSascha Hauer2011-04-122-21/+22
| | | | | | This generates smaller code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci omap: hsmmc is also found on the omap3Sascha Hauer2011-04-121-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: Add omap signGP tool and possibility to build ift imagesSascha Hauer2011-04-124-0/+326
| | | | | | | The tool is needed to build images suitable for omap processors to load from mmc or nand. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: add fat filesystem supportSascha Hauer2011-04-1210-0/+3704
| | | | | | | | | | | | | | This code is based on: http://elm-chan.org/fsw/ff/00index_e.html FatFs Generic FAT File System Module This patch offers a read/write implementation for barebox. The code does not exaclty match barebox coding style, but works nicely and should be ready to give it a try. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cp command: handle directories as last argumentSascha Hauer2011-04-121-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* copy_file: handle write return value correctlySascha Hauer2011-04-121-4/+11
| | | | | | | write() does not necessarily consume all input, handle this case correctly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kfifo: kfifo_put takes a const bufferSascha Hauer2011-04-122-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move simple_itoa to libbb so that others can use itSascha Hauer2011-04-123-14/+16
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* environment: make default env path configurableSascha Hauer2011-04-125-5/+11
| | | | | | | | Normally the default path to save the environment is /dev/env0. However, we can't map a file in a fat filesystem to /dev/env0. So if we want to store the environment in a file in fat we have to make it configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add a context to the packet handlerSascha Hauer2011-04-128-22/+27
| | | | | | | This is not yet used, but with this the different network commands can get rid of their global data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth: check the result of edev->get_ethaddrSascha Hauer2011-04-121-2/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand omap: handle erased pages correctly in hamming ecc modeSascha Hauer2011-04-121-0/+5
| | | | | | do not throw ecc errors on erased pages. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand omap: use xzalloc instead of callocSascha Hauer2011-04-121-5/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand omap: use standard debug functionsSascha Hauer2011-04-121-19/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: add proper bb remove functionSascha Hauer2011-04-123-12/+28
| | | | | | | | The old way happily removed cdev entries which were no bb dev at all. Fix this by checking if the given device actually is a bb device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: switch to cdev operationsSascha Hauer2011-04-122-40/+27
| | | | | | | The cdev operations are available without the complete file API, so they are more suitable for internal usage. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: move bb handling code to drivers/mtd/nandSascha Hauer2011-04-123-249/+283
| | | | | | | It's good to seperate the code which others can use from commands. This way other users do not depend on the command being compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: nand_block_markbad is only used with nand write supportSascha Hauer2011-04-123-21/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand omap: turn debug messages into dev_dbgSascha Hauer2011-04-121-8/+8
| | | | | | | The information from the probe function is useful for developers only, so turn them into dev_dbg to safe binary space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand omap: fix hamming romcode ecc codeSascha Hauer2011-04-121-4/+14
| | | | | | | | This got broken in commit: 6943635 mtd nand omap: make ecc mode runtime configurable Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: make reading oob optionalSascha Hauer2011-04-114-9/+49
| | | | | | | The nand oob functions occupy quite some binary space. If not needed, we can save this space by making this configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: make exception handling optionalSascha Hauer2011-04-113-2/+17
| | | | | | | | On several boards without MMU support the vectors cannot be mapped to 0x0 and exception support is nonfunctional anyway, so make this configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add dummy_malloc functionsSascha Hauer2011-04-113-1/+44
| | | | | | | | | | For some environments the dummy malloc functions offer a very small alternative implementation. malloc will get its memory from sbrk() and never frees memory again. This of course is not suitable for interactive environments and thus depends on CONFIG_SHELL_NONE Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* malloc: put common memory functions to seperate fileSascha Hauer2011-04-114-50/+73
| | | | | | | These functions are needed independently of the specific malloc implementation, so move them out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: compile icache command only when command support is presentSascha Hauer2011-04-111-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add noshell supportSascha Hauer2011-04-111-1/+12
| | | | | | | | Some scenarios like initial bootloaders do not need interactive shell support, so make this optional. Without a shell a board must provide its own run_shell function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make command support optionalSascha Hauer2011-04-114-3/+17
| | | | | | | In a noninveractive environment we do not need commands. So make them optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* env: Make environment variable support optionalSascha Hauer2011-04-114-1/+20
| | | | | | | Environment variables are only useful in interactive environments. Make it optional on our way to support a noninteractive barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: make write support optionalSascha Hauer2011-04-112-0/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ata: make write support optionalSascha Hauer2011-04-112-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ata: use block supportSascha Hauer2011-04-112-158/+35
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add block supportSascha Hauer2011-04-114-0/+302
| | | | | | | | This adds a simple block layer to barebox. Reading and writing to block devices can be painfully slow without caching, so add a simple caching layer here. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs mount: fix error handlingSascha Hauer2011-04-111-6/+13
| | | | | | | | If we register a device we have to unregister it later when the driver did not accept the device. Also, do not forget to free the backingstore string. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: seperate usb command from usb coreSascha Hauer2011-04-115-20/+53
| | | | | | | | This patch makes the USB command optional and makes usb_rescan a global function. This way we can use USB in noninteractive environments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial 16550: use xzallocSascha Hauer2011-04-111-3/+1
| | | | | | | No need to check for the result and increases the chance that we build a binary without the rarely used calloc function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>