summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2007-01-05[PATCH] nand: Fix problem with oobsize calculationStefan Roese
Here the description from Brian Brelsford <Brian_Brelsford@dell.com>: The Hynix part returns a 0x1d in the 4th ID byte. The Samsung part returns a 0x15. In the code fragment below bits [1:0] determine the page size, it is ANDed via "(extid & 0x3)" then shifted out. The next field is also ANDed with 0x3. However this is a one bit field as defined in the Hynix and Samsung parts in the 4th ID byte that determins the oobsize, not a two bit field. It works on Samsung as bits[3:2] are 01. However for the Hynix there is a 11 in these two bits, so the oob size gets messed up. I checked the correct linux code and the suggested fix from Brian is also available in the linux nand mtd driver. Signed-off-by: Stefan Roese <sr@denx.de>
2007-01-04Merge branch 'master' into hpc2roy zang
2006-12-27Fix bug in adaption of Stefano Babic's CFI driver patch.Wolfgang Denk
2006-12-24Merge with /home/wd/git/u-boot/masterWolfgang Denk
2006-12-24Merge with /home/hs/TQ/u-boot-devWolfgang Denk
2006-12-24Fix cfi failure with Spansion Flash (Spansion Flash Devices have a different ↵Stefano Babic
offset to go into CFI mode)
2006-12-21Added support for the TQM8272 board from TQHeiko Schocher
Signed-off-by: Heiko Schocher <hs@denx.de>
2006-12-01Fix the confilcts when merging 'master' into hpc2.roy zang
The conflicts due to a new mpc7448 p3m7448 board is in the main tree. Merge branch 'master' into hpc2 Conflicts: MAKEALL cpu/74xx_7xx/cpu.c cpu/74xx_7xx/cpu_init.c cpu/74xx_7xx/speed.c
2006-12-01Clean up the code according to codestyle:roy zang
(1) remove some C++ comments. (2) remove trailing white space. (3) remove trailing empty line. (4) Indentation by table. (5) remove {} in one line condition. (6) add space before '(' in function call. Remove some weird printf () output. Add necessary comments. Modified Makefile to support building in a separate directory.
2006-11-30Code cleanup.Wolfgang Denk
2006-11-30Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.gitWolfgang Denk
2006-11-29Make fsl-i2c not conflict with SOFT I2CJoakim Tjernlund
Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-29Fix I2C master address initialization.Joakim Tjernlund
Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-28Merge http://www.denx.de/git/u-bootKim Phillips
2006-11-28Eliminate gcc 4 'used uninitialized' warnings in drivers/qe/uccf.cKim Phillips
give initial values for reg_num, shift, p_cmxucr in ucc_set_clk_src since they are passed by reference to ucc_get_cmxucr_reg and assigned.
2006-11-29Solve the copyright conflicts when merging 'master' into hpc2.roy zang
Merge branch 'master' into hpc2 Conflicts: drivers/cfi_flash.c
2006-11-28[PATCH] nand: Fix patch merge problemStefan Roese
Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-27Merge with /home/sr/git/u-boot/denx-alpr-merge-testWolfgang Denk
2006-11-27[PATCH] nand_wait() timeout fixesStefan Roese
Two fixes for the nand_wait() function in drivers/nand/nand_base.c: 1. Use correct timeouts. The original timeouts in Linux source are 400ms and 20ms not 40s and 20s 2. Return correct error value in case of timeout. 0 is interpreted as OK. Signed-off-by: Rui Sousa <rui.sousa@laposte.net> Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-27Merge with /home/stefan/git/u-boot/denxStefan Roese
2006-11-13[PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc. [Updated]Stefan Roese
* Adds support for AMD command set Top Boot flash geometry reversal * Adds support for reading JEDEC Manufacturer ID and Device ID * Adds support for displaying command set, manufacturer id and device ids (flinfo) * Makes flinfo output to be consistent when CFG_FLASH_EMPTY_INFO defined * Removes outdated change history (refer to git log instead) Signed-off-by: Tolunay Orkun <listmember@orkun.us> Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-10Merge with /home/stefan/git/u-boot/denxStefan Roese
2006-11-03mpc83xx: Update 83xx to use fsl_i2c.cTimur Tabi
Update the 83xx tree to use I2C support in drivers/fsl_i2c.c. Delete cpu/mpc83xx/i2c.c, include/asm-ppc/i2c.h, and all references to those files. Added multiple I2C bus support to fsl_i2c.c. Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-03mpc83xx: Replace CFG_IMMRBAR with CFG_IMMRTimur Tabi
Replace all instances of CFG_IMMRBAR with CFG_IMMR, so that the 83xx tree matches the other 8xxx trees. Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-03mpc83xx: add QE ethernet supportDave Liu
this patch adds support for the QUICC Engine based UCC gigabit ethernet device.
2006-11-03mpc83xx: Add support for the MPC8349E-mITXTimur Tabi
PREREQUISITE PATCHES: * This patch can only be applied after the following patches have been applied: 1) DNX#2006090742000024 "Add support for multiple I2C buses" 2) DNX#2006090742000033 "Multi-bus I2C implementation of MPC834x" 3) DNX#2006091242000041 "Additional MPC8349 support for multibus i2c" 4) DNX#2006091242000078 "Add support for variable flash memory sizes on 83xx systems" 5) DNX#2006091242000069 "Add support for Errata DDR6 on MPC 834x systems" CHANGELOG: * Add support for the Freescale MPC8349E-mITX reference design platform. The second TSEC (Vitesse 7385 switch) is not supported at this time. Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-03NAND Flash verify across block boundariesNick Spence
This patch addresses a problem when CONFIG_MTD_NAND_VERIFY_WRITE is defined and the write crosses a block boundary. The pointer to the verification buffer (bufstart) is not being updated to reflect the starting of the new block so the verification of the second block fails. CHANGELOG: * Fix NAND FLASH page verification across block boundaries
2006-11-03Added RGMII support to the TSECs and Marvell 881111 PhyNick Spence
Added a phy initialization to adjust the RGMII RX and TX timing Always set the R100 bit in 100 BaseT mode regardless of the TSEC mode Signed-off-by: Nick Spence <nick.spence@freescale.com>
2006-11-02This patch comes from Yuli's posted patch on 8/8/2006roy zang
titled "CFI Driver Little-Endian write Issue". http://sourceforge.net/mailarchive/message.php?msg_id=36311999 If that patch applied, please discard this one. Until now , I do not see his patch is applied. So please apply this one. Signed-off-by: Yuli Barcohen <yuli@arabellasw.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
2006-11-02Tsi108 on chip i2c support.roy zang
The i2c Interface provides a master-only, serial interface that can be used for initializing Tsi108/Tsi109 registers from an EEPROM after a device reset. Signed-off-by: Alexandre Bounine <alexandreb@tundra.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
2006-11-02Tsi108 on chip pci controller support.roy zang
If there is no pci card, the tsi108/109 pci configure read will cause a machine check exception to the processor. PCI error should also be cleared after the read. Signed-off-by: Alexandre Bounine <alexandreb@tundra.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
2006-11-02Tundra tsi108 on chip Ethernet controller support.roy zang
The following is a brief description of the Ethernet controller: The Tsi108/9 Ethernet Controller connects Switch Fabric to two independent Gigabit Ethernet ports,E0 and E1. It uses a single Management interface to manage the two physical connection devices (PHYs). Each Ethernet port has its own statistics monitor that tracks and reports key interface statistics. Each port supports a 256-entry hash table for address filtering. In addition, each port is bridged to the Switch Fabric through a 2-Kbyte transmit FIFO and a 4-Kbyte Receive FIFO. Each Ethernet port also has a pair of internal Ethernet DMA channels to support the transmit and receive data flows. The Ethernet DMA channels use descriptors set up in memory, the memory map of the device, and access via the Switch Fabric. The Ethernet Controller?s DMA arbiter handles arbitration for the Switch Fabric. The Controller also has a register businterface for register accesses and status monitor control. The PMD (Physical Media Device) interface operates in MII, GMII, or TBI modes. The MII mode is used for connecting with 10 or 100 Mbit/s PMDs. The GMII and TBI modes are used to connect with Gigabit PMDs. Internal data flows to and from the Ethernet Controller through the Switch Fabric. Each Ethernet port uses its transmit and receive DMA channels to manage data flows through buffer descriptors that are predefined by the system (the descriptors can exist anywhere in the system memory map). These descriptors are data structures that point to buffers filled with data ready to transmit over Ethernet, or they point to empty buffers ready to receive data from Ethernet. Signed-off-by: Alexandre Bounine <alexandreb@tundra.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
2006-11-02General code modification for mpc7448hpc2 board support.roy zang
1. Add 7447A and 7448 processor support. 2. Add the following flags. CFG_CONFIG_BUS_CLK : If the 74xx bus frequency can be configured dynamically (such as by switch on board), this flag should be set. CFG_EXCEPTION_AFTER_RELOCATE: If an exception occurs after the u-boot relocates to RAM, this flag should be set. CFG_SERIAL_HANG_IN_EXCEPTION: If the print out function will cause the system hang in exception, this flag should be set. There is a design issue for tsi108/109 pci configure read. When pci scan the slots, if there is no pci card, the tsi108/9 will cause a machine check exception for mpc7448 processor. Signed-off-by: Alexandre Bounine <alexandreb@tundra.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
2006-10-28[PATCH] NAND: Partition name support added to NAND subsystemStefan Roese
chpart, nboot and NAND subsystem related commands now accept also partition name to specify offset. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Stefan Roese <sr@denx.de>
2006-10-26Fix TSEC driver (now for real): avoid crashes if PHY is not attachedBen Warren
to a TSEC (e.g. a switch is connected via RMII) or if the PHY is defective/incorrectly configured. Signed-off-by: Ben Warren <bwarren@qstreams.com>
2006-10-24Merge with /home/wd/git/u-boot/masterWolfgang Denk
2006-10-24Add common serial driver for Atmel AT32 and AT91 chipsWolfgang Denk
Patch by Haavard Skinnemoen, 06 Sep 2006 This is a first attempt at creating a common serial driver for Atmel chips. For now, it supports the AT32AP7000 AVR32 chip, but it should be possible to support AT91RM9200 and other ARM-based chips with some minor modifications. There's nothing fundamentally AVR32-specific in this driver, but it does use some features which are currently only defined for the AT32AP CPU port: * pm_get_clock_freq: Obtain the clock frequency of a given domain * gd->console_uart: A "struct device" containing information about register mappings, gpio resources and clocks associated with the UART device. For more information about these features, please see the "AT32AP CPU" patch.
2006-10-20Merge with http://www.jdl.com/software/u-boot-86xx.gitWolfgang Denk
2006-10-20Converted all 85xx boards to use a common FSL I2C driver.Jon Loeliger
Introduced COFIG_FSL_I2C to select the common FSL I2C driver. And removed hard i2c path from a few u-boot.lds scipts too. Minor whitespace cleanups along the way. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-20Add board/cpu specific NAND chip select function to 440 NDFCStefan Roese
Based on idea and implementation from Jeff Mann Patch by Stefan Roese, 20 Oct 2006
2006-10-19Rewrite a series of goto statements as a sequences ofJon Loeliger
conditional expressions instead. Use consistent return code 0/-1 for good/bad indicators. Include one fewer file if the driver isn't used at all. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-19Moved i2c driver out of cpu/mpc86xx/i2c.c into drivers/fsl_i2c.cJon Loeliger
in an effort to begin to unify the umpteen FSL I2C drivers that are all otherwise very similar. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-12Merge branch 'master' of http://www.denx.de/git/u-bootJon Loeliger
2006-10-12Remove unneeded include files and local variable.Jon Loeliger
Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-12Fix spelling; minor code cleanup.Wolfgang Denk
2006-10-11Merge branch 'master' of http://www.denx.de/git/u-bootJon Loeliger
2006-10-10Merge branch 'master' of http://www.denx.de/git/u-bootJon Loeliger
2006-10-10Ran lindent and cleaned up whitespace issues.Jon Loeliger
Format for 80-columns too.
2006-10-10* Several improvements to the new NAND subsystem:Stefan Roese
- JFFS2 related commands implemented in mtd-utils style - Support for bad blocks - Bad block testing commands - NAND lock commands Please take a look at doc/README.nand for more details Patch by Guido Classen, 10 Oct 2006
2006-10-09Move "ar" flags to config.mk to allow for silent "make -s"Wolfgang Denk
Based on patch by Mike Frysinger, 20 Jun 2006