summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* of_partition: devfs_add_partition returns an error pointerSascha Hauer2014-08-011-0/+4
| | | | | | | | Check for the return value of devfs_add_partition with IS_ERR. Otherwise we dereference a NULL pointer when devfs_add_partition fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pci: pci_alloc_bus(): use xzalloc() instead of kzalloc()Antony Pavlov2014-07-091-8/+8
| | | | | | | | Also drop redundant xzalloc() result check as xzalloc() does not return in case of memory allocation error. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/mtd: fix NULL pointer dereference in partition lock/unlockZahari Doychev2014-07-091-0/+6
| | | | | | | | Some mtd device does not support lock and unlock functions. Adding this check avoids crashing when mtd_part_lock/unlock are called for such devices. Signed-off-by: Zahari Doychev <zahari.doychev@linux.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/net'Sascha Hauer2014-07-049-2/+1547
|\
| * net: add ENC28J60 supportAntony Pavlov2014-07-024-0/+1334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENC28J60 is a stand-alone Ethernet controller with SPI Interface and integrated 10BASE-T PHY. This driver was ported from linux-3.15. The most notable barebox driver version changes: * add device tree support; * drop netif_msg_*() debug level checking; * use IF_ENABLED for checking CONFIG_ENC28J60_WRITEVERIFY; * add mii_bus support. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: add support for Marvell PHY driversSebastian Hesselbarth2014-06-253-0/+205
| | | | | | | | | | | | | | | | This adds initial support for Marvell PHY specific drivers. As a first PHY, a driver for MV88E1121R is ported over from Linux. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: orion-gbe: extend RGMII detection to delayed modesSebastian Hesselbarth2014-06-251-1/+4
| | | | | | | | | | | | | | | | | | RGMII PHY modes include delayed interface modes RGMII_ID, RGMII_TXID, and RGMII_RXID. Also check for those modes when setup RGMII mode in port serial ctrl register. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: orion: generate unique port device namesSebastian Hesselbarth2014-06-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Marvell Orion ethernet IP originally is multi-port capable, but SoCs using the IP usually have multiple single-port controllers built in. Currently, orion-gbe driver registers each port device with a constant name, which causes a name conflict with multiple controller instances. This patch uniquifies port device name generation by prepending controller's base register address to resolve the name conflict. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: net: respect phy-connection-type propertySebastian Hesselbarth2014-06-251-0/+2
| | | | | | | | | | | | | | | | | | ePAPR defines phy-connection-type as standard property for PHY interface between Ethernet device and PHY device. Add corresponding property check to of_get_phy_mode. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips'Sascha Hauer2014-07-0415-3/+1480
|\ \
| * | net: add RealTek RTL-8139 PCI Ethernet driverAntony Pavlov2014-07-043-0/+614
| | | | | | | | | | | | | | | | | | | | | | | | This driver is based on Linux 2.6.39 8139too driver. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | PCI: initial commitAntony Pavlov2014-07-047-0/+470
| | | | | | | | | | | | | | | | | | | | | | | | used shorten version of linux-2.6.39 pci_ids.h Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: add jz4740-gpio driver for Ingenic MIPS SoCsAntony Pavlov2014-06-273-0/+147
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c: i2c_gpio: add devicetree supportAntony Pavlov2014-06-251-3/+52
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: add Malta CBUS FPGA I2C driverAntony Pavlov2014-06-243-0/+197
| |/ | | | | | | | | | | | | | | | | | | | | This driver provides common support for accessing the CBUS FPGA I2C lines through the gpio library. Additional i2c bitbang driver must be enabled in order to use the functionality of the i2c controller. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/marvell'Sascha Hauer2014-07-0412-27/+1598
|\ \ | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/Makefile arch/arm/dts/Makefile
| * | pinctrl: mvebu: add pinctrl drivers for Dove and KirkwoodSebastian Hesselbarth2014-06-268-0/+1470
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds pinctrl drivers for Marvell Dove and Kirkwood SoCs based on a common driver stub. This design is based on the corresponding Linux driver and should ease additional drivers for Marvell Armada SoCs. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers: of: import PCI bus specific translatorSebastian Hesselbarth2014-06-252-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DT PCI address translation needs a special handling. This imports the corresponding translator into of/address.c but makes it selectable through Kconfig. Compared to the Linux version, we don't check for struct device_node's type which does not exist on Barebox but directly for device_type property set to "pci". Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clocksource: mvebu: split initialization for Armada 370/XPSebastian Hesselbarth2014-06-241-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Timers found on Marvell Armada 370 and XP require different setup. While timer clock on Armada 370 can be derived from a divided reference clocks, Armada XP always uses a 25MHz reference. This also updates compatibles to destinguish timers for both SoCs and fixes some whitespace issues on defines. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | clk: mvebu: fix Armada 370 TCLK frequenciesSebastian Hesselbarth2014-06-241-2/+2
| |/ | | | | | | | | | | | | This fixes Armada 370 TCLK frequencies that are off by a factor of 10. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
* | Merge branch 'for-next/arm-versatile'Sascha Hauer2014-07-041-0/+7
|\ \
| * | i2c: versatile: add devicetree supportAntony Pavlov2014-06-231-0/+7
| |/ | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / mtd: delete partition erase size initialisationRenaud Barbier2014-07-031-1/+0
|/ | | | | | | Delete the partition erase size initialisation to let the code that follows determine the biggest partition erase size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: use long long dev param for sizeHerve Codina2014-06-131-1/+1
| | | | | Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove address of the Free Software FoundationAntony Pavlov2014-06-1129-119/+0
| | | | | | | | | | | | | | | | | | The FSF address has changed; The FSF site says that address is Free Software Foundation 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA (see http://www.fsf.org/about/contact/) Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: partition: implement lock/unlockSascha Hauer2014-06-101-0/+28
| | | | | | | CFI Nor flashes need lock/unlock which is not implemented for partitions. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: partition: Fix multi eraseregion chipsSascha Hauer2014-06-101-17/+24
| | | | | | | | | | | | | The current code counts the eraseregions a new partition spans and sets the partitions number of eraseregions accordingly, but the code forgets to allocate and fill in the eraseregions for the partition mtd device. This makes the erase operation crash with a NULL pointer exception. This patch fixes this with the same approach the kernel uses: Set the number of eraseregions to 1 unconditionally and the eraseregion size to the maximum of the eraseregions found in the partition. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: fix mtd erasesizeHerve Codina2014-06-101-1/+10
| | | | | | | Set mtd erasize using max erasesize from erase regions Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: Fix writesize parameter valueHerve Codina2014-06-101-1/+1
| | | | | Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/warnings'Sascha Hauer2014-06-061-2/+2
|\
| * fix format specifiersSascha Hauer2014-06-051-2/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci: tegra: add Tegra124 compatibleLucas Stach2014-06-051-0/+2
| | | | | | | | | | | | | | | | | | The controller is similar enough to the ones found on earlier generation SoCs to not need any additional changes. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: tegra: add Tegra124 driverLucas Stach2014-06-052-0/+350
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: tegra: don't bug out on zero PLL postdivLucas Stach2014-06-051-2/+0
| | | | | | | | | | | | | | | | As the real value is 2^p a input value of 0 is actually valid. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: tegra: allow variable sized muxesLucas Stach2014-06-051-2/+4
| | | | | | | | | | | | | | | | Tegra124 extended the mux by 1bit to allow for more PLL sources. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pinctrl: tegra: add Tegra124 supportLucas Stach2014-06-052-1/+252
| | | | | | | | | | | | | | | | | | We can reuse the Tegra30 pinctrl driver, as the bit layout is the same. Just add the pin and drivegroups and some compile-time magic to avoid bloat. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pinctrl: tegra30: introduce drvdataLucas Stach2014-06-051-14/+34
|/ | | | | | | | | Access pin and drivegroups through a drvdata pointer. This allows to insert other groups for SoCs with a similar bit layout easily. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/usb'Sascha Hauer2014-06-041-9/+10
|\
| * usb: chipidea i.MX: relax phy_type requirementsSascha Hauer2014-05-221-9/+10
| | | | | | | | | | | | | | | | Some USB ports only have one possiblitly for the phy_type and the type is not specified in the devicetree in this case. Rely on the reset default instead of failing. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/uemd'Sascha Hauer2014-06-043-0/+135
|\ \
| * | clocksource: add uemd clocksourceAntony Pavlov2014-05-263-0/+135
| |/ | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/tegra'Sascha Hauer2014-06-0416-30/+1371
|\ \
| * | mci: implement non-removable propertyLucas Stach2014-06-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | There is no need to check the card-detect status for non-removable devices. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: tegra30: parse drive groupsLucas Stach2014-05-151-1/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | These are special groups to configure pad properties such as drive strength and slew rate for a group of pads. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: tegra: don't set 8bit mode unconditionallyLucas Stach2014-05-151-2/+1
| | | | | | | | | | | | | | | | | | | | | Those flags should be set from the DT parsing code. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: tegra: apply pad autocalibration on T30Lucas Stach2014-05-151-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Needed for SD cards connected to sdmmc1 or sdmmc3 to work properly. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c: add Tegra driverLucas Stach2014-05-153-0/+704
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: tegra20: register i2c clocksLucas Stach2014-05-151-0/+13
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: tegra30: register i2c clocksLucas Stach2014-05-151-0/+16
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: tegra: allow to register clocks with 16 bit dividerLucas Stach2014-05-152-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | Some peripherals have a double wide divider in front of them. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>