summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* dts: update to v4.17-rc1Sascha Hauer2018-05-081200-21895/+45948
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: arm32: fix realocate_to_curr_addrAndreas Schmidt2018-04-251-0/+1
| | | | | | | | | | | After add aarch64 support (commit 868df08038a91d674a0c50b0c0a2f70dbc445510) to realocation, MLO on beaglebone black do not boot any more. The issue is, that addition of offset in one if-case was not done. This patch fix this. Signed-off-by: Andreas Schmidt <mail@schmidt-andreas.de> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: omap: set hwdev before call watchdog_registerAndreas Schmidt2018-04-251-0/+1
| | | | | | | | | Since watchdog_register access to hwdev (see commit 65a644388e845bde01215bf378d4df2a6a260a6a) hwdev has to be initiate/set before calling watchdog_register. Signed-off-by: Andreas Schmidt <mail@schmidt-andreas.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: core: check hwdev before use itAndreas Schmidt2018-04-251-2/+4
| | | | | | | | Avoid null pointer access, if hwdev was not set before call watchdog_register. Signed-off-by: Andreas Schmidt <mail@schmidt-andreas.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: i2c_write: enable reg == 0 tooAntony Pavlov2018-04-171-1/+1
| | | | | | | | | | | | | This commit fixes the mistake introduced in the commit 34fadb685905 ('commands: i2c_write: enable raw write to address'). The intended behaviour for i2c_write command is "use raw i2c write only if reg address is not defined". Before the commit 34fadb685905 reg address == 0 was acceptable. After the commit 34fadb685905 reg address == 0 became unacceptable ("undefined") and will lead to raw i2c write. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gitignore: Add *.pblx filesAndrey Smirnov2018-04-161-0/+1
| | | | | | | | | | | | | Looks like *.pblx was accidentally dropped from ignored files list and now my "git status" is clobbered by every *.pblx image that is being built (that's quite a lot for imx_v7_defconfig). Re-add original rule to prevent that. Fixes eed8a41c5 ("gitignore: ignore pblx.simximg files") Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: da9063: Fix compilationSascha Hauer2018-04-121-1/+1
| | | | | | Fixes: 1ef7cd07a3 watchdog: rename dev to hwdev Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53 TX53: remove duplicate _imx53Sascha Hauer2018-04-111-3/+3
| | | | | | | | | The pblx-y variables for the TX53 have _imx53 twice in their names. With this the names do not match the names in the FILE_* variables. This results in the make system removing the pblx files as intermediate files. Fix the names. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boards: samx6: Adjust to latest get_runtime_offset()Andrey Smirnov2018-04-111-1/+1
| | | | | | | | | Latest version of get_runtime_offset() returns positive offset that needs to be added to rather than substracted from original pointer. Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX53/TX53: Adjust to latest get_runtime_offset()Andrey Smirnov2018-04-111-1/+1
| | | | | | | | | Latest version of get_runtime_offset() returns positive offset that needs to be added to rather than substracted from original pointer. Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* doc: bcm283x: update documentation for Raspberry PiRoland Hieber2018-04-101-8/+26
| | | | | | | | | The old way does not seem to work for RPi 3, as the UART pins are mapped differently and the NOOBS bootcode does not seem to read a config.txt. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mmu64: Add commmentSascha Hauer2018-04-091-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/watchdog'Sascha Hauer2018-04-0610-37/+156
|\
| * watchdog: add watchdog pollerOleksij Rempel2018-03-263-6/+81
| | | | | | | | | | | | | | | | | | | | In some cases it is practical to supervise as much as possible of the barebox execution with a watchdog (or multiple watchdogs). This patch provides an async poller for watchdog core framework which can be enabled by the user and stores this configuration to nv. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: provide timeout_cur valueOleksij Rempel2018-03-232-0/+19
| | | | | | | | | | | | | | | | | | | | timeout_cur will be used for watchdog poller. Provided values should be good enough for most users and still can be changed for separate projects and fit to needed requirements. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: set some reasonable timeout_max value if no other is availableOleksij Rempel2018-03-231-1/+7
| | | | | | | | | | | | | | | | Some drivers do not provide timeout_max value. Using some value is probably better then setting timeout_max to 0. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: move max timeout test in to wd_coreOleksij Rempel2018-03-236-23/+17
| | | | | | | | | | | | | | this also will be needed for watchdog poller as well Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: register watchdog virtual device with short name wdogOleksij Rempel2018-03-232-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | the watchdog hwdev is usually named with devicetree schema which is not practical for CLI. On device registration "wdog" will be extended with some index number extracted from devicetree (if awailable) or automatically assigned first available number. End result will be "wdog0" .. etc. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: rename dev to hwdevSascha Hauer2018-03-229-11/+11
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd'Sascha Hauer2018-04-063-0/+6
|\ \
| * | mtd: spi-nor: add manufacturer IDs for ISSI and Winbondmichael grassmann2018-03-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes new NOR flash IDs to support flashes from the manufacturers ISSI and Winbond - ISSI IS25LP128-JBLA3 and IS25LP128-JBLE - Winbond W25Q128JVSIM Signed-off-by: michael grassmann <m.grassmann@phytec.de> Signed-off-by: Christian Hemp <c.hemp@phytec.de>
| * | mtd: nand: Add Winbond manufacturer IDStefan Riedmueller2018-03-222-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add Winbond 0xef manufacturer ID for NAND flashes to support Winbond as an additional manufacturer. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Christian Hemp <c.hemp@phytec.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2018-04-0613-44/+178
|\ \ \
| * | | ARM: socfpga: remove nonexistent Kconfig dependencySascha Hauer2018-04-061-5/+0
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | aiodev: Constify 'unit' in 'struct aiodev'Andrey Smirnov2018-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The way it is currently used, there's no reason for 'uint' field to be mutable, so constify it in order to allow 'aiodev' drivers to pass sting literals in that field. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | lib: Port CRC-CCITT functions from Linux kernelAndrey Smirnov2018-04-034-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port CRC-CCITT implemenation in order to support porting MFD driver for RAVE SP. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: Pass barebox version to kernelSascha Hauer2018-03-223-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the barebox version to Linux in case somebody is interested in it under Linux. We use put the version under /chosen/barebox-version and it can be read under Linux in /sys/firmware/devicetree/base/chosen/barebox-version. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: demote "no ranges" message to debug levelLucas Stach2018-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are valid cases where there is no way to translate a OF node to a MMIO address via ranges, so do the same as the Linux kernel and don't print an error message in that case, but make it available as a debug message. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: AM335x: Fix invalid register accessSascha Hauer2018-03-192-32/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several DDR3 phy registers are written with the pattern x<<30 | x<<20 | x<<10 | x. The x<<30 doesn't fit into 32bit which causes a compiler warning. Looking at the reference manual only the lower 10bit of the registers have any meaning, so drop the other bogus values. This affects the registers: AM33XX_DATA0_RD_DQS_SLAVE_RATIO_0 AM33XX_DATA0_WR_DQS_SLAVE_RATIO_0 AM33XX_DATA0_WR_DQS_SLAVE_RATIO_1 AM33XX_DATA0_WRLVL_INIT_RATIO_0 AM33XX_DATA0_GATELVL_INIT_RATIO_0 AM33XX_DATA0_GATELVL_INIT_RATIO_1 AM33XX_DATA0_FIFO_WE_SLAVE_RATIO_0 AM33XX_DATA0_WR_DATA_SLAVE_RATIO_0 (AM33XX_DATA0_WR_DQS_SLAVE_RATIO_1 and AM33XX_DATA0_GATELVL_INIT_RATIO_1 do not even exist according to the reference manual, but that's another story.) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | video: tc358767: register aux i2c bus after validating linkAndrey Gusakov2018-03-121-4/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Register AUX i2c adapter only if AUX link is functional. This should avoid possible hung during tc358767 probe when no display connected. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2018-04-0643-353/+1572
|\ \ \
| * | | dma: apbh: Enable clock as a part of probingAndrey Smirnov2018-04-031-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable clock as a part of probing in order to avoid problems on SoCs that do not have this block ungated out of reset (e.g. i.MX7). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clk: Forward declare struct of_device_id in linux/clk.hAndrey Smirnov2018-04-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forward declare struct of_device_id in linux/clk.h in order to avoid warnings like the following: warning: 'struct of_device_id' declared inside parameter list will not be visible outside of this definition or declaration int of_clk_init(struct device_node *root, const struct of_device_id *matches); ^~~~~~~~~~~~ Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clk: i.MX7: Port NAND clock setup code from LinuxAndrey Smirnov2018-04-032-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port Linux kernel commit 22039d150f716e4e ("clk: imx7d: create clocks behind rawnand clock gate") in order to correctly initialize clocks necessary for APBH DMA block to be functional on i.MX7 Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | video: tc358767: set num_modes=0 if no valid mode foundAndrey Gusakov2018-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit f986661 "video: ipu: register framebuffer, even when no modes are found" value returned from VPL_GET_VIDEOMODES ioctl is ignored. So set valid num_modes in error case to avoid crash in register_framebuffer. Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i.MX53/TX53: add new samsung based xx30 variantMichael Grzeschik2018-03-263-0/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Karo is deploying their latest tx53 modules with samsung instead of nanya ram. Unfortunatly the still keep the old revision for that modules. We add this modules as an extra xx30 samsung variant. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i.MX/DCD compiler and interpreter: logic is differentJuergen Borleis2018-03-2617-120/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reading the manual more carefully discovers a different logic for the DCD 'check' command. They use the term "until". In order to get the manual and the software in sync, this change switches to the term "until" as well. Changing must happen at compiler and interpreter level to make it work. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i.MX53/TX53: rework to dts based bootMichael Grzeschik2018-03-269-224/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since nobody likes to use platformcode based machines any more, we also switch this one to use dts based booting. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i.MX53/TX53: cfg revxx30: don't disable usb clks, so imx-usb-loader worksMichael Grzeschik2018-03-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current configuration the usb related clocks get disabled immediately which breaks the imx-usb-loader boot. We fix that by leaving them enabled. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | boards: samx6: add initial support for kontron samx6iMichael Grzeschik2018-03-2114-0/+1043
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: Add lowlevel gpio input functionsMichael Grzeschik2018-03-211-5/+41
| | |/ | |/| | | | | | | | | | | | | | | | | | | This adds the function to set direction input and read the values in the header file for setting i.MX gpios early. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/fs'Sascha Hauer2018-04-0642-1158/+142
|\ \ \
| * | | loadenv: Do not depend on normalise_path()Sascha Hauer2018-04-061-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | normalise_path() will go away, so do without it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ls: Do not depend on normalise_path()Sascha Hauer2018-04-061-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When we want to show a directory we want to show the path ls is passed, not the normalised one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | glob: do not unnecessarily opendir() a directorySascha Hauer2018-04-061-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | opendir() can trigger automounts, so do not use it when the pattern we examine doesn't have any wildcards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: Fix finding correct directory for mkdir/rmdirSascha Hauer2018-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When there are links in the path mkdir/rmdir are called with then canonicalize_path is needed which resolves the links. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: Cleanup whitespace damageSascha Hauer2018-04-061-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | fs.c has some whitespaces where there should be tabs. Fix it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: Move mem_write/mem_read to devfs-coreSascha Hauer2018-04-062-66/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fs.c is already heavily filled with code. Move mem_write/mem_read to devfs-core where it fits better. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: Add super_operationsSascha Hauer2018-04-063-39/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a struct super_operations we can use later when we get a fs implementation closer to Linux. Only add the functions we'll likely need though. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ubifs: remove dead codeSascha Hauer2018-04-061-475/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove code that was added to UBIFS for U-Boot but that is not needed for barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>