summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* 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>
| * | | | drivers/nor/m25p80: add MTD supportJan Luebbe2012-09-162-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been tested by using UBI with a N25Q128 connected to a TI McSPI controller. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | drivers/nor/m25p80: add JEDEC ID for Micron/Numonyx SPI NOR flashJan Luebbe2012-09-061-0/+3
| | |_|/ | |/| | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mmc'Sascha Hauer2012-10-031-4/+4
|\ \ \ \
| * | | | Fix endianness error on be targetFranck Jullien2012-09-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use be(xx)_to_cpu function to switch endianness intelligently. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/amba'Sascha Hauer2012-10-034-12/+275
|\ \ \ \ \
| * \ \ \ \ Merge tag 'amba_bus' of git://git.jcrosoft.org/barebox into for-next/ambaSascha Hauer2012-09-114-12/+275
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arm: Introduce ARM AMBA bus This allow to detect the amba device and use the right driver for it at runtime. With pl011 amba support (ARM & ST Variant) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * | | | amba-pl011: add st specific initJean-Christophe PLAGNIOL-VILLARD2012-09-111-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is need on the new IP for ux500 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * | | | amba-pl011: switch to amba busJean-Christophe PLAGNIOL-VILLARD2012-09-111-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | switch as the same time the nomadik and versatile arch that use the driver. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * | | | Introduce ARM AMBA busJean-Christophe PLAGNIOL-VILLARD2012-09-113-0/+213
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow to detect the amba device and use the right driver for it at runtime. The code is base on linux 3.5. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | | | | Merge branch 'for-next/net'Sascha Hauer2012-10-0332-717/+2211
|\ \ \ \ \
| * | | | | davinci_emac: get rid of mdio wrapper functionsJan Luebbe2012-09-291-32/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | davinci_emac: adjust to new phylib frameworkJan Luebbe2012-09-292-34/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also pass flags using platform_data and remove useless casts from void*. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | davinci_emac: return 0 on successful transmitJan Luebbe2012-09-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The _send function should not return the length of the transmitted packet. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | net/eth: fix link handlingSascha Hauer2012-09-271-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check link status on eth device open time and then periodically every 5 seconds. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | net: introduce phylibJean-Christophe PLAGNIOL-VILLARD2012-09-2530-715/+1281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapt phylib from linux switch all the driver to it reimplement mii bus This will allow to have - phy drivers - to only connect the phy at then opening of the device - if the phy is not ready or not up fail on open Same behaviour as in linux and will allow to share code and simplify porting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | | | net fec_mpc5200: Use same platform_data as i.MX fec driverSascha Hauer2012-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>