summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* restart: replace reset_cpu with registered restart handlersSascha Hauer2015-08-273-30/+32
| | | | | | | | | | | | | | | | | | | | | | This replaces the reset_cpu() function which every SoC or board must provide with registered handlers. This makes it possible to have multiple reset functions for boards which have multiple ways to reset the machine. Also boards which have no way at all to reset the machine no longer have to provide a dummy reset_cpu() function. The problem this solves is that some machines have external PMICs or similar to reset the system which have to be preferred over the internal SoC reset, because the PMIC can reset not only the SoC but also the external devices. To pick the right way to reset a machine each handler has a priority. The default priority is 100 and all currently existing restart handlers are registered with this priority. of_get_restart_priority() allows to retrieve the priority from the device tree which makes it possible for boards to give certain restart handlers a higher priority in order to use this one instead of the default one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: imxwd: remove remove callbackSascha Hauer2015-08-261-12/+0
| | | | | | | | | The imxwd is for resetting the system, so we should not unregister it during shutdown_barebox() as it may leave us without a restart handler. Only a bug (not setting reset_wd to NULL in remove()) made the whole thing work. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/vpl'Sascha Hauer2015-08-0712-182/+984
|\
| * video: Add simple-panel supportSascha Hauer2015-07-133-0/+170
| | | | | | | | | | | | | | | | | | | | This adds support for simple panels. These are panels which don't need special handling but can have enable gpios and such. Unlike the Linux kernel implementation this one is able to understand display-timings nodes so that it's not necessary to keep a list of all known displays with their corresponding timings in barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: ipuv3: match ipu_di_signal_cfg's clk_pol with its descriptionSascha Hauer2015-07-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From this Linux commit: commit 85de9d17c485c4196f74d45de2206d4802f8a3be Author: Denis Carikli <denis@eukrea.com> Date: Mon Apr 7 14:44:43 2014 +0200 imx-drm: match ipu_di_signal_cfg's clk_pol with its description. According to the datasheet, setting the di0_polarity_disp_clk field in the GENERAL di register sets the output clock polarity to active high. Signed-off-by: Denis Carikli <denis@eukrea.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: ipuv3: Replace ipu_output with VPLSascha Hauer2015-07-135-178/+197
| | | | | | | | | | | | | | | | The ipuv3 makes heavy use of video encoders internally to the SoC but also external encoders are common. Switch to VPL support to be able to handle these properly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: ipuv3: remove unused variableSascha Hauer2015-07-132-2/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: Add MTL017 LVDS encoder supportSascha Hauer2015-07-133-0/+290
| | | | | | | | | | | | | | | | The MTL017 is found on the Efika Smartbook. Not much is known about this chip, so this driver only programs a register dump which is suitable for some panels. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: Add Video Pipeline (VPL) supportSascha Hauer2015-07-133-0/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Complex video pipelines are modelled with the of_graph bindings in the devicetree. This patch adds a ioctl infrastructure to issue commands to the remote endpoint of a of_graph. Currently defined ioctls are prepare/unprepare, enable/disable and get_modes. This is enough to control LVDS or HDMI encoder or simple panels. A device node which contains of_graph endpoints can be registered as a VPL entity. An entity can receive ioctls via the .ioctl callback and also issue ioctls by calling vpl_ioctl. The core itself will never iterate over the entire pipeline. Instead, the different VPL entities should forward an ioctl to the next instance in the pipeline whenever necessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of_graph: add of_graph_port_is_availableSascha Hauer2015-07-131-0/+22
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: import of_graph functionsSascha Hauer2015-07-131-0/+167
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: base: implement of_get_next_childSascha Hauer2015-07-131-0/+17
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/video'Sascha Hauer2015-08-062-36/+94
|\ \
| * | video: stm: reserve framebuffer memory for LinuxSascha Hauer2015-07-061-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: Add generic fixup handler to reserve fb memorySascha Hauer2015-07-061-0/+21
| | | | | | | | | | | | | | | | | | | | | When a framebuffer is kept enabled when Linux starts its framebuffer memory should be reserved. Otherwise Linux may overwrite its contents. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: honor display_flagsSascha Hauer2015-07-061-2/+4
| | | | | | | | | | | | | | | | | | | | | stmfb uses custom flags FB_SYNC_DE_HIGH_ACT and FB_SYNC_CLK_INVERT. These have generic counterparts in display_flags. Honor them aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: read bits-per-pixel from device treeSascha Hauer2015-07-061-0/+3
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: read interface width from device treeSascha Hauer2015-07-061-0/+6
| | | | | | | | | | | | | | | | | | | | | The interface width has not been initialized when probed from device tree. Fix that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: use uncached memorySascha Hauer2015-07-061-1/+8
| | | | | | | | | | | | | | | | | | To avoid caching effects on the display use uncached memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: code buswidth in platform data as decimalSascha Hauer2015-07-061-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of putting hardware specific bit masks in platform_data just use the decimal interface width and encode this in the driver. This makes it easier to create the platform_data and helps device tree based implementations. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: copy platform_data to driver dataSascha Hauer2015-07-061-16/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Copy the individual fields of struct imx_fb_platformdata to the driver data rather than keeping a pointer to platform_data. This works better with device tree where no platform_data * is available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video: stm: remove unnecessary info functionSascha Hauer2015-07-061-13/+0
| | | | | | | | | | | | | | | | | | devinfo will show the information without the help of the driver anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/ppc'Sascha Hauer2015-08-063-4/+9
|\ \ \
| * | | PPC/MPC5200: re-use the IMX I2C master driver for MPC5200Juergen Borleis2015-08-031-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This IP core is shared between many FSL SoCs. The MPC5200 provides this core as well. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | PPC/MPC52xx: unify header file name for clock APIJuergen Borleis2015-08-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation to re-use the i.MX I2C driver for the MPC5200 SoC use clock.h instead of clocks.h for the clock API. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/net'Sascha Hauer2015-08-062-35/+4
|\ \ \ \
| * | | | net: phy: at803x: Use genphy_config_initSascha Hauer2015-07-292-35/+4
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Based on the Linux commit: 6ff01db net: phy: at803x: use genphy_config_init() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2015-08-0610-55/+257
|\ \ \ \
| * | | | mtd: nand_base: replace ifdef with IS_ENABLEAntony Pavlov2015-08-061-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | watchdog: add davinci watchdog driverJan Luebbe2015-08-033-0/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver is based on the Linux driver (v4.0). Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | usb: gadget: serial: only call into CONSOLE_FULL code if it's thereLucas Stach2015-07-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: drivers/built-in.o: In function `gserial_connect': drivers/usb/gadget/u_serial.c:539: undefined reference to `console_set_active' Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mtd: of: put master offset into partition nameSascha Hauer2015-07-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partition names should be partition@<offset> with <offset> being the offset in the master mtd, and not a counting number. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mtd: core: Check partitions for empty stringTeresa Remmet2015-07-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make setting partitions a litte bit more robust. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | regulator: Add support for regulator-boot-on device tree propertySascha Hauer2015-07-151-0/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | regulator: Factor out functions to work with regulator_internalSascha Hauer2015-07-151-41/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Internally we only have a struct regulator_internal, so factor out regulator_enable_internal and regulator_disable_internal functions which can be called from regulator internal code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of/base: fix typoJan Luebbe2015-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | spi: only register enabled child nodesJan Luebbe2015-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | i2c: only register enabled child nodesJan Luebbe2015-07-091-1/+1
| |/ / / | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2015-08-062-79/+3
|\ \ \ \
| * | | | ata: sata-imx: Add delay to prevent link timeoutSascha Hauer2015-07-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the Utilite board this delay is necessary to prevent a link timeout. It seems the values written to GPR13 have to settle for some time before further accesses may be made. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | spi: i.MX: move register defines to include/Sascha Hauer2015-07-161-79/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | The register defines will be used by the SPI xload code, so move them to a place where the xload code can include them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/fbcon'Sascha Hauer2015-08-065-12/+483
|\ \ \ \
| * | | | video: implement framebuffer consoleAntony Pavlov2015-07-204-0/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch realizes framebuffer console support for barebox. It supports colors and enough escape sequences to show the barebox console and editor properly. fbconsole mini-HOWTO ==================== 1. compile sandbox barebox with CONFIG_VIDEO=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_DRIVER_VIDEO_SDL=y 2. run barebox 3. test fbconsole fbconsole0.active=oe Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fb: sdl: create graphics window on enablingSascha Hauer2015-07-201-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The framebuffer should be enabled on the fb_enable callback and disabled in the fb_disable callback. In SDL context this means the grapics window has to be created / destroyed in fb_enable / fb_disable. With this change the framebuffer has to be enabled explicitly with fb0.enable=1 like with other framebuffer driver aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | fb: Add fb_enable/disable functionsSascha Hauer2015-07-201-5/+24
| |/ / / | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/exitcall'Sascha Hauer2015-08-061-1/+2
|\ \ \ \
| * | | | exitcall: move device_shutdown to exitcall infrastructureHerve Codina2015-07-131-1/+2
| |/ / / | | | | | | | | | | | | | | | | Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | mtd: concat: initialize *retlenSascha Hauer2015-08-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In concat_write and concat_read *retlen is only added to, but it's never initialized. If the caller hasn't initialized retlen doesn't contain valid values. Fix this by initializing *retlen properly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | mtd: cfi-flash: Fix infoSascha Hauer2015-08-051-8/+15
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 636d384 mtd: cfi-flash: Add mtd concat support The devinfo output is broken. dev->priv no longer contains a struct flash_info * but instead a struct cfi_priv *. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | pinctrl: imx-iomux-v2: correct names in EXPORT_SYMBOL macrosLucas Stach2015-07-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions have been renamed, but this has not been reflected in the EXPORT_SYMBOL macros. Do that now. Fixes several errors like this: drivers/pinctrl/imx-iomux-v2.c:61:15: error: 'mxc_iomux_mode' undeclared here (not in a function) EXPORT_SYMBOL(mxc_iomux_mode); Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>