summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* i.MX serial: sparse fixesSascha Hauer2010-10-211-42/+47
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: sparse fixesSascha Hauer2010-10-212-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Adapt the i.MX23 MCI driver to the v2 i.MX23 patch seriesJuergen Beisert2010-10-211-5/+5
| | | | | | | | | The i.MX23 v2 architecture patch series was sligthly modified to easify the i.MX28 architecture addition later on. So, we need now an index to query the SSP clock frequency. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make the clock calculation easier to read and correctJuergen Beisert2010-10-211-7/+7
| | | | | | | | | | | Due to a wrong rounding while calculating the clock divider the requested clock of 25 MHz resulted into a 48 MHz clock. With this patch a clock frequency below or equal the requested one will be set. By using 'div' and 'rate' as vars, its also easier to check against the data sheet. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fsl_udc: fix warningEric Bénard2010-10-211-1/+2
| | | | | | | | | | | | this patch fix the following warning : drivers/usb/gadget/fsl_udc.c: In function 'done': drivers/usb/gadget/fsl_udc.c:566: warning: passing argument 1 of 'dma_inv_range' makes integer from pointer without a cast arch/arm/include/asm/mmu.h:24: note: expected 'long unsigned int' but argument is of type 'void *' drivers/usb/gadget/fsl_udc.c:566: warning: passing argument 2 of 'dma_inv_range' makes integer from pointer without a cast arch/arm/include/asm/mmu.h:24: note: expected 'long unsigned int' but argument is of type 'void *' Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* epautoconf: fix compile errorEric Bénard2010-10-141-0/+1
| | | | | | | | | | | | | | this patch fix the following error : CC drivers/usb/gadget/epautoconf.o drivers/usb/gadget/epautoconf.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unsigned' drivers/usb/gadget/epautoconf.c: In function 'ep_matches': drivers/usb/gadget/epautoconf.c:168: error: 'epnum' undeclared (first use in this function) drivers/usb/gadget/epautoconf.c:168: error: (Each undeclared identifier is reported only once drivers/usb/gadget/epautoconf.c:168: error: for each function it appears in.) drivers/usb/gadget/epautoconf.c: In function 'usb_ep_autoconfig_reset': drivers/usb/gadget/epautoconf.c:304: error: 'epnum' undeclared (first use in this function) Signed-off-by: Eric Bénard <eric@eukrea.com>
* mci-core: add more tested SD CardsEric Bénard2010-10-141-0/+3
| | | | | | | | note : - Transcend 16GiB fails (no log) - Micron 8GiB eMMC fails (hangs after : Detecting a 4.0 revision card) Signed-off-by: Eric Bénard <eric@eukrea.com>
* Merge branch 'mx51' into nextSascha Hauer2010-10-1224-290/+1370
|\ | | | | | | | | | | | | Conflicts: arch/arm/Makefile Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: mark 'old Canon SD 16 MiB' as workingJuergen Beisert2010-10-111-1/+1
| | | | | | | | | | | | | | This card is working since 'mci: handle SD cards < 2.0 correctly' Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Jürgen Beisert <jbe@pengutronix.de>
| * imx_serial: Add mx51 supportSascha Hauer2010-10-111-1/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: align write buffer if necessarySascha Hauer2010-10-111-1/+15
| | | | | | | | | | | | | | | | | | | | Most SD controllers need some kind of alignment for writing blocks. Instead of coding this in every driver, align write blocks to a 4 byte alignment in the mci layer. For DMA accesses we may need bigger alignment, but let's solve this problem when we have it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: handle SD cards < 2.0 correctlySascha Hauer2010-10-111-17/+7
| | | | | | | | | | | | | | | | With SD cards older than 2.0 the sd_send_if_cond() fails. Do not assume it's an MMC card in this case. Instead, assume it's a MMC card if sd_send_op_cond() fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mfd mc13892: support reading the revisionSascha Hauer2010-10-111-0/+62
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mfd mc13892: Add spi supportSascha Hauer2010-10-112-10/+111
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * move include files for mfd drivers to include/mfdSascha Hauer2010-10-116-6/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Move mfd drivers to drivers/mfdSascha Hauer2010-10-1114-28/+36
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi i.MX: Add i.MX51 supportSascha Hauer2010-10-112-8/+171
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi i.MX: redirect functions to version specific functionsSascha Hauer2010-10-111-10/+62
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi i.MX: add spi version namespace to register definesSascha Hauer2010-10-111-58/+58
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: print error code on failureSascha Hauer2010-10-111-4/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: Add i.MX esdhc supportSascha Hauer2010-10-114-0/+690
| | | | | | | | | | | | | | | | | | This adds a driver for the esdhc controller found on Freescale i.MX25/35/51 SoCs. This code is based on the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add the driver for the i.MX23 debug UARTJuergen Beisert2010-10-113-0/+208
|/ | | | | | | The i.MX23 comes with a special UART dedicated for debugging purposes. This one is mostly used for the console the user can reach. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* mci: Add i.MX27/31 driverSascha Hauer2010-10-113-0/+528
| | | | | | Add i.MX27/31 driver Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add S3C2440 MCI card supportJuergen Beisert2010-10-113-0/+825
| | | | | | | | | | Adding MCI card support for S3C2440 CPUs. This is for reference only, as there is currently no user in the barebox tree. Maybe one with access to the A9M2440 development kit can check it on his/her system. Checked here with my own S3C2440 based system which is not in the barebox tree. Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add i.MX23 MCI card supportJuergen Beisert2010-10-113-0/+707
| | | | | | | | | Adding MCI card support for STM378x/i.MX23 CPUs. This is for reference only, as this architecture is currently not part of barebox (but will coming soon). Its tested on the i.MX23 based ChumbyOne. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MCI card support to bareboxJuergen Beisert2010-10-115-0/+1366
| | | | | | | This adds the basic framework to handle MCI cards in barebox. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Don't try to guess the size of a disk if its size value is already givenJuergen Beisert2010-10-111-9/+18
| | | | | | | | | | | | | | | | | Guessing the size of an attached harddisk (access via x86 BIOS) was needed due to the fact, barebox can't query this information from the BIOS easily. But with the SD/MMC cards, there will be a second user of the generic disk handling routines. And with this media it is very easy to know its size. This patch provides a workaround to keep the guessing feature if the size of the registered disk is 0. If it is not 0, the given value will be used instead. Note: This is in preparation to add MCI card support, which can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Don't use a sector buffer on stackJuergen Beisert2010-10-111-5/+12
| | | | | | | | | | | | | | | Using a temp. buffer for a disk sector on the stack, seems not work. Doing so lets the system run crazy (the stack seems to be destroyd). Don't know the correct stack handling on ARM, but (IMHO) I also can exclude any writing across the buffer boundaries. Using a temp. buffer via malloc() runs also on ARM. Note: This patch was required to add MCI card support, which can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make the disk driver less noisyJuergen Beisert2010-10-111-1/+2
| | | | | | | | | | | | In real life this output is only a "nice to have", but most of the time its useless and confusing. So, make it a debug feature for the interested developer. Note: This is in preparation to add MCI card support, which mostly come with a partition table and can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x-functions do not return in case of failure.Juergen Beisert2010-10-111-4/+0
| | | | | | | | Remove error handling, because in case of failure the xzalloc() function does not return. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-imx: wait for STOP before disabling controllerMarc Reilly2010-10-011-5/+5
| | | | | | | | | | | Makes sure that the STOP condition is transmitted before the I2C controller is disabled. This fixes a problem where writing to an external EEPROM was not working because the EEPROM waits until the STOP before initiating the write internally. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-ipu-fb: set default bits per pixel at 16 for mx3Jean-Christophe PLAGNIOL-VILLARD2010-09-271-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netx eth: Fix compilationSascha Hauer2010-09-201-4/+4
| | | | | | Also, replace __FUNCTION__ with __func__ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx net driver: Fix compilationSascha Hauer2010-09-201-4/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_mpc5200: Fix compilationSascha Hauer2010-09-201-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* twl4030: Fix compiler warningsSascha Hauer2010-09-201-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: use id as -1 for auto assigned idJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+1
| | | | | | | | before if you specify id = 0 the next available id will be taken otherwise fail if already registered now as in linux we use -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: move busses to drivers/i2c/bussesJean-Christophe PLAGNIOL-VILLARD2010-09-206-11/+19
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* arm: move clkdev to drivers/clkJean-Christophe PLAGNIOL-VILLARD2010-09-205-0/+176
| | | | | | | | | | | | | as refer in this patch "arm & sh: factorised duplicated clkdev.c" factorise some generic infrastructure to assist looking up struct clks for the ARM & SH architecture. as the code is identical at 99% in linux move it also as preparing for the SH adding Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* amba-pl011: probe fail if we can't get the clockJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* i2c rename CONFIG_DRIVER_I2C_xx to CONFIG_I2C_xxJean-Christophe PLAGNIOL-VILLARD2010-09-172-14/+14
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* i2c: fix wrong comment and symbol export for i2c_add_numbered_adapter()Wolfram Sang2010-09-161-14/+12
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* module: move EXPORT_SYMBOL_GPL define to module.hJean-Christophe PLAGNIOL-VILLARD2010-08-301-1/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-2718-228/+211
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: introduce HAS_MACB configurationJean-Christophe PLAGNIOL-VILLARD2010-08-231-1/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* dm9000: allow to specify that no srom is presentJean-Christophe PLAGNIOL-VILLARD2010-08-231-1/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* omap: nand remove unnecessary conditionMichael Grzeschik2010-08-181-2/+1
| | | | | Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: add support for IIM stored mac addressBaruch Siach2010-08-171-2/+2
| | | | | | | The mac address information is taken from the imx_iim driver if it's present. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap nand: bugfix configure ecc orderMichael Grzeschik2010-08-061-21/+21
| | | | | | | | | This repairs a bug which came with patch "0cb00c1 omap nand: cleanup" We first have to set ecc.layout before we can use it and should do the nand_scan_tail after we set the ecc.mode. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ehci: add omap supportMichael Grzeschik2010-08-063-0/+265
| | | | | | | with cm-regbits-34xx.h and codebase from linux kernel Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>