summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/randconfig-1'Sascha Hauer2014-12-083-13/+13
|\
| * gpio: move gpio_is_valid to include/gpio.hSascha Hauer2014-11-282-11/+11
| | | | | | | | | | | | | | | | No architectue implements its own gpio_is_valid() function, so move the only existing implementation to include/gpio.h where it's available for all users. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * param: make string arguments to dev_add_param_fixed constSascha Hauer2014-11-281-2/+2
| | | | | | | | | | | | | | dev_add_param_fixed does not modify the strings, so make them const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/persistent-vars'Sascha Hauer2014-12-082-0/+15
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/efika-mx-smartbook/defaultenv-efikasb/config
| * | globalvar: Add support for printing all global variablesSascha Hauer2014-11-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This could previously only be done with 'devinfo global'. While this is still possible this adds a more direct access via the globalvar command. This variant also adds a '*' in front of the variable if the corresponding non volatile variable exists. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | libfile: Add copy_recursiveSascha Hauer2014-11-061-0/+2
| | | | | | | | | | | | | | | | | | To recursively copy a directory tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Add support for non volatile variablesSascha Hauer2014-11-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds (back) support for non volatile variables. Non volatile variables are variables which are stored in the environment over reboot. They are used in the same way as the global variables, but with a 'nv' command and device. The variables are stored under /env/nv/, one variable per file. Adding a nv variable automatically adds a global variable with the same name. Changing a nv variable also changes the same global variable, but not the other way round. This allows for example to configure the username as: nv user=sha; saveenv Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-12-082-4/+4
|\ \ \
| * | | fdt: of_unflatten_dtb can work on const dataJan Luebbe2014-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | stringlist: the string argument should be constJan Luebbe2014-12-041-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | stringlist: string_list_contains can use a const stringJan Luebbe2014-11-201-1/+1
| |/ / | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/marvell'Sascha Hauer2014-12-081-0/+2
|\ \ \ | |_|/ |/| |
| * | net: phy: Support Marvell 88EE1543 PHYEzequiel Garcia2014-11-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for Marvell's 88E1543 PHY chip. This chip is almost identical to the 88EE1545, except the 88E1545 supports QSGMII and the 88EE1543 supports SGMII. Therefore, the same configuration function is used for both PHYs. For now, the only initialization provided for the 88EE1543 is the LED setup. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Support Marvell 88EE1545 PHYEzequiel Garcia2014-11-111-0/+1
| |/ | | | | | | | | | | | | | | This commit adds support for Marvell's 88E1545 PHY chip. In particular, this allows to support QSGMII interfaces. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | envfs: include errno.hLucas Stach2014-11-261-0/+1
| | | | | | | | | | | | | | Fixes: include/envfs.h:124:10: error: 'ENOSYS' undeclared Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | lib: decompress_xz: fix function header to match prototypeLucas Stach2014-11-241-4/+4
|/ | | | | | | | Fixes: lib/uncompress.c:124:10: warning: assignment from incompatible pointer type Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/xz'Sascha Hauer2014-11-052-0/+272
|\
| * Add xz decompression supportSascha Hauer2014-11-041-0/+271
| | | | | | | | | | | | | | | | This adds xz decompression support from the kernel. Both compressing the barebox binary with xz and decompressing xz files on the commandline is supported. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * filetype: Add XZ filetype supportSascha Hauer2014-10-241-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/tegra'Sascha Hauer2014-11-055-0/+335
|\ \
| * | reset_source: add thermal resetLucas Stach2014-11-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Some SoCs are able to detect if they got reset in response to an overtemperature event. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | add generic PHY frameworkLucas Stach2014-11-041-0/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | This brings in the generix PHY framework from Linux. I tried to strip it down as much as possible while keeping it useful. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: import pci range parser from linuxLucas Stach2014-10-081-0/+57
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pci: track parent<->child relationshipLucas Stach2014-10-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | So that PCI devices hang down from bridges and root bridges down from the PCI host controller when calling devinfo. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pci: setup bridges and traverse buses behind themLucas Stach2014-10-081-0/+28
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pci: properly populate prefetchable BARsLucas Stach2014-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some host controllers provide a prefetchable memory area and devices will prefer this for some of their BARs. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pci: add resource enumLucas Stach2014-10-081-0/+6
| | | | | | | | | | | | | | | | | | | | | Makes things way clearer than juggling numbers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-11-053-5/+3
|\ \ \
| * | | common: fix mbr filetype detectionZahari Doychev2014-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes mbr is erroneously recocognised as FAT partion. Due to this the mbr partition parser is not being called and the partitions on the media are not detected. This patch should fix the problem. The checking is done as in the linux kernel. I have seen the problem using usb sticks. Although partitioning and formatting them under linux. The file system type field in the mbr remains there which causes the wrong detections as FAT32 type and not as mbr. Signed-off-by: Zahari Doychev <zahari.doychev@linux.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: ns16550: Remove unused fields from NS16550_plat structureAlexander Shiyan2014-11-031-3/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | param: let dev_add_param return the newly created paramSascha Hauer2014-10-081-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | dev_add_param creates a new parameter so it makes more sense to return it than to return an error code. Since the return value is hardly ever checked this is only a small patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/fs'Sascha Hauer2014-11-052-2/+5
|\ \ \
| * | | libfile: add compare_file functionSascha Hauer2014-10-091-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: implement fstatSascha Hauer2014-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fstat is useful to get information about an already opened file. Add it to barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: Store the path in struct filepSascha Hauer2014-10-081-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: store pointer to fsdev instead of dev in struct filepSascha Hauer2014-10-081-2/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | The struct device_d * in struct filep is never of interest, instead it is always converted to a struct fs_device_d *, so simplify the code by storing the struct fs_device_d * directly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/am335x'Sascha Hauer2014-11-051-0/+14
|\ \ \ | |_|/ |/| |
| * | of: Add of_device_enable_and_register functionsTeresa Gámez2014-11-031-0/+14
| |/ | | | | | | | | | | | | | | | | | | | | Function to enable and register a disabled device. The devices can be registered using the device node with of_device_enable_and_register() or with the device node name/path by using the of_device_enable_and_register_by_name() function. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / include/environment.h: Add missing includeSascha Hauer2014-10-221-0/+1
|/ | | | | | include/environment.h uses error codes, so it needs errno.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: Fix CONSOLE_NONE supportSascha Hauer2014-10-081-0/+12
| | | | | | | | Without console support we need a static inline version of pr_print and dev_printf, otherwise we get link errors. Reported-by: Kevin Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/of'Sascha Hauer2014-10-021-0/+23
|\
| * of: Added of_set_property_to_child_phandleTeresa Gámez2014-10-011-0/+1
| | | | | | | | | | | | | | | | Set a property to a phandle of a child node. This may be used for selections like display-timings. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: base: Add of_parse_phandle_fromTeresa Gámez2014-10-011-0/+11
| | | | | | | | | | | | | | Added of_parse_phandle_from() to be able to use external root nodes. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: base: Add of_find_node_by_phandle_fromTeresa Gámez2014-10-011-0/+8
| | | | | | | | | | | | | | | | Added of_find_node_by_phandle_from() to find nodes by phandle with a given root node. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: base: Add for_each_node_by_name_fromTeresa Gámez2014-10-011-0/+3
| | | | | | | | | | | | | | | | Added for_each_node_by_name_from() to be able to pass external root node. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net-phy'Sascha Hauer2014-10-021-0/+4
|\ \
| * | net: phy: introduce phy_aneg_doneSascha Hauer2014-09-171-0/+4
| |/ | | | | | | | | | | | | | | | | phy_wait_aneg_done() is directly called by the network code, so it should not read phy registers directly. Introduce phy_aneg_done to give phy drivers the chance to do something different to poll for autonegotiation completion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/musb'Sascha Hauer2014-10-025-9/+380
|\ \
| * | USB: MUSB: Add barebox specific changesSascha Hauer2014-09-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the MUSB support from the original Kernel state to be usable with barebox. Tested on a custom board and the Beaglebone Black. The host port on the Beaglebone works, the OTG port works in device mode, but not yet in host mode. Based on the initial MUSB port from Rolf Evers Fischer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB: Add MUSB driver from LinuxSascha Hauer2014-09-261-0/+152
| | | | | | | | | | | | | | | | | | | | | This adds the necessary files from the MUSB driver directly from Linux 3.17-rc5. No changes to the original files have been made so far. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>