summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* cfi_flash: Add manufacturer-specific fixupsHaavard Skinnemoen2007-12-171-14/+53
| | | | | | | | | | | | | | | | | | Run fixups based on the JEDEC manufacturer ID independent of the command set ID. This changes current behaviour: Previously, geometry reversal for AMD chips were done based on the command set ID, while they are now done based on the JEDEC manufacturer and device ID. Also add fixup for top-boot Atmel chips. A fixup is needed for AT49BV6416(T) too, but since u-boot currently only reads the low byte of the device ID, there's no way to tell it apart from AT49BV642D, which should not have this fixup. Since AT49BV642D support is necessary to get ATNGW100 board support into mainline, I've commented out the fixup for now. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Add cmdset-specific init functionsHaavard Skinnemoen2007-12-171-63/+111
| | | | | | | | | Move things like reading JEDEC IDs and fixing up geometry reversal into separate functions. The geometry reversal fixup is now performed by altering the qry structure directly, which makes the sector init code slightly cleaner. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Read whole QRY structure in one goHaavard Skinnemoen2007-12-171-86/+90
| | | | | | | | Read out the whole CFI Standard Query structure after successful cfi identification. This allows subsequent code to access this information directly without having to go through flash_read_uchar() and friends. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Use map_physmem() and unmap_physmem()Haavard Skinnemoen2007-12-131-60/+109
| | | | | | | | Use map_physmem() and unmap_physmem() to convert from physical to virtual addresses. This gives the arch a chance to provide an uncached mapping for flash accesses. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Introduce read and write accessorsHaavard Skinnemoen2007-12-131-78/+127
| | | | | | | | | Introduce flash_read{8,16,32,64) and flash_write{8,16,32,64} and use them to access the flash memory. This makes it clearer when the flash is actually being accessed; merely dereferencing a volatile pointer looks just like any other kind of access. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Reorder functions and eliminate extra prototypesHaavard Skinnemoen2007-12-131-687/+656
| | | | | | | | | Reorder the functions in cfi_flash.c so that each function only uses functions that have been defined before it. This allows the static prototype declarations near the top to be eliminated and might allow gcc to do a better job inlining functions. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Make some needlessly global functions staticHaavard Skinnemoen2007-12-131-7/+9
| | | | | | Make functions not declared in any header file static. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* cfi_flash: Break long linesHaavard Skinnemoen2007-12-131-115/+189
| | | | | | | | | This patch tries to keep all lines in the cfi_flash driver below 80 columns. There are a few lines left which don't fit this requirement because I couldn't find any trivial way to break them (i.e. it would take some restructuring, which I intend to do in a later patch.) Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* CFI: synchronize command offsets with Linux CFI driverBartlomiej Sieka2007-12-131-3/+20
| | | | | | Fixes non-working CFI Flash on the Inka4x0 board. Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
* CFI: Coding style cleanupStefan Roese2007-12-081-5/+4
| | | | Signed-off-by: Stefan Roese <sr@denx.de>
* CFI: support JEDEC flash roms in CFI-flash frameworkMichael Schwingen2007-12-083-12/+411
| | | | | | | | | The following patch adds support for non-CFI flash ROMS, by hooking into the CFI flash code and using most of its code, as recently discussed here in the thread "Mixing CFI and non-CFI flashs". Signed-off-by: Michael Schwingen <michael@schwingen.org> Signed-off-by: Stefan Roese <sr@denx.de>
* drivers/mtd : move mtd drivers to drivers/mtdJean-Christophe PLAGNIOL-VILLARD2007-11-2518-9/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/misc : move misc drivers to drivers/miscJean-Christophe PLAGNIOL-VILLARD2007-11-255-11/+48
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/block : move block drivers to drivers/blockJean-Christophe PLAGNIOL-VILLARD2007-11-257-5/+50
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/rtc : move rtc drivers to drivers/rtcJean-Christophe PLAGNIOL-VILLARD2007-11-2524-0/+4693
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/hwmon : move hardware monitor drviers to drivers/hwmonJean-Christophe PLAGNIOL-VILLARD2007-11-258-1/+909
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/input : move input drivers to drivers/inputJean-Christophe PLAGNIOL-VILLARD2007-11-257-9/+48
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/usb : move usb drivers to drivers/usbJean-Christophe PLAGNIOL-VILLARD2007-11-2512-12/+53
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/serial : move serial drivers to drivers/serialJean-Christophe PLAGNIOL-VILLARD2007-11-2513-9/+13
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/net : move net drivers to drivers/netJean-Christophe PLAGNIOL-VILLARD2007-11-2599-34/+32
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/video : move video drivers to drivers/videoJean-Christophe PLAGNIOL-VILLARD2007-11-2513-9/+54
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/pcmcia : move pcmcia drivers to drivers/pcmciaJean-Christophe PLAGNIOL-VILLARD2007-11-248-9/+50
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/pci : move pci drivers to drivers/pciJean-Christophe PLAGNIOL-VILLARD2007-11-248-6/+51
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/i2c : move i2c drivers to drivers/i2cJean-Christophe PLAGNIOL-VILLARD2007-11-206-8/+49
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'origin' into kconfig-for-1.3.1Grant Likely2007-11-208-9/+21
|\
| * Fix build problems with mp2usb boardWolfgang Denk2007-11-191-0/+4
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
| * Fix compiler warnings for ARM systems.Wolfgang Denk2007-11-181-1/+1
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
| * Fix compiler warnings for PPC systems. Update CHANGELOG.Wolfgang Denk2007-11-186-8/+16
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Merge branch 'origin' into kconfig-for-1.3.1Grant Likely2007-11-162-0/+997
|\ \ | |/ | | | | | | | | Conflicts: drivers/Makefile
| * Implement general ULi 526x Ethernet driver support in U-bootRoy Zang2007-11-062-1/+997
| | | | | | | | | | | | | | | | | | | | | | | | This patch implements general ULi 526x Ethernet driver. Until now, it is the only native Ethernet port on MPC8610HPCD board, but it could be used on other boards with ULi 526x Ethernet port as well. Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Signed-off-by: Zhang Wei <wei.zhang@freescale.com> Acked-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Ben Warren <bwarren@qstreams.com>
* | Group PCI and PCMCIA drivers in drivers/MakefileGrant Likely2007-11-151-11/+22
| | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | Group block/flash drivers in drivers/MakefileGrant Likely2007-11-151-9/+13
| | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | Group USB drivers in drivers/MakefileGrant Likely2007-11-151-7/+11
| | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | Group i2c drivers in drivers/MakefileGrant Likely2007-11-151-4/+8
| | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | Group console drivers in drivers/MakefileGrant Likely2007-11-151-20/+24
| | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | Group network drivers in drivers/MakefileGrant Likely2007-11-151-29/+31
| | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | Build: split COBJS value into multiple linesGrant Likely2007-11-153-35/+114
|/ | | | | | | | | This change is in preparation for condtitionial compile support in the build system. By spliting them all into seperate lines now, subsequent patches that change 'COBJS-y += ' into 'COBJS-$(CONFIG_<blah>) += ' will be less invasive and easier to review Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* Trimmed some variables in ne2000.cVlad Lungu2007-11-031-14/+7
| | | | Signed-off-by: Vlad Lungu <vlad@comsys.ro>
* Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk2007-11-025-2/+2
|\
| * Merge branch 'master' of git://www.denx.de/git/u-boot-armWolfgang Denk2007-11-015-2/+2
| |\
| | * Move PL01* serial drivers to drivers/serial and adjust Makefiles.Peter Pearse2007-10-235-2/+2
| | |
* | | Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk2007-11-011-0/+1
|\ \ \ | |/ /
| * | tsec driver should clear RHALT on startupDan Wilson2007-10-191-0/+1
| |/ | | | | | | | | | | | | | | This was causing problems for some people. Signed-off-by: Alain Gravel <agravel@fulcrummicro.com> Signed-off-by: Dan Wilson <dwilson@fulcrummicro.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
* | fsl_pci_init enable COMMAND_MEMORY if inbound windowEd Swarthout2007-10-241-0/+8
| | | | | | | | | | | | | | | | Patch 16e23c3f removed PCSRBAR allocation. But passing zero windows to pciauto_setup_device has the side effect of not getting COMMAND_MEMORY set. Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
* | Coding style: keep lists sorted; update CHANGELOGWolfgang Denk2007-10-231-16/+14
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Fix missing drivers makefile entries ds1722.c mw_eeprom.cJean-Christophe PLAGNIOL-VILLARD2007-10-233-5/+6
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | Minor coding style cleanup; update CHANGELOGWolfgang Denk2007-10-211-8/+2
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Fix NE2000 driver:Vlad Lungu2007-10-212-24/+14
|/ | | | | | | | | | Fixed typo in ne2000.h, thinko re n2k_inb() usage, don't try to do anything in eth_stop() if eth_init() was not called. Simplified RX path in order to avoid timeouts on really really fast NE2000 cards (read: qemu with internal tftp), NetLoop() is clever enough to cope with 1 packet per eth_rx(). Signed-off-by: Vlad Lungu <vlad@comsys.ro>
* Merge branch 'master' of git://www.denx.de/git/u-boot-usbWolfgang Denk2007-10-151-40/+72
|\
| * Bugfix: Use only one PTD for one endpointTimo Ketola2007-10-021-40/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original isp116x-hcd code prepared multiple PTDs for longer than 16 byte transfers for one endpoint. That is unnecessary because the ISP116x is able to split long data from one PTD into multiple transactions based on the buffer size of the endpoint. It also caused serious problems if the endpoint NAKed some of the transactions. In that case ISP116x wouldn't notice that the other PTDs were for the same endpoint and would try the other PTDs possibly out of order. That would break the whole transfer. This patch makes isp116x_submit_job to use one PTD for one transfer. Signed-off-by: Timo Ketola <timo.ketola@exertus.fi> Signed-off-by: Markus Klotzbuecher <mk@denx.de>
OpenPOWER on IntegriCloud