summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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
|\ \
| * \ Merge branch 'for-sha-mx35-3-stack-updates' of ↵Sascha Hauer2010-01-192-39/+136
| |\ \ | | | | | | | | | | | | ssh://git.pengutronix.de/git/mkl/barebox into next
| | * | mc13892: clean up driver interfaceMarc Kleine-Budde2010-01-181-19/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Export mc13892_reg_read, mc13892_reg_write and mc13892_set_bits function instead of exposing the i2c interface. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| | * | mc9sdz60: clean up driver interfaceMarc Kleine-Budde2010-01-181-20/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Export mc9sdz60_reg_read, mc9sdz60_reg_write and mc9sdz60_set_bits function instead of exposing the i2c interface. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * | | I2C : add NS LP3972 PMIC supportEric Benard2010-01-163-0/+114
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add a low level disk drive access driverJuergen Beisert2010-01-143-0/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a low level disk drive communication driver. It uses the real mode BIOS found on most x86 platforms, to read and write sectors. Used by the generic disk driver. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add the main disk driverJuergen Beisert2010-01-143-0/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the generic disk driver. It does not know how to access the drives. Other low level drivers are required for this. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Start to add ATA support to bareboxJuergen Beisert2010-01-144-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the basic files, declarations and folders to bring in ATA support. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add PrimeCell PL010 serial driverMatthias Kaehlcke2010-01-144-1/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added driver for ARM PrimeCell PL010 UART Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add EP93xx ethernet driverMatthias Kaehlcke2010-01-144-0/+829
| | |/ | |/| | | | | | | | | | | | | | | | Added ethernet driver for EP93xx SoCs Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / | Fix nand_imx for i.MX21Ivo Clarysse2010-01-291-5/+25
|/ / | | | | | | | | | | | | | | | | Recent changes to the nand_imx driver broke it for i.MX21 systems; the i.MX21 NAND controller is more akin to the one in i.MX27/i.MX31, than to the one in i.MX25/i.MX35. Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix a data abort with fec_imxEric Benard2010-01-111-1/+1
| | | | | | | | | | | | | | | | | | edev was allocated using malloc. On one board (NOR boot), we met data abort in eth_register (at dev_add_param(dev, &edev->param_ip);). Allocating edev with xzalloc (as in several other drivers) fixed the problem. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>