summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | mtd: nand_imx: Remove redundant assignmentAlexander Shiyan2014-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | clk: avoid possible NULL ptr derefLucas Stach2014-02-101-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mtd: core: avoid possible NULL ptr derefLucas Stach2014-02-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | net: usb: asix: properly propagate error codeLucas Stach2014-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | net: usb: smsc95xx: fix wrong phy reset conditionLucas Stach2014-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | usb: dfu: fix error path to avoid NULL ptr derefLucas Stach2014-02-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | usb: ulpi: fix logic-opLucas Stach2014-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checking register bits is a bitwise operation. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | remove redundant NULL check on freeLucas Stach2014-02-102-4/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | free() already checks the pointer to be non NULL. No need to do it again. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/marvell'Sascha Hauer2014-03-0711-89/+1817
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile
| * | | | net: orion: add ethernet driverSebastian Hesselbarth2014-02-104-0/+784
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a driver for the Ethernet ip found on Marvell Orion SoCs, which is derived from Marvell Discovery System Controllers (MV643xx). It is partially based on the corresponding u-boot driver. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Michael Grzeschik <mgr@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | net: phy: add mvebu mdio bus driverSebastian Hesselbarth2014-02-103-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a driver for the mdio bus found on Marvell Orion SoCs as part of the GBE device and Marvell Armada 370/XP as part of Neta eth device. Both drivers can share this code, so make it available independently. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Michael Grzeschik <mgr@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | bus: mvebu: add mbus driverSebastian Hesselbarth2014-02-103-6/+757
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | net: reorder Kconfig and Makefile alphabeticallySebastian Hesselbarth2014-02-102-83/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reorders Kconfig and Makefile for drivers/net alphabetically. 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-073-4/+4
|\ \ \ \ \
| * | | | | ARM: i.MX: Make mxc_iomux_v3_setup_multiple_pads argument constSascha Hauer2014-02-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | video: imx: Add a name to perclkSascha Hauer2014-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | perclk should be named 'per' to make sure we get the correct clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | sata-imx: i.MX53, use the internal 120MHz clock by defaultEric Bénard2014-02-101-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this allows SATA to work on i.MX53 QSB-R : barebox@Freescale i.MX53 Quick Start-R Board:/ ata0.probe=1 imx-sata 10000000.sata: port 0: SATA link ok imx-sata 10000000.sata: port 0: Spinning up device... imx-sata 10000000.sata: port 0: ok. ata0: registered /dev/ata0 before this fix the log was : barebox@Freescale i.MX53 Quick Start-R Board:/ ata0.probe=1 imx-sata 10000000.sata: port 0: SATA link timeout set parameter: Connection timed out 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-074-31/+266
|\ \ \ \ \
| * | | | | input: gpio-keys: Add devicetree probe supportSascha Hauer2014-02-171-13/+77
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | input: Add keycode to barebox key translation tableSascha Hauer2014-02-172-0/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-23/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-071-5/+15
|\ \ \ \ \
| * | | | | usb: dfu: Add create flagSascha Hauer2014-02-281-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | DFU_FLAG_SAVE should really be named DFU_FLAG_SAFE. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/dfu'Sascha Hauer2014-03-073-2/+10
|\ \ \ \ \
| * | | | | USB gadget: dfu: propagate error from usb_gadget_pollSascha Hauer2014-02-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So that the dfu command can bail out with an error when usb_gadget_poll fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | USB gadget: fsl: Bail out if no udc existsSascha Hauer2014-02-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there is no udc registered bail out in usb_gadget_poll instead of crashing the system. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | USB gadget: at91: return error when no udc is registeredSascha Hauer2014-02-131-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | When no udc is registered it is clearly an error when usb_gadget_poll is called. Let the upper layers know that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | mtd: nand: atmel pmecc: disable subpage writesHerve Codina2014-03-031-0/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I am using an sam5d35 and its pmecc nand ecc controller. In barebox, using similar atmel_nand.c the system crashes. The problem was a call to chip->ecc.hwctl from nand_write_subpage_hwecc (nand_base.c) when we write a sub page. chip->ecc.hwctl function is not set when we are using PMECC controller. As a workaround, i set NAND_NO_SUBPAGE_WRITE for PMECC controller in order to disable sub page access in nand_write_page. I think we can have the same problem in Linux. I do not performed subpage nand writes from Linux but i made the following patch according to my Barebox defect. Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | cfi_flash: fix NULL pointer dereferencePhilippe Rétornaz2014-02-281-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | We need to setup the info->dev pointer before flash_get_size() since it might use it for dev_dbg(). This fix a crash on boot when debug output is enabled. Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | mci: Fix version handlingSascha Hauer2014-02-141-9/+19
|/ / | | | | | | | | | | | | | | | | | | | | | | 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>
* / cfi_flash.c: correct calculation of region erasesize and offset for multiple ↵Cristiano De Alti2014-02-041-2/+2
|/ | | | | | | (size_ratio > 1) chips in parallel Signed-off-by: Cristiano De Alti <cristiano_dealti@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pxa'Sascha Hauer2014-02-032-7/+7
|\
| * reset_source: rename set_reset_source to reset_source_setSascha Hauer2014-01-292-7/+7
| | | | | | | | | | | | | | To get all reset source related functions into the same function namespace. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net'Sascha Hauer2014-02-034-5/+132
|\ \
| * | net usb asix: add AX88772B USB IDPhilipp Zabel2014-01-291-0/+14
| | | | | | | | | | | | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net usb asix: read MAC from EEPROM on AX88772BPhilipp Zabel2014-01-291-3/+15
| | | | | | | | | | | | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net usb asix: Use only 11 bits of header for data sizeMarek Vasut2014-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AX88772B uses only 11 bits of the header for the actual size. The other bits are used for something else. This causes dmesg full of messages: asix_rx_fixup() Bad Header Length This patch trims the check to only 11 bits. I believe on older chips, the remaining 5 top bits are unused. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net usb asix: Simplify condition in rx_fixup()Marek Vasut2014-01-231-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net/phy: add driver for National Semiconductor DP83865 PHYAntony Pavlov2014-01-203-0/+101
| |/ | | | | | | | | | | | | Based on Linux kernel 3.12 driver. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2014-02-037-9/+110
|\ \
| * | misc: Add devicetree SRAM driverSascha Hauer2014-01-293-0/+82
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | misc Kconfig: always ask for misc devicesSascha Hauer2014-01-291-8/+2
| | | | | | | | | | | | | | | | | | | | | The "Misc devices" menu does not enable anything by itself, so make it a regular menu rather than a menuconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | environment: Use accessor functions for default environment pathSascha Hauer2014-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | default_environment_path only exists when CONFIG_ENV_HANDLING is enabled. Boards would have to #ifdef this if they wanted to use default_environment_path. Use accessor functions instead which can be ifdeffed on a single place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | console: Set Linux console parameter automaticallySascha Hauer2014-01-222-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux specifies the linux,stdout-path property in the /chosen node in the devicetree. Unfortunately this is ignored in most cases. For cases in which barebox uses this property for its own use we translate this into a Linux boot arg with: - the console name provided by the serial driver - the the instance from the 'serial' alias - the baudrate from the actual baudrate. So with this it's for devicetee enabled boards no longer necessary to manually assign a console= parameter. Should a user not want to use the automatically assigned parameter it should do: global.linux.bootargs.console= in the environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: find also nodes by mixture of alias and pathJan Weitzel2014-01-101-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | Let of_find_node_by_path_or_alias also find a node starting with an alias followed by a path like "i2c0/tps@24" Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mci'Sascha Hauer2014-02-032-11/+79
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/tqma53/board.c
| * | | mci: imx-esdhc: add DSR supportMarkus Niebel2014-01-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | having DSR support in mci-core we need a way to forward the DSR value to the driver. Add it to platform data for imx-esdhc TODO: implement the same for other host controller drivers Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>