summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/omap'Sascha Hauer2013-09-051-18/+43
|\ | | | | | | | | Conflicts: arch/arm/boards/pcm051/env/config
| * rework debug_llSascha Hauer2013-09-051-18/+43
| | | | | | | | | | | | | | | | | | | | Convert to static inline functions and use lower case letters for function names. Also, include mach/debug_ll.h when an architecture provides support for debug_ll, not only when it's actually enabled. This allows architecures to put some UART initialization code into mach/debug_ll.h which is compiled out when debug_ll is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/boardinfo'Sascha Hauer2013-09-054-5/+8
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: arch/mips/boards/qemu-malta/init.c commands/bootm.c drivers/of/base.c
| * | Make hostname available to C CodeSascha Hauer2013-08-161-0/+2
| | | | | | | | | | | | | | | | | | | | | The boards often have a sane default for the hostname. Provide a C function for setting/getting it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | introduce barebox_set_modelSascha Hauer2013-08-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Instead of calling of_get_model() in barebox_get_model() add a barebox_set_model() and use it to set the boardinfo once it's available from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | remove remaining references of CONFIG_BOARDINFOSascha Hauer2013-08-163-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this all code uses barebox_get_model() and no longer a compile time generated string. Also this renames barebox_boardinfo() to barebox_get_model() since we are going to add the corresponding _set_ function and 'model' corresponds to the devicetree notion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | globalvar: Allow to set initial valueSascha Hauer2013-08-161-2/+2
| | | | | | | | | | | | | | | | | | | | | Calling globalvar_add_simple() and setting a value is more than common. Add a parameter for the initial value. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2013-09-051-0/+4
|\ \ \
| * | | net/phy: support of mmd register read and writeJan Weitzel2013-08-311-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add function for indirect access of the mmd registers, based on linux. phy_read_mmd_indirect phy_write_mmd_indirect Also clean some private mmd functions Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/of'Sascha Hauer2013-09-051-0/+16
|\ \ \
| * | | of: base: import of_find_node_by_typeRenaud Barbier2013-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import of_find_node_by_type from Linux drivers/of/base.c - commit id d8dfad3. This function retrieves a node pointer based on the "device_type" property of the node. This is used by device tree update functions in PPC support. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: introduce some new helpersSascha Hauer2013-08-141-0/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of_get_tree_max_phandle - get the maximum phandle of a tree. Needed for creating new phandles without conflicts. of_node_create_phandle - create a phandle for a node which doesn't have one. of_find_node_by_alias - find a node by alias name of_find_node_by_path_or_alias - find a node by full path or alias name of_find_root_node - find the root node for a given device node Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/ubifs'Sascha Hauer2013-09-055-0/+46
|\ \ \ | |_|/ |/| |
| * | Add deflate_decompress functionSascha Hauer2013-08-071-0/+4
| | | | | | | | | | | | | | | | | | Needed to implement decompressors for gzip without headers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | extend barebox wrapper headerSascha Hauer2013-08-071-0/+32
| | | | | | | | | | | | | | | | | | | | | Add empty definitions for mutexes, spinlocks and other stuff from the kernel to make it easier to reuse code from the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | move print_hex_dump function to include/common.hSascha Hauer2013-08-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | print_hex_dump is a standard kernel function, so move it outside the ubi header files to make it usable for other code derived from the kernel aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: ubi: Add support for opening a volume by cdevSascha Hauer2013-08-071-0/+1
| | | | | | | | | | | | | | | | | | Needed by ubifs support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | filetype: Add ubifs detectionSascha Hauer2013-08-071-0/+1
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / globalvar: add missing includeSascha Hauer2013-08-141-0/+2
|/ | | | | | include/globalvar.h needs struct param_d, so include <param.h> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/serial'Sascha Hauer2013-08-052-5/+38
|\
| * serial: ns16550: remove f_caps from platform_dataSascha Hauer2013-07-231-4/+0
| | | | | | | | | | | | | | So far no user had the need to set the flags, so just remove them from platform data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * clk: provide static inline wrappersSascha Hauer2013-07-231-1/+38
| | | | | | | | | | | | | | So that drivers can use clk_* functions without having to ifdef them away. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/of'Sascha Hauer2013-08-052-2/+17
|\ \ | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/freescale-mx53-loco/board.c drivers/of/Makefile
| * | Add configurability via devicetreeSascha Hauer2013-07-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the possibility to configure the place for the environment from the devicetree and to partition devices from the devicetree. Configuration has the general form of devices with a regular compatible property. This allows to later add additional drivers or drivers with different behaviour (for example to add support for redundant environment). The configuration is all in the /chosen/barebox/ hierarchy of the devicetree. This separates the configuration from the hardware description. Also it makes it possible to store the configuration in a completely separate devicetree (or devicetree overlay). For the same reason all configuration is done using nodepathes rather than phandles. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: Add convenience functions to en/disable devicenodesSascha Hauer2013-07-181-0/+5
| | | | | | | | | | | | | | | | | | | | | These functions allow to manipulate the "status" property of devicenodes effectively enabling/disabling devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | cdev: add device_find_partitionSascha Hauer2013-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | | device_find_partition allows to find a partition of a device with a particular name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | cdev: allow to open a struct cdevSascha Hauer2013-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | | cdev_open() opens a cdev by name. This introduces cdev_do_open which allows to open a cdev when the cdev is already found by other means. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | cdev: introduce partition namesSascha Hauer2013-07-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | currently most partition cdevs have the name <devname>.<partname> This makes it hard to find a partition by <partname>. This introduces a partname field in struct cdev so that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: partitions: factor out function to parse a single partitionSascha Hauer2013-07-151-0/+1
| | | | | | | | | | | | | | | | | | To make it usable for other code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: export of_default_bus_match_tableSascha Hauer2013-07-151-0/+2
| | | | | | | | | | | | | | | | | | For code which wants to call of_platform_populate. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | devfs: let devfs_add_partition return the new partitionSascha Hauer2013-07-151-1/+1
| | | | | | | | | | | | | | | | | | Useful for unregistering later or for adding addional flags. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mtd'Sascha Hauer2013-08-0518-454/+1372
|\ \ \
| * | | UBI: reimport UBI from Linux v3.10Sascha Hauer2013-07-257-100/+988
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fresh UBI import from Linux v3.10 This is done mainly to get fastmap support. This was tested with the i.MX nand driver, the MXS nand driver and on CFI NOR flash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | UBI: remove old ubi supportSascha Hauer2013-07-242-557/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To update to the latest UBI support from the Kernel first remove the old UBI support. Without it the update will be even less reviewable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memory_display: Change address pointer to type const void *Sascha Hauer2013-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | No need to force a width of the pointer, so use void *. Also it's not modified in memory_display, so also add a const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | dma: apbh: Turn into a driverSascha Hauer2013-07-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This converts the apbh driver into a real driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | dma: apbh: remove CONFIG_ARCH_DMA_PIO_WORDSSascha Hauer2013-07-231-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This define allows to overwrite DMA_PIO_WORDS with an architecture specific value. Since this is unused and not clean anyway remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | dma: apbh-dma: move header file to common locationSascha Hauer2013-07-231-0/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As the apbh dma engine is also found on i.MX6 move the header file out of MXS specific directories. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: introduce stmp device supportSascha Hauer2013-07-231-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MXS specific devices have some common infrastructure in the kernel known as STMP devices. We have the same in barebox, but with a mxs_ prefix instead of a stmp_ prefix. As some STMP devices are also found on i.MX6 move the common infrastructure out of MXS specific files and use the stmp_ prefix. This is done in preparation for i.MX6 NAND support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: nand: update to v3.11-rc1Sascha Hauer2013-07-236-278/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates the NAND stuff to Linux-3.11-rc1. It is synchronized as best as we can get: - locks removed - The splitting in different files we had to better support different features has been dropped. Instead this is now done mostly with the use of __maybe_unused Some barebox adjustments are forward ported, like: - Allow partial page writes - Optionally allow to erase bad blocks - check for all_ff before writing a page Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: introduce mtd_read_oob and mtd_write_oobSascha Hauer2013-07-221-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Directly copied from the Kernel as of 3.11-rc1 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: introduce ecc strengthSascha Hauer2013-07-222-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces the ecc stength fields in the structures and fills them in, but leaves them unused right now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | string: introduce memchr_invSascha Hauer2013-07-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Directly taken from Linux Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: sync bbm.h with Linux KernelSascha Hauer2013-07-221-22/+61
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: rename MTD_OOB_* to MTD_OPS_*Sascha Hauer2013-07-222-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | To sync with the Linux kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: add mtd of helpersSascha Hauer2013-07-161-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Directly taken from the kernel Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2013-08-051-1/+1
|\ \ \ \
| * | | | memory_display: Change address pointer to type const void *Sascha Hauer2013-07-221-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | No need to force a width of the pointer, so use void *. Also it's not modified in memory_display, so also add a const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mfd'Sascha Hauer2013-08-051-109/+0
|\ \ \ \
| * | | | mfd: mc13xxx: Add support for MC34708Alexander Shiyan2013-07-151-109/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | This patch moves support for MC34708 PMIC into mc13xxx driver. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>