summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* ARM i.MX6Q: Fix IOMUXC GPR1 defines for ENET_CLK_SEL and IPU1/2_MUXPhilipp Zabel2014-03-191-8/+8
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ubi'Sascha Hauer2014-03-071-1/+1
|\ | | | | | | | | Conflicts: drivers/mtd/ubi/cdev.c
| * param: dev_add_param_fixed: constify argumentSascha Hauer2014-02-281-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/pwm'Sascha Hauer2014-03-072-0/+10
|\ \
| * | led: Add default-on triggerSascha Hauer2014-03-031-0/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | led: move led_of_parse_trigger to coreSascha Hauer2014-03-031-0/+2
| | | | | | | | | | | | | | | | | | So that other LED drivers can use it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | PWM: Implement devicetree supportSascha Hauer2014-02-281-0/+2
| | | | | | | | | | | | | | | | | | This implements of_pwm_request() for PWM client drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | PWM: Add functions for getting/setting period/duty cycleSascha Hauer2014-02-281-0/+5
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/partitionhelper'Sascha Hauer2014-03-072-6/+39
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: fs/devfs-core.c
| * | | devfs: partitioning: add new helper devfs_create_partitionsUwe Kleine-König2014-02-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compared to devfs_add_partition which adds a single partition devfs_create_partitions creates several partitions at once. One nice benefit is that this simplifies appending partitions because the start of the latter partition doesn't need to be specified explicitly. Also dev_add_bb_dev() is called by the new helper if the bbname is specified for a partition. Note that adding partitions is also more flexible now (also via devfs_add_partition) because negative values for offset and size now have a proper meaning instead of creating broken partitions. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd/nand: constify filename parameterUwe Kleine-König2014-02-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The string pointed to isn't modified, so declare it as const. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | devfs_add_partition: make flags parameter unsignedUwe Kleine-König2014-02-281-4/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | The value is only used to assign to a (*struct cdev)->flags which is an unsigned int and it is passed as fourth parameter of mtd_add_partition which is an unsigned long. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/nfs'Sascha Hauer2014-03-074-9/+46
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: defaultenv/defaultenv-2-base/bin/ifup
| * | | net: Add ifup supportSascha Hauer2014-03-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The defaultenv-2 has ifup support as a shell script. This patch replaces it with a command which is more robust, can be called from C and now can also bring up all configured interfaces. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: constify eth_get_byname argumentSascha Hauer2014-03-071-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | run_command: remove unused flag parameterSascha Hauer2014-03-071-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mount: support filesystem options passed via -oUwe Kleine-König2014-02-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in the next commit to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: provide alternatives to {ntoh, hton}[sl] funtions with cleaner semanticsUwe Kleine-König2014-02-101-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ntohl always converts 32 bits even on archs where sizeof(long) == 8. "ntoh32" is a much more intuitive name here. Also the name of the 64 bit variant that is also added isn't questionable. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: new function net_read_uint64Uwe Kleine-König2014-02-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for nfs3 support as some types became bigger compared to nfs2. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: net_read_uint32: assert that only 32 bit are readUwe Kleine-König2014-02-101-4/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some architectures (e.g. alpha, amd64, arm64, ia64, s390x, mips64) sizeof(ulong) is 8 which made net_read_uint32 actually read too much and even returned the wrong value on big endian machines. (Note the second issue isn't that critical though, because the only architecture from the list above that uses big endian byte order is s390x ...) Also change the argument to void * because the pointer is not necessarily properly aligned. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mtd'Sascha Hauer2014-03-071-1/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/mtd/core.c net/eth.c
| * | | mtd: Simplify partitionsSascha Hauer2014-02-131-1/+4
| |/ / | | | | | | | | | | | | | | | | | | Embed the partition information in struct mtd_info. This makes the mtd partition code simpler. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/modalias'Sascha Hauer2014-03-071-1/+2
|\ \ \
| * | | i2c/spi: match of_modaliasesSascha Hauer2014-02-071-1/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | i2c/spi devices in the devicetree often come with a "vendor,device" comaptible string. These do not match in barebox, so add a device_match_of_modalias function which does exactly that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-03-071-0/+13
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: common/environment.c
| * | | Load PBL into SRAMDavid Vincent2014-02-091-0/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to load all the lowlevel init code, including the uncompressor, inside SRAM and not just the bare init part. This is useful when pbl is used as a first-stage bootloader but is loaded by an external firmware. Signed-off-by: David Vincent <freesilicon@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/marvell'Sascha Hauer2014-03-072-0/+75
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile
| * | | bus: mvebu: add mbus driverSebastian Hesselbarth2014-02-101-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This imports the Marvell mbus driver from Linux. The mbus is the main downstream bus found on all Marvell Orion SoCs. The driver deals with re-configurable address windows which are currently parsed from DT. Also enable the driver as default on all MVEBU SoCs. While at it, also reorder drivers/bus/{Kconfig,Makefile} alphabetically. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: add of_phy_device_connectSebastian Hesselbarth2014-02-101-0/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a of_phy_device_connect to allow DT enabled drivers to connect to a PHY device by using the PHY's DT node only. It currently assumes that each PHY node is a child of the corresponding mdio bus. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2014-03-071-0/+11
|\ \ \
| * | | ARM: mx53-qsrb: fix USBEric Bénard2014-02-101-0/+11
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | - configure the MC34708 properly so that USB can work (the sequence is taken from u-boot) - add the required defines to the mc13xxx include file Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/gpio-keys'Sascha Hauer2014-03-073-24/+27
|\ \ \
| * | | input: Add keycode to barebox key translation tableSascha Hauer2014-02-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devicetrees specify the keyboard codes for the gpio-keys driver, so add a table to translate them into something barebox can use. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | input: gpio-keys: separate internal data from platform_dataSascha Hauer2014-02-171-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not abuse platform data for internal driver data, instead use a separate struct for that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | input: Add BB_ prefix to KEY_ definesSascha Hauer2014-02-171-17/+17
| | |/ | |/| | | | | | | | | | | | | | | | Our KEY_ defines conflict with the standard Linux KEY_ defines, so add a BB_ prefix to them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/env'Sascha Hauer2014-03-073-3/+37
|\ \ \
| * | | usb: dfu: Add create flagSascha Hauer2014-02-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With the create flag DFU can upload to regular, previously non existing files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: dfu: Fix spelling of flag nameSascha Hauer2014-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | DFU_FLAG_SAVE should really be named DFU_FLAG_SAFE. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | defaultenv: Allow multiple defaultenvironment overlaysSascha Hauer2014-02-281-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can compile barebox for multiple boards at once, but currently they all share a single default environment. This patch adds a defaultenv_append() which boards can call to customize the default environment during runtime. Each board now generate default environment snippets using bbenv-y and add them during runtime with defaultenv_append() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | environment: Add function to load envfs from bufferSascha Hauer2014-02-201-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | environment: constify argumentsSascha Hauer2014-02-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The directory arguments to envfs_load and envfs_save can be const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | filetype: Add detection for barebox environmentSascha Hauer2014-02-201-0/+1
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / mtd: nand: disable subpage readsSascha Hauer2014-03-031-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | The default nand_read_subpage implementation returns -ENOSUPP, so we have to make sure that barebox never uses this implementation. By setting the NAND_SUBPAGE_READ flag to 0x0 we ensure NAND_HAS_SUBPAGE_READ() never returns true and also give the compiler a chance to optimize away some unused code. subpage reads are a rather exotic feature even in Linux. It is only used on largepage NANDs with soft ecc. Even if we have this case it needs non page aligned reads to actually profit from this feature. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Hattink, Tjalling [FINT] <T.Hattink@fugro.nl>
* / mci: Fix version handlingSascha Hauer2014-02-141-9/+9
|/ | | | | | | | | | | | Currently the version defines reflect the digits in the version number. MMC_VERSION_4_41 is defined as 0x441 and MMC_VERSION_4_5 is defined as 0x405. This results in MMC_VERSION_4_5 < MMC_VERSION_4_41 becoming true which was surely not intended. Fix this by redefining the versions as 0x<major><minor><micro>. This makes the string generation more complicated but makes versions comparable again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2014-02-033-0/+230
|\
| * dt-bindings: add Tegra CARLucas Stach2014-01-291-0/+158
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * dt-bindings: add Tegra GPIOLucas Stach2014-01-291-0/+50
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * dt-bindings: add ARM GICLucas Stach2014-01-292-0/+41
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/pxa'Sascha Hauer2014-02-031-2/+8
|\ \
| * | reset_source: add reset_source_getSascha Hauer2014-01-291-0/+6
| | | | | | | | | | | | | | | | | | To get reset_source from C code, not only from shell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>