summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Add a simple watchdog frameworkJuergen Beisert2012-06-295-1/+69
| | | | | | | | This patch adds a simple wd command which can setup, trigger and stop a watchdog on the platform. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* print out resource_size_t correctlySascha Hauer2012-06-251-1/+2
| | | | | | | resource_size_t can be 32bit or 64bit depending on the architecture. Add a define for it to be able to printf a resource_size_t correctly Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: progressbar tweakJohannes Stezenbach2012-06-071-2/+2
| | | | | | | | Show progressbar even when erasing just a single sector, otherwise it looks as if erase didn't do anything. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: allow erase to be interruptedJohannes Stezenbach2012-06-071-0/+2
| | | | | | | Check for Ctrl-C before erasing each sector. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: prevent endless loop in eraseJohannes Stezenbach2012-06-071-0/+2
| | | | | | | | | "erase /dev/myflash0 0+1" erased the whole flash, similar for other value of count if you guessed the erae block size wrong. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-06-0611-26/+69
|\
| * usb ehci: Add resource sizesSascha Hauer2012-05-311-0/+2
| | | | | | | | | | | | add_usb_ehci_device registers resources with size 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * usb ehci: Use zalloc to allocate ehci structureSascha Hauer2012-05-231-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * usb storage: fix driver nameSascha Hauer2012-05-231-1/+1
| | | | | | | | | | | | | | | | We have to set the name in struct usb_driver, not the one in struct driver_d which gets overwritten with usb_driver->name during registration. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Make S3C24xx config options available for all S3CsAlexey Galakhov2012-05-211-5/+5
| | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'master' into nextSascha Hauer2012-05-161-3/+1
| |\
| * | i.MX SPI: Setup SPI chipselect to inactive state while initializing deviceAlexander Shiyan2012-05-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | To avoid unnecessary preset initial state chipselect lines for SPI, set it to inactive state when adding devices to the system. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers/spi/spi.c: use DEVICE_ID_DYNAMIC when allocating a struct device_dJan Luebbe2012-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This causes allocation of a free id and avoids conflicts if multiple identical SPI devices are attached. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Support most Samsung SoCs in S3C serial driverAlexey Galakhov2012-05-142-18/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ok, I assume this should go into separate series. It fits both S5PV210 and S3C6410. This adds support for S3C and S5P architectures (all of my knowledge) to the serial driver. Since the only difference between them is in clock handling, this is moved to an arch-dependent separate function. Most modern architectures should define S3C_UART_HAS_UBRDIVSLOT and S3C_UART_HAS_UINTM. This adds support for most Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Juergen Beisewrt <kernel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ohci-hcd: use dma_flush/inv_range to allow using the driver with enabled MMUJan Luebbe2012-05-141-0/+4
| | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | fix typo funtion -> functionAntony Pavlov2012-05-131-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | NOR flash: reduce size of cfiword_t if not using 64-bit bus.Krzysztof Halasa2012-05-131-0/+10
| | | | | | | | | | | | | | | | | | | | | This is done to reduce the binary size a bit. Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | video/s3c24xx.c: fix doxygen comment for s3cfb_activate_var()Antony Pavlov2012-05-301-1/+0
| |/ |/| | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mfd mc13xxxx: Set mc_dev to NULL on failureSascha Hauer2012-05-161-3/+1
|/ | | | | | | | | The mc13xxx driver correctly bails out on failure, but leaves mc_dev initialized, so a later mc13xxx_get won't fail but returns an invalid pointer. Fix this. While at it, remove some superfluous code from mc13xxx_get. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* complete: add empty complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+2
| | | | | | | | | | for cpuinfo, clear, dhcp, false, login, lsmod, meminfo, passwd, pwd, reginfo, reset, true, usb, version for mach-imx and mach-mxs: dump_clocks for u_serial: mycdev Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* complete: add device name complete support for devinfoJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* netX/network: fix debug outputsJuergen Beisert2012-04-301-2/+2
| | | | | | | If DEBUG is defined it fails due to wrong variable names Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netX: UART may not initialize correctly.Michael Trensch2012-04-301-6/+5
| | | | | | | | | | | The netX internal UART latches register settings and internally uses them only if written in the correct order. Other orders may work, but sometimes the UART gets stuck, as the baudrate has not correctly been set. Signed-off-by: Michael Trensch <MTrensch@gmail.com> Acked-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devinfo: use accessor function for parametersSascha Hauer2012-04-241-1/+1
| | | | | | | Instead of directly accessing the struct member of struct param_d use the provided getter function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/mx6-v2' into nextSascha Hauer2012-04-245-8/+56
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/Makefile arch/arm/mach-imx/Kconfig Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net mii: Add mii_open/mii_close functionsSascha Hauer2012-04-241-0/+20
| | | | | | | | | | | | | | | | Some phys need board specific fixups. To be able to do this from board code add mii_open/mii_close functions so that the board can use the regular mii_read/mii_write functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mmc i.MX esdhc: Add i.MX6 supportSascha Hauer2012-04-241-3/+12
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net fec: Add i.MX6 supportSascha Hauer2012-04-241-3/+22
| | | | | | | | | | | | | | Currently only 100Mb/s is tested. Freescale's U-Boot suggests that there are some additional adjustments necessary for Gigabit support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial i.MX: i.MX6 supportSascha Hauer2012-04-241-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: add initial i.MX6 supportSascha Hauer2012-04-241-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb: fix driver nameJean-Christophe PLAGNIOL-VILLARD2012-04-232-1/+1
| | | | | | | | | | | | | | | | use the usb_driver name otherwise we will have a NULL driver entry in devinfo Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | Allow use platform_ide driver without ALT-registersAlexander Shiyan2012-04-181-4/+10
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2012-04-173-31/+55
|\ \
| * | mtd: docg3 fixes backport from Linux kernelRobert Jarzmik2012-04-171-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport 2 fixes back from Linux kernel (title verbatim from Linux kernel log) : - docg3 fix in-middle of blocks reads - docg3 reduce read alignment burden These 2 enable partial reads from the MTD (ie. read only the 111 first bytes), which enable linux kernel booting or UBIFS from barebox. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci poweron ramp delayRobert Jarzmik2012-04-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per MMC spec, once power has been applied to an SD card, the card can take as much as 250ms to complete its power-up cycle, and become responsive to CMD0. When this delay was not in place, activating the SD card in the env init failed sometimes. With it, no more failure are observed. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci fix R1b responsesRobert Jarzmik2012-04-171-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pxamci driver was not waiting for the BUSY line to be deasserted. This was specifically breaking the CMD12 at the end of block multiple writes, when the SD card had not time enough to commit the last write. Fix it by waiting for PRG_DONE bit (which is actually the busy signal end condition). Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci fix CMD12 handlingRobert Jarzmik2012-04-172-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pxamci requires a bit to be set in the command control register when a CMD12 is sent. Set it, as required in the PXA Developer Manuel, chapter "Stop Data Transmission Command (CMD12 or IO/Abort with CMD52)". Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci fix response typeRobert Jarzmik2012-04-171-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | When preparing a command, apply a mask so that only the command part will be used for the switch case. This will be more robust for future command response types. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci change clocks handlingRobert Jarzmik2012-04-171-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix clock handling accordingly to PXA manual : - enable the MMC controller clock once and for all - only disable the MMC bus clock when changing the MMCLK by adjusting the clock ratio, else let the controller and SD card shut down the clock as the see fit. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci define timeoutsRobert Jarzmik2012-04-171-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using hard encoded values in the code, use defines to setup the timeouts of reads/writes/commands. Fix the read timeout as defined in the PXA Developer Manual. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-165-5/+5
| | | | | | | | | | | | | | | | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | device: make singular devices possibleSascha Hauer2012-04-151-2/+5
| |/ |/| | | | | | | | | | | | | | | Currently all devices have an id meaning that all devicenames end with a number. This patch adds a DEVICE_ID_SINGLE to make it ppossible to register a device without an id assigned to it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | USB ehci: speed up initializationSascha Hauer2012-04-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is based on the following U-Boot commit: commit 5f4b4f2fed3ab8590c8c06b78642f8c1467acacf Author: Vincent Palatin <vpalatin@chromium.org> Date: Mon Dec 5 14:52:22 2011 -0800 ehci: speed up initialization According to EHCI specification v1.0, the controller should stabilize the power on a port at most 20 ms after the port power bit transition. So, we put this setting in the virtual descriptor corresponding field, (bPwrOn2PwrGood = 10 => 10 x 2ms = 20ms), this saves about 500ms at each controller initialization/enumeration. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | USB ehci: make cache handling simplerSascha Hauer2012-04-121-66/+30
| | | | | | | | | | | | | | | | | | | | | | for chache handling the ehci driver iterates over the hardware lists of QHs/TDs. As we have a fixed number of maximum entries in this lists we can allocate them as arrays and and clean/invalidate the arrays instead which is much simpler. While at it, move the allocation to ehci_probe so that we do not lose memory each time ehci_init is called. Also, use memalign to allocate the QHs/TDs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Final switch to use combined driver mc13xxxAlexander Shiyan2012-04-113-242/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add support for MC13783 to mc13xxx driverAlexander Shiyan2012-04-111-0/+10
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Rename definition MC13892_REG_IDENTIFICATION to MC13XXX_Alexander Shiyan2012-04-111-1/+1
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Detect MC13892 chip ID in mc13xxx_query_revision()Alexander Shiyan2012-04-111-17/+26
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Rename remainings structs and functions from mc13892_ to mc13xxx_Alexander Shiyan2012-04-111-33/+33
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Make mc13892_revision enum as defineAlexander Shiyan2012-04-111-3/+3
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>