summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* cfi flash: fix flash_make_cmd for big endian accessSascha Hauer2011-09-231-19/+5
| | | | | | | | | | | | | | This is broken on big endian systems since: 943b271 cfi_flash: support of u32 cmd I looked over it and I *think* that the function was correct for both big and little endian systems before this patch. To support u32 cmd we only have to change the data type of the command from u8 to u32. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Teresa Gámez <t.gamez@phytec.de>
* cfi flash: use cpu native accessorsSascha Hauer2011-09-231-6/+6
| | | | | | So that the driver can work on big endian systems again Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/base: fix wrong variable typeSascha Hauer2011-09-231-1/+1
| | | | | | | | Introduced with commit: 808ec31 resource: introduce add_generic_device_res to add multiple resource Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce io.hSascha Hauer2011-09-2255-55/+55
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX NAND: pass second base address as resourceSascha Hauer2011-09-211-6/+15
| | | | | | | | The nand controller on i.MX51/53 uses two base addresses. Instead of hardcode the second address use the new shiny resources two specify it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx25: imx_spi: support CSPI v0.7 as found on i.MX25Paul Fertser2011-09-212-0/+116
| | | | | | | | | | Based on the Linux driver. Tested with m25p80 with CS in GPIO mode. Clock setting support is ad-hoc as the corresponding mach is not using the generic clock infrastructure. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add ohci supportJean-Christophe PLAGNIOL-VILLARD2011-09-202-0/+99
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* initial ohci supportSascha Hauer2011-09-204-0/+2288
| | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: honour timeout fieldsSascha Hauer2011-09-202-15/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb/core: make print dev like linux lsusbJean-Christophe PLAGNIOL-VILLARD2011-09-201-5/+6
| | | | | | | | | | and busnum start at 1 as this Bus 001 Device 002: ID 0b95:7720 AX88772 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: nand switch ecc base to resourceJean-Christophe PLAGNIOL-VILLARD2011-09-201-4/+4
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* resource: introduce add_generic_device_res to add multiple resourceJean-Christophe PLAGNIOL-VILLARD2011-09-201-32/+35
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ehci-hcd.c: handle EHCI_HAS_TT in ehci_reset() during startupAntony Pavlov2011-09-191-4/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add atmel-spi driverHubert Feurstein2011-09-144-0/+494
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add omap_hsmmc platform data.Juergen Kilb2011-09-121-1/+9
| | | | | | | | Add platform data to specify maximum frequency of hsmmc interface which can be restricted due to external level shifters. Signed-off-by: Juergen Kilb <J.Kilb@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* atmel_mci: handle clk_get error correctlyHubert Feurstein2011-09-121-2/+3
| | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: handle clk_get errorHubert Feurstein2011-09-121-0/+6
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: whitespace cleanupHubert Feurstein2011-09-121-6/+6
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx_spi: rework transfer according to the API, fix compatibility with ↵Paul Fertser2011-09-121-11/+44
| | | | | | | | | | spi_write_then_read() This code was tested barely with m25p80 driver, reading jedec id and some data from the chip worked fine. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash: support of u32 cmdTeresa Gámez2011-08-264-18/+38
| | | | | | | | | | | | Some NOR flash chips have commands with length greater than the maximum value size of uchar. Based on an U-Boot Patch by Vasiliy Leoenenko <vasiliy.leonenko@mail.ru> Only tested with little endian on an intel cfi_flash. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nor: Add SPI flash driverFranck Jullien2011-08-244-5/+945
| | | | | | | | | This patch adds the m25p80 driver. It has been ported from Linux. MTD code has been removed. It has been tested with a m25p40 chip and the Altera SPI master driver. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nios2: Add Altera SPI master driverFranck Jullien2011-08-243-0/+233
| | | | | Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devinfo: beautify outputSascha Hauer2011-08-171-13/+14
| | | | | | | Files associated to a device showed up in a long list. Instead, print them in seperate lines and also show offset/size information Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: make the spi devices children of the parent busSascha Hauer2011-08-171-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: parent fixupsSascha Hauer2011-08-175-1/+8
| | | | | | | Make the mci host a child of the hardware device and the disk a child of the mci host. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net mii: add a parent pointer to miidevs and set it to the hardware deviceSascha Hauer2011-08-1512-0/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-1512-0/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: embed mci_dev into mci_host instead of allocating it seperatelySascha Hauer2011-08-151-3/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci mxs: fix line endingsSascha Hauer2011-08-151-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net fec_mpc5200: fix lineendingsSascha Hauer2011-08-151-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/base: initialize active listSascha Hauer2011-08-151-0/+1
| | | | | | | Otherwise, when a non active device is unregistered, we call list_del on an unitialized list which oopses. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* disk_drive: fix x86 supportJean-Christophe PLAGNIOL-VILLARD2011-08-151-3/+3
| | | | | | | switch to resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm_dcc: fix missing switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-101-1/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: swtich to clkdevJean-Christophe PLAGNIOL-VILLARD2011-08-101-1/+1
| | | | | | | | | | | | | | this will also fix the clock support as we now switch to allocated generic device as we can need to associate the clock and the device but the driver is probe before the association we also change the atmel serial name to "atmel_usart" to simplify sharing with linux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial_ns16550: drop the non working checkJean-Christophe PLAGNIOL-VILLARD2011-08-041-3/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pass size to dma_free_coherentSascha Hauer2011-08-011-1/+1
| | | | | | We'll need it later once we remap dma memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: introduce arm_add_mem_device to register dram deviceJean-Christophe PLAGNIOL-VILLARD2011-08-011-0/+15
| | | | | | this will automaticaly register the device to armlinux_add_dram Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* driver: remove map_baseJean-Christophe PLAGNIOL-VILLARD2011-08-011-20/+0
| | | | | | | as now all the drivers and board have been switch to resource whe can drop map_base and size from device_d Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ns16550: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-011-37/+89
| | | | | | | use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mci-core: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-301-8/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ata: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-301-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ns16550: if not specific f_caps defined use default stdin, stdout, stderrJean-Christophe PLAGNIOL-VILLARD2011-07-301-1/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fsl_udc: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-301-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: convert missing map_baseJean-Christophe PLAGNIOL-VILLARD2011-07-301-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fb: switch to "struct resource"Jean-Christophe PLAGNIOL-VILLARD2011-07-303-14/+20
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* resource: introduce add_usb_ehci_device to register echi deviceJean-Christophe PLAGNIOL-VILLARD2011-07-292-10/+33
| | | | | | | | | pass the hccr and hcor register base via resource instroduce add_generic_usb_echi_device with hccr = base + 0x100 and hcor = base + 0x140 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* dm9000: introduce add_dm9000_device to register dm9000 deviceJean-Christophe PLAGNIOL-VILLARD2011-07-292-5/+55
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* dm9000: replace DM9000_WIDTH_8/16/32 by IORESOURCE_MEM_8/16/32BITJean-Christophe PLAGNIOL-VILLARD2011-07-291-6/+6
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* devinfo: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-291-3/+13
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* generic_memmap_ro/rw: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-291-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>