summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | nand_imx: fix read ONFI param on NFC v21Eric Bénard2013-12-191-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tested on an i.MX25 where we now get : nand: ONFI param page 0 valid nand: ONFI flash detected nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP), 256MiB, page size: 2048, OOB size: 64 Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | net: dm9k: bail out when resources can't be claimedSascha Hauer2013-12-181-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | net: dm9k: Fix resource sizes in add_dm9000_deviceSascha Hauer2013-12-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dm9000 needs a resource for an index register and one for the data register. Both should have a size of the access width, and not two times the access width. The current code is probably a leftover when the dm9000 had only one resource. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | pinctrl: single: select CONFIG_PINCTRLJan Weitzel2013-12-171-0/+1
| |/ / |/| | | | | | | | | | | | | | | | | pinctrl_register is used. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | atmel_nand: check gpio validity before using itEric Bénard2013-12-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | else we get : "invalid GPIO -22" (as enable_pin is EINVAL) tested on SAMA5D35 Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | of: gpio: Fix Kconfig variables to depend onAntony Pavlov2013-12-121-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | net: cpsw: Fix gmii_sel configJan Weitzel2013-12-121-0/+1
|/ / | | | | | | | | | | | | Prober slave_num is needed by cpsw_gmii_sel_am335x to calc reg value. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/tegra'Sascha Hauer2013-12-066-3/+498
|\ \
| * | tegra: add SDMMC controller driverLucas Stach2013-12-043-0/+472
| | | | | | | | | | | | | | | | | | | | | | | | Confirmed working on Tegra 2, may need some small adjustments for Tegra 3. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: tegra: add SDMMC clocksLucas Stach2013-12-041-0/+18
| | | | | | | | | | | | | | | | | | | | | Provide peripheral clocks for the SD controller. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: tegra: remove leftover debug codeLucas Stach2013-12-041-2/+0
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | tegra: speed up system busLucas Stach2013-12-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | We run the system bus from the OSC clock during init, to avoid crashing the system while reconfiguring the PLLs. Switch to a more reasonable clock when we are done with this. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: reduce noise when parsing DTLucas Stach2013-12-041-1/+1
| |/ | | | | | | | | | | | | | | | | Some GPIOs are optional, so it might not be an error if we can not find a DT property. Do the same thing as the Linux kernel and only print a debug message not an error. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap-drivers'Sascha Hauer2013-12-0619-124/+1338
|\ \
| * | mmc: omap: Add devicetree supportSascha Hauer2013-11-271-0/+13
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bus: Add omap gpmc driverSascha Hauer2013-11-273-0/+530
| | | | | | | | | | | | | | | | | | | | | This adds a devicetree-only driver for to configure the gpmc and its child devices from dt. Currently only NAND is supported. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | device: Add functions to add resourcesSascha Hauer2013-11-271-13/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | We currently have functions to add a device based on function parameters. This adds the corresponding functions to add resources to a device without registering the device itself. This is useful to manipulate devices before registering them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: omap gpmc: Use dev_add_param_enumSascha Hauer2013-11-271-26/+10
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: omap: Add devicetree probe supportSascha Hauer2013-11-271-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | This adds devicetree probe support for the OMAP gpio ports and also makes sure the corresponding platform_devices don't get registered when they are already present from devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpio: omap: move to drivers/gpio/Sascha Hauer2013-11-273-0/+160
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: straighten error pathSascha Hauer2013-11-271-5/+13
| | | | | | | | | | | | | | | | | | This mainly has the effect of checking the return value of eth_register. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: attach slave to edev->privSascha Hauer2013-11-271-14/+20
| | | | | | | | | | | | | | | | | | | | | An ethernet device belongs to a slave, so set edev->priv to the slave and not to the cpsw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: drop for_each_slaveSascha Hauer2013-11-271-26/+14
| | | | | | | | | | | | | | | | | | | | | | | | We currently only use one slave, so drop for_each_slave and hardcode slave[0] until we pass the proper context to the functions that makes this hack unnecessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: move eth_device into slaveSascha Hauer2013-11-271-17/+16
| | | | | | | | | | | | | | | | | | An ethernet device is per slave, not per cpsw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | cpsw: Add devicetree probe supportSascha Hauer2013-11-271-7/+159
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: Add functions to select pinctrl from device_nodeSascha Hauer2013-11-271-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of requiring a device pointer, add a functions to select the pinctrl state based on a device node. The AM33xx cpsw devicetree description has several subdevices with pinctrl information attached to them. In barebox we do not handle the subdevices as distinct devices, so the pinctrl is never configured correctly and the mdio bus subdevice stops working. This patch makes it possible to configure the pinctrl without having a device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: inline slave_dataSascha Hauer2013-11-221-5/+7
| | | | | | | | | | | | | | | | | | | | | Devicetree probed cpsw devices won't have platform_data, so inline the fields from slave_data instead of keeping a pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c: omap: Add devicetree supportSascha Hauer2013-11-221-1/+27
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | spi: omap: Add devicetree probe supportSascha Hauer2013-11-221-0/+13
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | spi: omap: encode register offset into device_idSascha Hauer2013-11-222-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The omap3 and omap4/am33xx spi cores differ in the offset of the registers in the address space. Instead of encoding this into the resources use the platform_device_id mechanism. This is done in preparation for devicetree probe support where the address space is in the devicetree and can't be adjusted. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: Add pinctrl-single driverSascha Hauer2013-11-223-0/+170
| | | | | | | | | | | | | | | | | | | | | Based on the kernel pinctrl-single driver. This one is just enough to make OMAP/AM33xx work. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | serial: ns16550: Add device ids for omapSascha Hauer2013-11-222-12/+54
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/omap-devicetree-prepare'Sascha Hauer2013-12-061-0/+6
|\ \ \
| * | | mmc: omap: name mmc device after devicetree aliasSascha Hauer2013-11-251-0/+6
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2013-12-0633-11/+43
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: scripts/Makefile
| * | | net: phy: Fix get_phy_device return valueSascha Hauer2013-11-252-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A function should either return an ERR_PTR or NULL on failure, but not both. Let get_phy_device() return an ERR_PTR and fix the return checks in mdiobus_scan and phy_device_connect. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | barebox: remove double semicolonsAlexander Aring2013-11-184-4/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mci: mxs: support overwriting the device name via platform dataUwe Kleine-König2013-11-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of the bootloader specification depends on the hardware name and the name of the device in /dev to match. As the default hardware name is mciX and the device name is diskY the bootloader spec cannot be used as is. This patch implements a way to overwrite the device name similar to what is possible for the imx-esdhc driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: netx: Fix signed/unsigned arguments for printfAlexander Shiyan2013-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net/Kconfig: Remove non-existent ARCH_DAVINCIAlexander Shiyan2013-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eeprom: at24: Enable OF partition parsingSascha Hauer2013-11-081-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | treewide: Add missing includesSascha Hauer2013-11-0825-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2013-12-066-1/+150
|\ \ \ \
| * | | | net/phy: add driver for atheros PHYsLucas Stach2013-12-033-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on Linux kernel 3.12 driver. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.mx53: Parse Reset GPIO pin in FEC driver from DevicetreeRostislav Lisovy2013-11-251-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rostislav Lisovy <lisovy@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: gpio: Add Kconfig variable to depend onSascha Hauer2013-11-252-1/+6
| | |/ / | |/| | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/gpio'Sascha Hauer2013-12-063-4/+99
|\ \ \ \
| * | | | gpiolib: import gpio_request_array() from linux 3.7Antony Pavlov2013-11-221-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also import related functions gpio_request_one() and gpio_free_array(). This commit imports code from linux 3.7 as the more recent linux kernel versions use gpiolib descriptors, see this commit for details: commit 372e722ea4dd4ca11c3d04845e11cbc15f32144c Author: Alexandre Courbot <acourbot@nvidia.com> Date: Sun Feb 3 01:29:29 2013 +0900 gpiolib: use descriptors internally Make sure gpiolib works internally with descriptors and (chip, offset) pairs instead of using the global integer namespace. This prepares the ground for the removal of the global gpio_desc[] array and the introduction of the descriptor-based GPIO API. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | gpio: unify gpio direction macros names with Linux kernelAntony Pavlov2013-11-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See linux.git/include/linux/gpio.h and linux.git/Documentation/gpio.txt for details. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | gpio: dw: add get_direction callbackSebastian Hesselbarth2013-11-111-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a callback function to read the current state of a GPIOs in/out direction. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>