summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* script: update git ignore fileSascha Hauer2011-04-111-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: use safe_strncpy instead of sprintfSascha Hauer2011-04-111-2/+3
| | | | | | This is safe against string overflows. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move version_string to seperate fileSascha Hauer2011-04-116-12/+19
| | | | | | | | | In a noninteractive environment barebox will be compiled without command support. So move version_string to a seperate file which is compiled unconditionally. Also, display the banner when the simple console support is used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: remove unused nand_util fileSascha Hauer2011-04-112-859/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* startup: we can only mount root and devfs when compiled inSascha Hauer2011-04-111-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: remove unused header fileSascha Hauer2011-04-111-46/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devfs: factor out core devfs functionalitySascha Hauer2011-04-114-165/+244
| | | | | | | | | This makes it possible to compile without devfs. devfs_create/devfs_remove is used by drivers and thus must still be present even without devfs support. Also, this patch adds cdev_open/cdev_close/cdev_flush/cdev_ioctl calls to work with devices without using the file api. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: implement flush functionSascha Hauer2011-04-114-0/+34
| | | | | | | Once we have caching in file functions we need a way to sync the the underlying devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devfs: remove unused struct filep* argument from open/closeSascha Hauer2011-04-114-8/+8
| | | | | | | the cdev layer is under the file layer, so it should not use struct filep*. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ubi: do not use filepSascha Hauer2011-04-111-7/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: make it compile without info supportSascha Hauer2011-04-111-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: remove unused field 'type' from struct fs_driver_dSascha Hauer2011-04-114-8/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* freescale-mx35-3-stack: Add mmc0Thomas Mayer2011-04-081-0/+2
| | | | | Signed-off-by: Thomas Mayer <thomas.mayer@telemotive.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Nios2: Add Altera UART driverFranck JULLIEN2011-04-083-1/+102
| | | | | | | | This patch adds Altera UART driver. Kconfig and Makefile are updated to include this new driver. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'nand-pu' into nextSascha Hauer2011-04-0615-1306/+1411
|\
| * nand: make bbt support optionalSascha Hauer2011-04-043-4/+20
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: make vendor/type printout optionalSascha Hauer2011-04-042-69/+84
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: Make different ecc modes optionalSascha Hauer2011-04-043-5/+32
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: Make write support optionalSascha Hauer2011-04-047-10/+45
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: factor out nand write supportSascha Hauer2011-04-044-717/+766
| | | | | | | | | | | | In order to make it optional later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: factor out syndrome support to seperate fileSascha Hauer2011-04-044-207/+228
| | | | | | | | | | | | In order to make it optional later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: factor out software ecc support to seperate fileSascha Hauer2011-04-044-75/+97
| | | | | | | | | | | | in order to make it optional later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: Factor out hw ecc support to seperate fileSascha Hauer2011-04-044-85/+120
| | | | | | | | | | | | In order make hwecc support optional later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: do not fall through in nand_scan_tail()Sascha Hauer2011-04-041-16/+22
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>