summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
...
| | * usbnet: remove unused dev member in struct usbnetSascha Hauer2010-06-242-10/+11
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * imxfb: do not enable framebuffer on startupSascha Hauer2010-06-241-2/+0
| | | | | | | | | | | | | | | | | | | | | The board code or startup script should enable it when it actually wants to. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * imxfb: Add board specific hook to enable displaySascha Hauer2010-06-241-0/+7
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ehci: remove unused codeSascha Hauer2010-06-242-9/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ehci: Force a ehci_halt before trying to resetSascha Hauer2010-06-241-0/+21
| | | | | | | | | | | | | | | | | | | | | As observed on OMAP some controllers do not like being resetted when running. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ehci: use is_timeout for timeout instead of udelay counterSascha Hauer2010-06-241-5/+7
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | usb: Check return value of host controller initSascha Hauer2010-06-241-1/+4
| | | | | | | | | | | | | | | | | | And do not scan the bus if initialization failed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ehci: Handle hub port reset properlySascha Hauer2010-06-241-0/+18
| | | | | | | | | | | | | | | | | | This has been copied from the U-Boot ehci driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ehci: Make has_tt configurable via platform dataSascha Hauer2010-06-241-6/+12
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'net' into nextSascha Hauer2010-06-1716-35/+38
| |\
| | * rework device parametersSascha Hauer2010-06-173-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * network drivers: call net_receive directly instead of NetReceiveSascha Hauer2010-06-1713-14/+14
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c: add driver for the MC34704 PMICBaruch Siach2010-06-103-0/+144
| |/ | | | | | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nor: don't use sector for ERASE_STARTWolfram Sang2010-06-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to ac2d4d71ba493fd638ae0bf1a530a51c76d3c53d, copy the behaviour from Linux which does: cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); Notice the third parameter which is simply chip->start. Needed for some SST-flashes. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i2c: fix adapter_list manipulationBaruch Siach2010-06-171-1/+1
|/ | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: implement i2c_get_adapter()Sascha Hauer2010-05-261-1/+23
| | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-imx: change log level for No ACKEric Bénard2010-05-261-1/+1
| | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX25 : add Framebuffer supportEric Benard2010-05-172-3/+20
| | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fsl_udc: make it work with MMU onSascha Hauer2010-05-031-5/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash: use flash_write_word instead of reimplementing it againUwe Kleine-König2010-05-031-18/+1
| | | | | | | | | While at it remove some unused code and an unbalanced enable_interrupts(). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nor: Don't use the sector for the unlock sequenceWolfram Sang2010-05-031-8/+8
| | | | | | | | | | | | | | | Copy the behaviour from Linux which does: cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); ... (Notice the third parameter which is simply chip->start). Solves erase problems with SST flashes. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "nand_imx: Speed up sequential read"Sascha Hauer2010-05-031-47/+13
| | | | | | | This breaks at least on v1 type controllers with 2k pages. Lets revert it for now and rework it. This reverts commit d5578b81799a61eecca90152a3a1c392caab3638.
* fix miiphy allocJan Weitzel2010-04-141-4/+4
| | | | | | | | if fec was allocated using malloc. if fec->miiphy->dev->driver != 0 miiphy_probe is not called Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2010-04-066-23/+81
|\
| * i.MX21: support framebufferIvo Clarysse2010-04-021-0/+9
| | | | | | | | | | | | | | | | This patch allows using the i.MX (LCDC) framebuffer driver on boards using an i.MX21 SoC. Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * netx eth driver: remove local definition of ARRAY_SIZESascha Hauer2010-03-301-2/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * pass arguments to dma_* as unsigned long as the kernel doesSascha Hauer2010-03-303-4/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * imx_nand: use memcpy for copying from/to bufferSascha Hauer2010-03-301-2/+2
| | | | | | | | | | | | | | | | We do not need to use memcpy32 in read_buf/write_buf because in these functions we only access SDRAM and not the internal SRAM buffer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand_imx: Speed up sequential readSascha Hauer2010-03-301-13/+47
| | | | | | | | | | | | | | | | When reading a page from nand prefetch the next page afterwards to keep the controller busy. This way we can improve sequential reading from NAND which is the common case for barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand_imx: use optimized memcpySascha Hauer2010-03-301-2/+17
| | | | | | | | | | | | | | | | | | | | The internal SRAM buffer of the i.MX NAND controller does not allow byte accesses. We use the memcpy32 function to handle this. If we have assembler optimized string functions we can do better because they won't do byte accesses when source and target are word aligned. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand_imx: clear INT_MSK to fix i.MX21 nand bootSascha Hauer2010-03-311-2/+2
|/ | | | | | | | For some weird reason this fixes nand boot on i.MX21. Since interrupts are globally disabled it doesn't hurt on other SoCs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make some help comments less confusingJuergen Beisert2010-03-181-2/+4
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'nor' into nextSascha Hauer2010-02-187-2118/+1196
|\
| * cfi_flash: move include/cfi_flash.c next to driverSascha Hauer2010-02-084-3/+657
| | | | | | | | | | | | | | | | This file has no useful things for others than the driver, so move it next to the driver and remove the corresponding include from other files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfi_flash: remove old driver and switch to new oneSascha Hauer2010-02-086-2046/+515
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfi_flash_new: make code more readable, return is not a functionSascha Hauer2010-02-081-4/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfi_flash_new: generate flash erase dots in common functionSascha Hauer2010-02-083-16/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfi_flash_new: Safe indention level by bailing out earlier in error caseSascha Hauer2010-02-081-21/+24
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfi_flash_new: Fix Intel chipsSascha Hauer2010-02-081-39/+3
| | | | | | | | | | | | | | There was some mixup when to to a full status check and when to do a status check only. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | drivers/video/Makefile: cleanup proper indentionMarc Kleine-Budde2010-02-161-2/+3
| | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | Fix compile time errors when DEBUG is definedJuergen Beisert2010-02-121-2/+2
|/ | | | | | | | If the DEBUG macro is defined the compiler complains about a missing 'ipu_base' variable. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: dump_xxx() cleanupMatthias Kaehlcke2010-02-031-27/+27
| | | | | | | | ep93xx eth driver dump_xxx() functions: Use %p to print pointer values, remove unnecessary parentheses and declare as static Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: Remove unnecessary parentheses in constant definitionsMatthias Kaehlcke2010-02-031-2/+2
| | | | | | | | ep93xx eth driver: Remove unnecessary parentheses in definition of the constants MII_ADDRESS_MAX and MII_REGISTER_MAX Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: Reorder functions to eliminate need for prototypesMatthias Kaehlcke2010-02-021-121/+117
| | | | | | | | ep93xx eth driver: Define ep93xx_eth_send_packet() and ep93xx_eth_rcv_packet() before ep93xx_eth_probe(), and eliminate their prototype declarations Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: Fix dump_xxx_queue() parameter listMatthias Kaehlcke2010-02-021-16/+16
| | | | | | | | ep93xx eth driver: Add missing parameter to dump_rx_status_queue(), dump_tx_descriptor_queue() and dump_tx_status_queue() Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu'Sascha Hauer2010-02-014-4/+4
|\
| * remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-014-4/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | cfi_flash: fix alignment problemMarc Kleine-Budde2010-02-011-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a alignment problem which may show during this scenario: - 32 or 64 attached NOR flash - flashing an image directly from network to the nor flash The involved network driver is "smc9111.c". The data that comes from the network stack and should be written into the flash isn't 32 bit alligned (at least with this network driver). This is probably due to the 48 bit wide ethernet addresses. However the "cfi_flash.c" driver doesn't handle this situation, and accesses the not-alligned address with a 32 bit pointer. This patch fixes the problem by reducing the access width if an alligment problem between source and destination is found. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | smc91111: fix odering of mac address read from EEPROMMarc Kleine-Budde2010-02-011-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On my little endian PXA270, the ethernet address is byte swapped: correct ethernet address: 00:50:c2:80:a7:bd broken ethernet address: 50:00:80:c2:bd:a7 The correct value is what the sticker on the baoard and the linux driver says. This patch fixes the problem by reading the ethaddr byte-wise from the eeprom. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'next'Sascha Hauer2010-02-0119-40/+2031
|\ \