summaryrefslogtreecommitdiffstats
path: root/include/linux
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'pu/device-cleanup' into nextSascha Hauer2012-02-171-0/+9
|\
| * add list_is_singularSascha Hauer2012-02-171-0/+9
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | list: add list_last_entry functionSascha Hauer2012-02-151-0/+11
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kconfig: sync to linux 3.2-rc4Jean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+32
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* lib: add bitrev utilityRobert Jarzmik2012-01-021-0/+16
| | | | | | | Add bit reversing utility, taken from the linux kernel. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lib: add BCH encoding/decodingRobert Jarzmik2012-01-021-0/+79
| | | | | | | | As flash memories need BCH correcting codes, add the BCH library, taken from the linux kernel. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/mtd: split mtd mtdoob devicesRobert Jarzmik2011-12-221-1/+0
| | | | | | | | Split /dev/mtd and /dev/mtdoob devices. Remove from mtd structure the mtdoob character device. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/mtd: transfer NAND notions to MTD coreRobert Jarzmik2011-12-221-1/+1
| | | | | | | | | | | | | Change NAND_WRITE into MTD_WRITE. Change "page_shift" references in the core, which are purely NAND, into mtd->writesize which is MTD generic. Rename all "info" (struct mtd_info) into "mtd". Also provide a parameter to add_mtd_device() so that legacy nand devices still appear as nand<N>. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add resource management functionsSascha Hauer2011-12-031-0/+14
| | | | | | | It is time to track our memory usage. Add a simple resource management. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add kernel gunzip implementationSascha Hauer2011-11-293-0/+874
| | | | | | | The kernel uncompression functions have a unified API so use this implementation to get it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* initial libfdt supportSascha Hauer2011-10-191-0/+1
| | | | | | | | | | vanilla libfdt 1.3.0 from the dtc git: git://git.jdl.com/software/dtc.git Only small adjustments to compile with barebox Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-10-091-2/+1
|\
| * remove EARLY_INIT and EARLY_CONSOLE supportSascha Hauer2011-09-271-2/+1
| | | | | | | | | | | | Bitrotted over time and nearly unused, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | include: list: add include because we need NULLWolfram Sang2011-09-141-0/+2
|/ | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clkdev: factorize macroJean-Christophe PLAGNIOL-VILLARD2011-08-121-0/+19
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* device: introduce resource structure to simplify resource declarationJean-Christophe PLAGNIOL-VILLARD2011-07-181-0/+115
| | | | | | | | | | | and add multi resource per device support for now we keep the old map_base and size temporary but will switch all of the used step by step to them resource way and mirror the first resource to the map_base and size if available Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* include/linux/stat.h: make struct stat unifiedAntony Pavlov2011-06-281-58/+0
| | | | | | | | | | | | | The current version of struct stat has been taken from an ancient Linux Kernel. It looks different on different architectures to support different userspace formats of struct stat. As we do not have a userspace on barebox there is no need to keep different versions. Also, this unification make MIPS arch possible. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pr_warn() must be pr_warning()Dirk Behme2011-06-011-0/+2
| | | | | | | | | | | | | Fix the warning/error: drivers/mci/mci-core.c: In function 'mci_card_probe': drivers/mci/mci-core.c:1195: warning: implicit declaration of function 'pr_warn' ... drivers/built-in.o: In function `mci_card_probe': mc13892.c:(.text.mci_card_probe+0x68): undefined reference to `pr_warn' Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> 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>
* nand: remove unused suspend/resume functionsSascha Hauer2011-04-041-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd/nand: increase page and oob size limitsBaruch Siach2011-03-181-2/+2
| | | | | | | | Sync these limits with the Linux kernel. This allows support for NAND devices with page size of 4k. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* import swab.h arch implementation form linux v2.3.37Jean-Christophe PLAGNIOL-VILLARD2011-01-174-160/+301
| | | | | | | this will avoid __bswapsi2 issue see with gcc 4.5.1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_s3c2410: Fix sparse warnings.Marek Belisko2010-11-191-1/+0
| | | | | | | | | | | Patch fix following sparse warnings: drivers/mtd/nand/nand_s3c2410.c:125:9: warning: incorrect type in argument 1 (different base types) expected void const volatile [noderef] <asn:2>*<noident> got unsigned long Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: Fix sparse warning.Marek Belisko2010-11-191-3/+4
| | | | | | | | | | | Patch fix following sparse warning: drivers/mtd/nand/nand_base.c:123:16: warning: incorrect type in argument 1 (different address spaces) expected void const volatile [noderef] <asn:2>*<noident> got void *IO_ADDR_R Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* import __stringify from linuxJean-Christophe PLAGNIOL-VILLARD2010-09-291-0/+12
| | | | | | | update the current code Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: move clkdev to drivers/clkJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+36
| | | | | | | | | | | | | as refer in this patch "arm & sh: factorised duplicated clkdev.c" factorise some generic infrastructure to assist looking up struct clks for the ARM & SH architecture. as the code is identical at 99% in linux move it also as preparing for the SH adding Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* types.h: move __kernel_dev_t to include/linux/types.hJean-Christophe PLAGNIOL-VILLARD2010-09-171-0/+2
| | | | | | no need to have a arch specific type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* move include/unaligned to include/linux/unaligned/Jean-Christophe PLAGNIOL-VILLARD2010-08-3010-0/+510
| | | | | | | as originally in linux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-271-0/+232
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce phys_addr_t and resource_size_tJean-Christophe PLAGNIOL-VILLARD2010-08-271-0/+8
| | | | | | | this will allow to support 64bit platform Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* stddef: introduce true/false enumJean-Christophe PLAGNIOL-VILLARD2010-08-061-0/+5
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* amba: add pl011Jean-Christophe PLAGNIOL-VILLARD2010-08-061-0/+164
| | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Andrea GALLO <andrea.gallo@stericsson.com> Cc: Gael SALLES <gael.salles@stericsson.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* string: add strlcpy supportJean-Christophe PLAGNIOL-VILLARD2010-08-061-0/+3
| | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Andrea GALLO <andrea.gallo@stericsson.com> Cc: Gael SALLES <gael.salles@stericsson.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock: Introduce clock framework from LinuxJean-Christophe PLAGNIOL-VILLARD2010-08-061-0/+158
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add ubi support from u-boot. Just enough to compile and scanSascha Hauer2010-07-051-0/+186
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include stuff missing for ubiSascha Hauer2010-07-051-0/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add partition mtd supportSascha Hauer2010-07-052-0/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add rbtree support (needed for ubi)Sascha Hauer2010-07-051-0/+160
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* byteorder: add missing {BIG,LITTLE}_ENDIAN definesBaruch Siach2010-06-301-0/+6
| | | | | | | This fixes build warnings when testing __BYTE_ORDER of the other kind. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* import recent include/linux/compiler*.hMarc Kleine-Budde2010-02-164-17/+180
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* documentation updatesJuergen Beisert2009-12-153-0/+12
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-154-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* NAND: Allow to read oob dataSascha Hauer2009-12-031-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* list: remove duplicated list.hSascha Hauer2009-11-032-41/+388
| | | | | | | | 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>
* add bool types supportJean-Christophe PLAGNIOL-VILLARD2009-11-021-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: Add size parameterSascha Hauer2009-07-211-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-211-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: Replace DEBUG by MTD_DEBUGSascha Hauer2009-06-101-2/+2
| | | | | | DEBUG is already used for another purpose by U-Boot Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add __[lb]e typesSascha Hauer2009-04-061-0/+22
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce dev_* and pr_* functionsSascha Hauer2008-10-311-3/+0
| | | | | | | | Proven to be useful in linux kernel, U-Boot should have such a thing aswell. We do not distinguish between the various print levels others than debug and not debug. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>