summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Fix AT91 UDC driver on boards without vbus.Owen Kirby2014-04-231-8/+10
| | | | | | | | | | | | | | From 4ea2bd2e1ca18136d7cfd61643bc8d8187b1495f Mon Sep 17 00:00:00 2001 From: Owen Kirby <osk@exegin.com> Date: Wed, 16 Apr 2014 17:45:18 -0700 Subject: [PATCH] Fix AT91 UDC driver on boards without vbus. While porting Barebox to one of our boards, we found that the AT91 UDC driver will fail to connect to USB hosts, and will spam the console with errors if the VBUS pin isn't connected. Signed-off-by: Owen Kirby <osk@exegin.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx-ipu-v3: remove unneeded 'dmfc' checkSascha Hauer2014-04-231-3/+0
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Suggested-by: Fabio Estevam <festevam@gmail.com>
* video: displaytimings: remove two broken error messagesLucas Stach2014-04-231-6/+2
| | | | | | | | | The error messages would dereference the just checked NULL ptr. As those messages don't add much value without further info just remove them. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: fix signedness mixups in printf format specifiersLucas Stach2014-04-233-4/+4
| | | | | | | | | This most likely doesn't fix any real bugs, but it's the right thing to do and reduces the noise level with static checkers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of_gpio: return error if no device foundSascha Hauer2014-04-091-3/+3
| | | | | | | of_get_named_gpio_flags used to return 'ret' when no device is found, but 'ret' is zero here. Return an error instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Fix use of unitialized variableSascha Hauer2014-04-081-8/+7
| | | | | | | | 'ret' is only initialized when info->fbops->fb_activate_var exists, so only use it in this case. Reported-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: i.MX: Fix direction for CS GPIOsAlexander Shiyan2014-04-081-2/+2
| | | | | | | | Direction for CS GPIOs (for some targets) is undefined. This patch fixes this issue. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mtd'Sascha Hauer2014-04-048-15/+36
|\
| * nand: mxs: Fix for calculating ecc strength on some types of NAND flashDmitry Lavnikevich2014-03-121-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Was tested on NAND with {writesize=4096, oobsize=224} and {writesize=2048, oobsize=64}. This patch will not break any NAND that was working before. Implemented calculation way may be used for other NAND chips with writesize == 2048 but oobsize != 64. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: mxs: Check for up to 4 NAND chipsDmitry Lavnikevich2014-03-121-2/+9
| | | | | | | | | | | | | | | | | | | | Since i.MX6 has only one R/B actual pin, if there are several R/B signals (from different NAND chips) they must be connected to this pin. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ubi: Fix for creating ubi volumes with 64bit sizeDmitry Lavnikevich2014-03-121-1/+1
| | | | | | | | | | | | | | | | | | Since MTD is already supports >= 4GB device sizes it is better to allow ubi valumes also be created of larger sizes. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mtd: Support for 4GB partitionsDmitry Lavnikevich2014-03-121-2/+2
| | | | | | | | | | | | | | | | | | This patch implements correct way of creating partitions on mtd devices with size >= 4GB. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mtd: Update internal API to support 64-bit device sizeDmitry Lavnikevich2014-03-125-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MTD internal API presently uses 32-bit values to represent device size. This patch updates them to 64-bits but leaves the external API unchanged. In general, changing from 32-bit to 64-bit values cause little or no changes to the majority of the code with the following exceptions: - printk message formats; - division and modulus of 64-bit values (mtd_div_by_wb, mtd_div_by_eb may be used in some of such cases). Was tested on phyFLEX i.MX6. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2014-04-0411-34/+86
|\ \
| * | mtd: omap gpmc: Turn debug message into dev_dbgSascha Hauer2014-04-041-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers: treewide: Kill empty remove() implementationsAlexander Shiyan2014-04-026-31/+0
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: Add support for "stdout-path" propertySascha Hauer2014-03-311-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | ePAPR 1.1 specifies the "stdout-path" property, but barebox currently only handles the "linux,stdout-path" property. Add parsing for the new property name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clocksource: add dummy software-only clocksourceAntony Pavlov2014-03-193-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver is very handy for initial barebox porting. It was used for running barebox on DiGiC2-based camera and initial porting barebox to Loongson-1 and ar9331. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reported-by: Alexander Aring <alex.aring@gmail.com> Reported-by: Alexander Shiyan <shc_work@mail.ru>
* | | Merge branch 'for-next/davinci'Sascha Hauer2014-04-043-0/+219
|\ \ \
| * | | gpio: add driver for TI DaVinci SoCsAntony Pavlov2014-03-183-0/+219
| |/ / | | | | | | | | | | | | | | | | | | This driver is dts-only version of driver from Linux v3.14-rc5. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mips'Sascha Hauer2014-04-047-7/+501
|\ \ \
| * | | clk: add Atheros AR933x driverAntony Pavlov2014-03-282-0/+174
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: add Atheros AR933x driverAntony Pavlov2014-03-284-0/+281
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: ns16550: add compatible entry for "ingenic,jz4740-uart"Antony Pavlov2014-03-261-0/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: ns16550: add compatible entry for "ns16450"Antony Pavlov2014-03-261-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "ns16450" uses the same code as "ns16550a" but with FIFO disabled. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: ns16550: make FCR setup value part of struct ns16550_privAntony Pavlov2014-03-261-6/+7
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: ns16550: fix whitespacesAntony Pavlov2014-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx-ipu-v3'Sascha Hauer2014-04-0442-221/+8245
|\ \ \ \
| * | | | video: i.MX IPUv3: Add hdmi supportSascha Hauer2014-03-294-0/+2333
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | video: i.MX IPUv3: Add lvds bridge supportSascha Hauer2014-03-293-0/+314
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | video: Add i.MX IPUv3 supportSascha Hauer2014-03-2914-0/+3905
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | video: Add edid supportSascha Hauer2014-03-295-3/+1065
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | video: Add display timing from devicetree helperSascha Hauer2014-03-292-0/+239
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | video: rework mode_name parameter settingSascha Hauer2014-03-291-33/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have dev_add_param_enum() now, so use it for the mode_name setting. Also drop the special case for single mode framebuffers, just add the mode_name parameter for this case aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | video: introduce struct display_timingsSascha Hauer2014-03-298-27/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And use it inside struct fb_info. This struct has the advantage that the supported modes can be passed around in a single pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: Add parent round/set rate for mux and gateSascha Hauer2014-03-283-0/+24
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: clk-fixed-factor: add set_rate/round_rate callbacksSascha Hauer2014-03-281-0/+30
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: let clk-divider handle the table based divider aswellSascha Hauer2014-03-283-121/+37
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: clk-divider: sync with kernel codeSascha Hauer2014-03-281-30/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates the clk-divider to Kernel code, but without power-of-two divider support which we do not need yet. This also adds table based divider support to the divider. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: clk-divider: pass flags to initializersSascha Hauer2014-03-282-4/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: clk-fixed-factor: pass flags to initializersSascha Hauer2014-03-284-4/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: clk-gate: pass flags to initializersSascha Hauer2014-03-285-9/+10
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: clk-mux: pass clk flags from initializersSascha Hauer2014-03-283-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | struct clk has a flags field, let the clk-mux initializers set this field. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: implement clk_round_rateSascha Hauer2014-03-281-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of returning just the current rate implement clk_round_rate properly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | i2c: implement of_find_i2c_adapter_by_nodeSascha Hauer2014-03-281-0/+11
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | i2c: i.MX: move to earlier initcallSascha Hauer2014-03-281-1/+1
| |/ / / | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / / input: gpio-keys; dt probing needs CONFIG_OF_GPIOSascha Hauer2014-03-291-1/+1
|/ / / | | | | | | | | | | | | | | | Otherwise of_get_named_gpio_flags is not available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | mtd: ubi: avoid NULL pointer dereference in ubi_get_devicePhilipp Zabel2014-03-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the ubidetach command is given a number that passes the range check in ubi_detach_mtd_dev, but at which index the ubi_devices array contains a NULL pointer, ubi_get_device tries to dereference this NULL pointer to increment the ubi device reference count. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | usb: gadget: propagate error code from usb_composite_registerSascha Hauer2014-03-191-1/+3
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | usb: gadget: set composite to NULL when usb_gadget_register_driver failsSascha Hauer2014-03-191-1/+8
|/ / | | | | | | | | | | So that it can be tried later again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>