summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* dma: apbh: check for errors when resetting ip coreWolfram Sang2012-10-311-1/+3
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net fec: connect phy at probe timeSascha Hauer2012-10-301-13/+30
| | | | | | | | | | | | Several i.MX boards (all i.MX6 boards) need to do some adjustments to phy registers. If barebox itself does not use network, networking won't work in the kernel if the kernel does not have the fixups. Connect the phy at probe time so that these tweaks are done during probe so that the kernel works without phy register tweaks. Also this has the effect that the phy device is present and introspectable without doing fake network transfers beforehand. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: Check for NULL pointer in of_find_propertySascha Hauer2012-10-301-0/+3
| | | | | | | | The console layer calls of_device_is_stdout_path for a new console. When we are booting without devicetree then of_chosen is NULL which makes barebox crash. Check for a NULL pointer in of_find_property to prevent this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* misc JTAG: include fixesSascha Hauer2012-10-261-3/+1
| | | | | | | common.h should come first, other include files implicitely depend on it. Also, remove unused fs.h and remove commented line. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of gpio: Build gpio helper only when gpiolib is selectedSascha Hauer2012-10-261-1/+1
| | | | | | Otherwise the functions needed by the helper won't be available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd nand i.MX: fix compilation for unsupported SoCSascha Hauer2012-10-261-0/+3
| | | | | | | Add a default case when all if(nfc_is_*) else if() return false to prevent a compiler warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd mxs nand: select NAND_BBTSascha Hauer2012-10-261-0/+1
| | | | | | The driver won't compile without it, so select it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* misc JTAG: Let Jtag driver depend on GENERIC_GPIOSascha Hauer2012-10-261-0/+1
| | | | | | It uses the gpio functions, so let it depend on GENERIC_GPIO. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd stmpe: Add missing semicolons at end of EXPORT_SYMBOLSascha Hauer2012-10-261-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: fix mtdraw_write/mtdraw_erase argumentsSascha Hauer2012-10-261-2/+2
| | | | | | | For the !CONFIG_MTD_WRITE case they still have ulong as offset argument. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: ubi: fix typos in comment of build.cWolfram Sang2012-10-251-1/+1
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: ubi: cdev: fix build warning for 64-bitWolfram Sang2012-10-231-1/+1
| | | | | | | | | | Got this when compiling sandbox on a 64-bit system: drivers/mtd/ubi/cdev.c: In function ‘ubi_volume_cdev_read’: drivers/mtd/ubi/cdev.c:26:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat] Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net gianfar: remove unused variableSascha Hauer2012-10-171-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* designware: fix 100mps phy supportJean-Christophe PLAGNIOL-VILLARD2012-10-151-0/+10
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd-core: add writesize in MEMGETINFO ioctlAlexander Aring2012-10-131-0/+1
| | | | | | | Add writesize in MEMGETINFO ioctl. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* platform driver: Drop check for resource conflictsSascha Hauer2012-10-131-12/+0
| | | | | | | | | | | | | | | The check is wrong since it would have to check whether the new iomem region overlaps with an existing region. Checking for the base address only is not enough. Currently this is not possible because every device conflicts with the top iomem region which covers the whole address space. This at least fixes the regression that devices whose memory region begins at 0x0 can no longer be succesfully registered. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Alexander Shiyan <shc_work@mail.ru> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'pu/misc-fixes'Sascha Hauer2012-10-072-16/+16
|\
| * driver: make get_bus_by_name staticSascha Hauer2012-10-041-1/+1
| | | | | | | | | | | | We have no prototype for it, so it should be static. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * driver: move dev_get_drvdata out of CONFIG_CMD_DEVINFOSascha Hauer2012-10-041-15/+15
| | | | | | | | | | | | | | dev_get_drvdata accidently is inside #ifdef CONFIG_CMD_DEVINFO. Move it out of there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | davinci_emac: fix comment for the _send functionAntony Pavlov2012-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The _send function should not return the length of the transmitted packet. See also commit 76c4c9e48ffbe35490e1f7d3abcedc04934ac302 Author: Jan Luebbe <jlu@pengutronix.de> Date: Fri Sep 28 18:17:44 2012 +0200 davinci_emac: return 0 on successful transmit Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i2c i.MX: fixup clock support for powerpcSascha Hauer2012-10-041-14/+1
| | | | | | | | | | | | | | This produced a warning on powerpc since the conversion to common clk support on i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | gui: move gui file to include/gui and lib/guiJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net/designware: fix phylib supportJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | /opt/work/barebox/drivers/net/designware.c: In function 'dwc_update_linkspeed': /opt/work/barebox/drivers/net/designware.c:234:9: error: 'mac_p' undeclared (first use in this function) /opt/work/barebox/drivers/net/designware.c:234:9: note: each undeclared identifier is reported only once for each function it appears in /opt/work/barebox/drivers/net/designware.c: In function 'dwc_ether_open': /opt/work/barebox/drivers/net/designware.c:254:6: error: too few arguments to function 'phy_device_connect' /opt/work/barebox/include/linux/phy.h:252:5: note: declared here /opt/work/barebox/drivers/net/designware.c: At top level: /opt/work/barebox/drivers/net/designware.c:226:13: warning: 'dwc_update_linkspeed' defined but not used Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net/designware: update version display to print user ID and Synosys IDJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+10
| | | | | | | | | | | | | | So we can check it with the kernel one Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | amba/bus: add missing bus_registerJean-Christophe PLAGNIOL-VILLARD2012-10-041-0/+7
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net mdio_bus: Add missing bus_registerSascha Hauer2012-10-041-2/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx-clk'Sascha Hauer2012-10-0417-26/+708
|\ \
| * | ARM i.MX: Remove old clock supportSascha Hauer2012-10-044-4/+0
| | | | | | | | | | | | | | | | | | | | | The old clock support is now unused. Remove it. The former i.MX clko command is superseeded by generic clock manipulation commands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video i.MX IPU: Switch to clock supportSascha Hauer2012-10-041-2/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video i.MX: Switch to clock supportSascha Hauer2012-10-041-1/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c i.MX: Switch to clock supportSascha Hauer2012-10-041-2/+21
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci i.MX: Switch to clock supportSascha Hauer2012-10-041-3/+12
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci i.MX ESDHC: Switch to clock supportSascha Hauer2012-10-041-3/+12
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | spi i.MX: Switch to clk supportSascha Hauer2012-10-041-2/+19
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | serial i.MX: Switch to clk supportSascha Hauer2012-10-041-5/+20
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net fec: Switch to clk supportSascha Hauer2012-10-042-3/+32
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: initial common clk supportSascha Hauer2012-10-047-1/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds barebox common clk support loosely based on the Kernel common clk support. differences are: - barebox does not need prepare/unprepare - no parent rate propagation for set_rate - struct clk is not really encapsulated from the drivers Along with the clk support we have support for some basic clk building blocks: - clk-fixed - clk-fixed-factor - clk-mux - clk-divider clk-fixed and clk-fixed-factor are completely generic, clk-mux and clk-divider are currently the way i.MX muxes/dividers are implemented. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk clkdev: Add clkdev matching based on physbaseSascha Hauer2012-10-041-0/+55
| |/ | | | | | | | | | | | | | | | | | | | | Most clock/device associations can be done based on the physical base address of the corresponding device. So instead of depending on string matching add an optional possibility to associate a clock lookups with physical addresses. This also has the advantage that the lookups for devicetree based devices can be identical to the platform based devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | devinfo: display device bus nameJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+4
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-0477-99/+111
| | | | | | | | | | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | fb: move add param to bus probeJean-Christophe PLAGNIOL-VILLARD2012-10-041-11/+12
|/ | | | | | so the param add added only of the device successed to register. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/spi'Sascha Hauer2012-10-034-0/+500
|\
| * drivers/spi: add driver for the Multichannel SPI controller found in TI SoCsJan Luebbe2012-09-064-0/+500
| | | | | | | | | | | | | | Also create devices for OMAP3. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/sandbox'Sascha Hauer2012-10-033-0/+106
|\ \ | | | | | | | | | | | | Conflicts: arch/sandbox/mach-sandbox/include/mach/linux.h
| * | sandbox: add sdl video supportJean-Christophe PLAGNIOL-VILLARD2012-09-253-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow speed up the dev on framebuffer. By default the resolution is VGA but this can be changed via cmdline. We use a pthread to Flip the screen every 100ms as we can not detect when barebox update it as barebox simpliy write in a buffer. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-0393-344/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * | | Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1794-347/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mtd'Sascha Hauer2012-10-036-27/+186
|\ \ \ \
| * | | | mtd: nand: extend NAND flash detection to new MLC chipsMarcus Folkesson2012-09-162-19/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the newer MLC devices have a 6-byte ID sequence in which several field definitions differ from older chips in a manner that is not backward compatible. This method is already used in the Linux Kernel. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | drivers/nor/cfi_flash: use IS_ENABLED instead of an ifdefJan Luebbe2012-09-162-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>