summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* digest: make it multi-instanceJean-Christophe PLAGNIOL-VILLARD2015-03-121-9/+19
| | | | | | | | | | Now you need to call digest_alloc and when you finish to use it digest_free. We need this for upcomming aes encryption support and secure boot as we will need multiple instance of the same digest. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* digest: introduce digest_{init/update/final/length}Jean-Christophe PLAGNIOL-VILLARD2015-03-121-0/+21
| | | | | | | | This will allow to move from a one at a time digest to a multi-instance with too much impact on the code using it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* parameter: include header for ERR_PTR and errnoLucas Stach2015-03-111-0/+1
| | | | | | | | | | | Commit 03b59bdb64e83e (paramter: The dev_add_param_*() return ERR_PTR(), change no-ops to return ERR_PTR(-ENOSYS) instead of NULL) started using ERR_PTR and errnos without including the relevant header. This fixes the build for a lot of configurations. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* paramter: The dev_add_param_*() return ERR_PTR(), change no-ops to return ↵Marc Kleine-Budde2015-03-101-9/+9
| | | | | | | ERR_PTR(-ENOSYS) instead of NULL Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2015-03-091-0/+2
|\
| * bbu: include necessary headersLucas Stach2015-03-041-0/+2
| | | | | | | | | | | | | | Fixes compile errors due to undefined symbols. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/streaming-dma'Sascha Hauer2015-03-093-0/+20
|\ \ | | | | | | | | | | | | Conflicts: drivers/mci/dw_mmc.c
| * | ARM: move DMA alloc functions to dma.hLucas Stach2015-03-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This better separates the DMA from the MMU functionality. Also move all drivers that only depends on asm/mmu.h for the alloc functions over to the common header. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | dma: add streaming DMA opsLucas Stach2015-03-062-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | This will allow us to implement cache maintenance in a platform agnostic way. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | usb: gadget: include common.h in headerLucas Stach2015-03-061-0/+1
| |/ | | | | | | | | | | | | | | It is needed for container_of() and this header falls over if we change the include order. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rockchip'Sascha Hauer2015-03-095-0/+43
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/Kconfig
| * | ARM: Rockchip: Update clk driver from Linux kernel for use with newer DTSAndrey Panov2015-03-051-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: Add helper defines to barebox-wrapper.h for easier porting of drivers ↵Andrey Panov2015-03-051-0/+6
| | | | | | | | | | | | | | | | | | | | | from Linux kernel Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: clk-divider: Respect CLK_DIVIDER_POWER_OF_TWO flagAndrey Panov2015-03-051-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: clk-divider: Introduce clk_divider_alloc() and *_free() routinesAndrey Panov2015-03-051-0/+3
| | | | | | | | | | | | | | | Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: clk-divider: Respect CLK_DIVIDER_HIWORD_MASK flagAndrey Panov2015-03-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | It is required for Rockchip SoCs where clock settings registers have write-enable mask in high word. Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: clk-mux: Respect CLK_MUX_HIWORD_MASK flagAndrey Panov2015-03-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | It is required for Rockchip SoCs where clock settings registers have write-enable mask in high word. Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: Add fractional divider clock support from Linux kernelAndrey Panov2015-03-051-0/+9
| | | | | | | | | | | | | | | Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | CLK: Add support for composite clock from Linux kernelAndrey Panov2015-03-051-0/+6
| | | | | | | | | | | | | | | Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | lib: Add gcd() functionAndrey Panov2015-03-052-0/+13
| |/ | | | | | | | | | | | | It calculates greatest common divisor. Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2015-03-091-0/+37
|\ \
| * | ARM: Allow to mask data abortsSascha Hauer2015-02-271-0/+37
| |/ | | | | | | | | | | | | | | | | | | Sometimes it's useful to test if a memory operation works or aborts. This adds data_abort_mask() to ignore data aborts and data_abort_unmask() to enable them again. This is used in the next step for the 'md' command so that illegal addresses just show 'xxxxxxxx' instead of crashing the system. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/fs'Sascha Hauer2015-03-091-1/+1
|\ \
| * | fs: rename inode member of struct filep to privSascha Hauer2015-03-091-1/+1
| |/ | | | | | | | | | | | | Because that's what it is. 'inode' will become confusing once we support real inodes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/sandbox-of'Sascha Hauer2015-03-063-9/+25
|\ \
| * | of: add no-op functions for of_find_node_by_alias() and ↵Marc Kleine-Budde2015-03-031-4/+16
| | | | | | | | | | | | | | | | | | | | | of_find_node_by_path_or_alias() Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: add no-op function for of_register_fixup()Marc Kleine-Budde2015-03-031-1/+7
| | | | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | fs: make "offset" parameter of erase() and protect() 64 bit safeMarc Kleine-Budde2015-03-031-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers: remove unused function dev_protect()Marc Kleine-Budde2015-03-031-2/+0
| |/ | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd-partitions'Sascha Hauer2015-03-064-2/+26
|\ \
| * | mtd: fixup device tree partitionsSascha Hauer2015-02-121-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | cmdlinepart: add function to parse a cmdline partition stringSascha Hauer2015-02-121-0/+3
| | | | | | | | | | | | | | | | | | | | | This adds a function to parse a full cmdline partition string. The addpart command is switched to use this function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | cmdlinepart: make argument types saferSascha Hauer2015-02-121-3/+3
| | | | | | | | | | | | | | | | | | | | | The return size should be loff_t to support partitions bigger than 4G. Also use const for the devname and endp. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | move cmdline partition parsing code to separate fileSascha Hauer2015-02-121-0/+11
| | | | | | | | | | | | | | | | | | | | | So it's no longer local to the addpart/delpart code and can be used from other code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: nand: remove automatically created bb devicesSascha Hauer2015-02-121-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | the bb devices which are created in add_mtd_device() must be removed in del_mtd_device(). Also remove deletion of the bb devices in the mtdparts-add environment file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: Add partitions to listSascha Hauer2015-02-121-0/+3
| | | | | | | | | | | | | | | | | | | | | So that we can iterate over the existing partitions from the master mtd device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: Add for_each_child_of_node_safeSascha Hauer2015-02-121-0/+2
| |/ | | | | | | | | | | Needed for iterating over child nodes and deleting the children. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / reset_source: Add external resetWadim Egorov2015-03-021-0/+1
|/ | | | | | | Some SoCs have special device pins for external reset signals. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/raspberry-pi'Sascha Hauer2015-02-042-0/+12
|\
| * regulator: allow to use it with non DT deviceJean-Christophe PLAGNIOL-VILLARD2015-02-041-0/+10
| | | | | | | | | | | | | | | | | | this will use the device name as regulator name with the same Algo as clkdev for lookup Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * driver: add postcore_platform_driverJean-Christophe PLAGNIOL-VILLARD2015-02-041-0/+2
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/pxa'Sascha Hauer2015-02-042-0/+83
|\ \
| * | net: smc1111: extend the driver for 91c94 and 91c96 supportRobert Jarzmik2015-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the smcs family chips 91c94, 91c96, 91c100, 91c111 share almost the same behavior and register sets. The noticeable exceptions are coped with in this patch, ie : - 91c94 and 91c96 only have an internal 10 Mbps phy The registers used for phy discovery on later chips will corrupt the 91c96 state. - 91c94 and 91c96 have a control and config register quite different from their 91c1xx conterparts A platform data user defined couple of registers is introduced. If these values are 0, 91c1xx legacy behavior is assumed. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: smc1111: add 16 bits accessors, allow address shiftRobert Jarzmik2015-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Smc network IPs can be wired up in different funny ways. For example the lubbock pxa25x development platform wires all address lines shifted by 2, ie. bus A2 is smc91c96 A0, bus A3 is smc91c96 A1 etc ... In order to cope with the different possible combination, add a shift parameter for addresses. By default, the old behaviour using the 32 bit accesses is kept. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: nand: add mrvl-nand driverRobert Jarzmik2015-01-191-0/+79
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The driver is taken from the Linux kernel, with the following changes : - all DMA removed - all asynchronous handling removed, including the interrupt handler, and the asynchronous state handling - pxa armada support removed Most the kernel structure was kept, to ease up future fixes integration from the kernel driver. The driver is tested on a pxa3xx system development board (aka. zylonite), and reading, writing, erasing, and bad block management were tested. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2015-02-043-6/+3
|\ \
| * | usb: abolish wait_ms() functionMasahiro Yamada2015-02-021-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | This function is only used in drivers/usb/*. It is equivalent to mdelay(). Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | debug_ll: change the argument type of putc_ll()Masahiro Yamada2015-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the implementations of PUTC_LL() takes "char" (some take "int"), not "unsigned char". Moreover, puts_ll() takes an argument with "const char *" type. Let's drop "unsigned" from the prototype of putc_ll(). Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | console: allow to specify the device idJean-Christophe PLAGNIOL-VILLARD2015-01-131-0/+1
| |/ | | | | | | | | | | | | so we can use dynamic number id with specific devname Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/minmax'Sascha Hauer2015-02-044-121/+155
|\ \