summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * | list: add list_last_entry functionSascha Hauer2012-02-151-0/+11
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'gpio_keys' of git://uboot.jcrosoft.org/barebox into nextSascha Hauer2012-02-173-0/+39
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: drivers/Makefile Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | readkey: add define for Ascii keysJean-Christophe PLAGNIOL-VILLARD2012-02-161-0/+4
| | | | | | | | | | | | | | | | | | this will simplify the usage of gpio keyboard Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | add gpio keyboard supportJean-Christophe PLAGNIOL-VILLARD2012-02-162-0/+35
| |/ | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | drivers/pwm: add duty_ns and period_ns to core pwm chipRobert Jarzmik2012-02-171-1/+6
| | | | | | | | | | | | | | | | | | | | Add variables to control the duty_ns and period_ns of PWM chips. When these variables are set, a call to either pwm_enable() or pwm_config() is performed to enforce the setup values. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add pwm core supportSascha Hauer2012-02-171-0/+63
|/ | | | | | | | | | | | | This patch adds framework support for PWM (pulse width modulation) devices. A new pwm can be registered from a hardware driver using pwmchip_add(). It can then be requested from a client driver using pwm_request(). A string is used as a unique identifier for the pwms. It should usually be initialized by the hardware drivers using dev_name(dev). The client API is the same as currently in the Linux Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Fix 8 bit mmc cardsSascha Hauer2012-02-091-0/+1
| | | | | | | | | | Currently we test the cards capabilities for being 8bit capable. This does not work since noone ever sets this bit. Unfortunately there is no bit to test 8bit capability, so we introduce a patch from the kernel which puts the mmc card into 8bit mode and tests whether it can succesfully read the ext_csd in this mode. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add a complete list of EXT_CSD_* fields from the kernelSascha Hauer2012-02-091-5/+45
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add a timeout polling loop convenience wrapperSascha Hauer2012-02-091-0/+19
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Use struct mci for internal argument passingSascha Hauer2012-02-091-5/+2
| | | | | | | | | The mci layer currently passes around a struct device_d for its internal use. Apart from being confusing this drops typesafety for no good reason. Instead, pass around a struct mci. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: remove unused device argument from set_iosSascha Hauer2012-02-091-1/+1
| | | | | | This argmuent is unused in all drivers, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci core: replace discrete ios values with struct iosSascha Hauer2012-02-091-1/+31
| | | | | | | As we'll need more arguments to set_ios over time put them in a struct mci_ios like the kernel does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: use card type definitionsSascha Hauer2012-02-091-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add complete definitions for the card typeSascha Hauer2012-02-091-2/+10
| | | | | | | Add the different DDR types and also a definition for the card type mask. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/debug' into nextSascha Hauer2012-01-273-14/+10
|\
| * Add dump_stack functionSascha Hauer2012-01-261-0/+9
| | | | | | | | | | | | | | | | | | | | At least ARM allows us to dump the stack, but we currently have no prototype for this. Add a dump_stack prototype and provide a static inline function for architectures without stack dump support. Also, call dump_stack() in panic() to provide more information in the case of a panic. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * kfifo: change kfifo_init to work with a preallocated fifoSascha Hauer2012-01-261-1/+1
| | | | | | | | | | | | | | | | kfifo currently only works with dynamically allocated fifos. Change the currently unused kfifo_init to take a preallocated fifo. This allows for statically initialized fifos. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * console: remove unused function prototypesSascha Hauer2012-01-261-13/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: miidev: factor out miidev_get_status()Wolfram Sang2012-01-251-0/+5
| | | | | | | | | | | | | | | | | | Currently, we can only print the phy_status. Factor out the routine to get the status, so we can query it from fec drivers and configure accordingly. Needed because mx28 needs a special bit set for 10Mbit. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | introduce barebox_bare_init_size to known the bare_init size and check itJean-Christophe PLAGNIOL-VILLARD2012-01-232-0/+18
| | | | | | | | | | | | | | | | | | | | | | this allow to check we do not exceed the size of the SRAM as example introduce BAREBOX_MAX_BARE_INIT_SIZE the maximum size of bare_init this will allow your bare_init will fit in SRAM as example ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ns16550: support for UART with broken FIFOAntony Pavlov2012-01-191-0/+2
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/jean-codesize' into nextSascha Hauer2012-01-135-2/+91
|\ \
| * | driver: switch driver_d name to const char*Jean-Christophe PLAGNIOL-VILLARD2012-01-112-2/+2
| | | | | | | | | | | | | | | | | | this will allow to save 200 bytes on a9g20 and 180 bytes on ti xlaoder Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | param: add config to disable itJean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+53
| | | | | | | | | | | | | | | | | | this will allow to save 992 Bytes for TI xlaoder or AT91 bootstrap Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | kconfig: sync to linux 3.2-rc4Jean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+32
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | banner: add config to disable itJean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+4
| | | | | | | | | | | | | | | | | | this will allow to save 144 bytes Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | | Merge branch 'master' into nextSascha Hauer2012-01-121-0/+10
|\ \ \ | |/ / |/| / | |/
| * twl6030: add missing twl6030 header file.Alexander Aring2012-01-061-0/+10
| | | | | | | | | | | | | | Add missing twl6030 header file. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | environment: export_/getenv_ull as inline ifndef CONFIG_ENVIRONMENT_VARIABLESJean-Christophe PLAGNIOL-VILLARD2012-01-111-3/+7
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-01-0519-339/+730
|\
| * serial gadget: enable/disable on requestEric Bénard2012-01-041-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - add a usbserial command to enable/disable the serial gadget - allow dfu and usbserial to cohexist in the same barebox - add a timeout in u_serial so that we don't get locked if the user enable usbserial from a UART console but doesn't consume the data on the usbserial port created on the PC - remove debug or verbose printf - tested on i.MX25 & i.MX35 & usb-a926x Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'pu/tlsf' into nextSascha Hauer2012-01-031-180/+0
| |\
| | * tlsf: remove unused stuff from tlsfbits.hSascha Hauer2011-12-231-180/+0
| | | | | | | | | | | | | | | | | | | | | Also, as this file is locally used by the tlsf implementation, move this file to common. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | 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>
| * adapt tlsf for bareboxAntony Pavlov2011-12-231-1/+1
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * import TLSF 2.0 from http://tlsf.baisoku.org/tlsf-2.0.zipAntony Pavlov2011-12-232-0/+232
| | | | | | | | | | | | | | | | | | TLSF: Two Level Segregated Fit memory allocator implementation. Written by Matthew Conte (matt@baisoku.org). Public Domain, no restrictions. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'master' into nextSascha Hauer2011-12-231-1/+1
| |\
| * | 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>
| * | twl-core: add support for twl6030Alexander Aring2011-12-211-0/+419
| | | | | | | | | | | | | | | | | | | | | Add support for twl6030 in twl-core driver. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | twl-core: abstract twl4030 and add twlcore driverAlexander Aring2011-12-212-12/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a general twl device driver twlcore to call i2c send/write functions. Abstract twl4030 to call twlcore functions. Fixed some code-styling issues pointed out by checkpatch. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | stringlist-functions: add sorted insertAlexander Aring2011-12-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add sorted insert in stringlist functions. Also added function to checked if string is already in string list. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Merge branch 'work/uimage' into nextSascha Hauer2011-12-175-135/+87
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: arch/ppc/lib/ppclinux.c commands/bootm.c include/boot.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | move code now only used in mkimage to mkimageSascha Hauer2011-12-151-103/+0
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | remove now unused uImage codeSascha Hauer2011-12-151-28/+0
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | bootm: use new uimage codeSascha Hauer2011-12-151-7/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the bootm code to the new uimage code. Also bootm can now handle other types of images than uImages. Currently the only architecture making use of this is arm which allows to boot zImages, raw images and barebox images. I intended to make a more bisectable series from this but I failed becuase there are many dependencies and no matter how I tried the patches grew bigger and and bigger. So I decided to put this all in a single patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | reimplement uImage codeSascha Hauer2011-12-151-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a new API for accessing uImages which makes it easy for commands to open images, verify them, load to (free) sdram regions and show information about uImages. - We now do not load the image to malloced space anymore. - The data in the header is now stored in cpu native endianess after uimage_open which makes it easy to access the header data. - uImage can be loaded to dynamically allocated sdram regions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | libbb: add read_full/write_full functionsSascha Hauer2011-12-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | These functions read/write all data or return with an error. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | filetype: Add oftree detectionSascha Hauer2011-12-151-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>