summaryrefslogtreecommitdiff
path: root/cpu/mpc8xx
Commit message (Collapse)AuthorAgeLines
* [new uImage] Pull in libfdt if CONFIG_FIT is enabledMarian Balakowicz2008-02-21-1/+1
| | | | | | | | | | | New uImage format (Flattened Image Tree) requires libfdt functionality, print out error message if CONFIG_OF_LIBFDT is not defined. New uImage support is enabled by defining CONFIG_FIT (and CONFIG_OF_LIBFDT). This commit turns it on by default. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* PPC: Use r2 instead of r29 as global data pointerWolfgang Denk2008-02-14-1/+1
| | | | | | | | | | | | R29 was an unlucky choice as with recent toolchains (gcc-4.2.x) gcc will refuse to use load/store multiple insns; instead, it issues a list of simple load/store instructions upon function entry and exit, resulting in bigger code size, which in turn makes the build for a few boards fail. Use r2 instead. Signed-off-by: Wolfgang Denk <wd@denx.de>
* MPC8xx FEC driver: fix compiler warning.Wolfgang Denk2008-01-13-0/+2
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Enable SMC microcode relocation patch for SMC1.Heiko Schocher2008-01-12-3/+118
| | | | Signed-off-by: Heiko Schocher <hs@denx.de>
* Added support for the mgsuvd board from keymile.Heiko Schocher2008-01-12-0/+16
| | | | Signed-off-by: Heiko Schocher <hs@denx.de>
* Fix Ethernet init() return codesBen Warren2008-01-10-2/+2
| | | | | | | | | | | | | | | | | | Change return values of init() functions in all Ethernet drivers to conform to the following: >=0: Success <0: Failure All drivers going forward should return 0 on success. Current drivers that return 1 on success were left as-is to minimize changes. Signed-off-by: Ben Warren <biggerbadderben@gmail.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Kim Phillips <kim.phillips@freescale.com> Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Acked-By: Timur Tabi <timur@freescale.com>
* Fix and optimize MII operations on FEC (MPC8xx) controllersGuennadi Liakhovetski2008-01-09-54/+53
| | | | | | | | | | | | | | | | | | | | | | | | This patch fixes several issues at least on a MPC885 based system with two FEC interfaces used in MII mode. 1. PHY discovery should first read PHY_PHYIDR2 register and only then PHY_PHYIDR1 like cpu/mpc8xx/fec.c::mii_discover_phy() does it, otherwise the values read are wrong. Also notice, that PHY discovery cannot work on MPC88x / MPC87x in setups with both FECs active at all in its present form, because for both interfaces the registers from FEC 1 are used to communicate over MII. 2. Remove code duplication for resetting the FEC by isolating it into a separate function. 3. Initialize MII on FEC 1 when communicating over FEC 2 in fec_init(). 4. Optimize mii_init() to only reset the FEC 1 controller once. 5. Fix a typo in mii_init() using index i instead of j thus potentially leading to unpredictable results. Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
* TQM885D: Exchanged SDRAM timing by a more relaxed timing.Jens Gehrlein2007-12-27-4/+1
| | | | | | | | CAS-Latency=2, Write Recovery Time tWR=2 The max. supported bus frequency is 66 MHz. Therefore, changed threshold to switch from 1:1 mode to 2:1 from 80 MHz to 66 MHz. Signed-off-by: Martin Krause <martin.krause@tqs.de>
* cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols.Jon Loeliger2007-07-10-4/+4
| | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
* cpu/m*: Remove obsolete references to CONFIG_COMMANDSJon Loeliger2007-07-09-21/+21
| | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
* cpu/mpc*/ : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger2007-07-04-19/+19
| | | | | | | | | | | | | | This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
* [ppc] Fix build breakage for all non-4xx PowerPC variants.Rafal Jaworowski2007-06-22-2/+2
| | | | | - adapt to the more generic EXCEPTION_PROLOG and CRIT_EXCEPTION macros - minor 4xx cleanup
* Code cleanup. Update CHANGELOGWolfgang Denk2007-03-21-2/+2
|
* SPC1920: fix small clock routing bugMarkus Klotzbuecher2007-03-21-3/+2
| | | | Signed-off-by: Markus Klotzbuecher <mk@denx.de>
* Merge with /home/hs/SC3/u-bootWolfgang Denk2007-01-15-3/+3
|\ | | | | | | Some code cleanup.
* | SMC1 uses external CLK4 instead of BRG on spc1920Markus Klotzbuecher2007-01-09-2/+11
|/
* Move "ar" flags to config.mk to allow for silent "make -s"Wolfgang Denk2006-10-09-1/+1
| | | | Based on patch by Mike Frysinger, 20 Jun 2006
* Add support for a saving build objects in a separate directory.Marian Balakowicz2006-09-01-9/+13
| | | | | | | | | | | | | | | | | | | | | Modifications are based on the linux kernel approach and support two use cases: 1) Add O= to the make command line 'make O=/tmp/build all' 2) Set environement variable BUILD_DIR to point to the desired location 'export BUILD_DIR=/tmp/build' 'make' The second approach can also be used with a MAKEALL script 'export BUILD_DIR=/tmp/build' './MAKEALL' Command line 'O=' setting overrides BUILD_DIR environent variable. When none of the above methods is used the local build is performed and the object files are placed in the source directory.
* Add support for TQM885D board.Markus Klotzbuecher2006-07-12-4/+7
| | | | | | Patch by Martin Krause, 20 Mar 2006 Signed-off-by: Martin Krause <martin.krause@tqs.de>
* Bugfix in FEC initialisation:Markus Klotzbuecher2006-07-12-1/+3
| | | | | | | | All MII configuration is done via FEC1 registers. But MII_SPEED was configured according to FEC used. So if only FEC2 was used, this caused the real MII_SPEED register in FEC1 to stay uninitalised, what lead to "mii_send STUCK!" messages. Fix: always configure MII_SPEED on FEC1 only.
* Support for spc1920 board.Markus Klotzbuecher2006-07-12-2/+10
| | | | Patch by Markus Klotzbuecher, 12 Jul 2006
* GCC-4.x fixes: clean up global data pointer initialization for all boards.Wolfgang Denk2006-03-31-40/+18
|
* Add support for MPC859/866 Rev. A.0Wolfgang Denk2006-03-18-3/+8
|
* Code cleanup, especially MIPS for GCC 4.xWolfgang Denk2005-12-04-1/+1
|
* Add support for multiple PHYs.Marian Balakowicz2005-10-28-4/+21
|
* Cleanup for GCC-4.xWolfgang Denk2005-10-13-7/+7
|
* measure_gclk() is needed when DEBUG is enabledWolfgang Denk2005-08-12-1/+1
| | | | Patch by Bryan O'Donoghue, 25 Apr 2005
* * Patch by Detlev Zundel, 30 Jun 2005:wdenk2005-07-04-5/+6
| | | | Fix LCD logo for lwmon board which got lost in the merge of 8xx and PXA LCD code
* On LWMON we must use the watchdog to reset the board as the CPUwdenk2005-05-09-0/+31
| | | | genereated HRESET pulse is too short to reset the external circuitry.
* * Code cleanup, mostly for GCC-3.3.xwdenk2004-12-31-1/+1
| | | | | | | | | | | | * Cleanup confusing use of CONFIG_ETH*ADDR - ust his only to pre-define a MAC address; use CONFIG_HAS_ETH* to enable support for additional ethernet addresses. * Cleanup drivers/i82365.c - avoid duplication of code * Fix bogus "cannot span across banks" flash error message * Add support for CompactFlash for the CPC45 Board.
* Add support for UC100 boardwdenk2004-12-18-0/+7
|
* * Clean up tools/bmp_logo.c to not add trailing white spacewdenk2004-10-09-811/+35
| | | | | | | * Patch by Hinko Kocevar, 21 Aug 2004: - Group common framebuffer functions in common/lcd.c - Group common framebuffer macros and #defines in include/lcd.h - Provide calc_fbsize() for video ATAG
* * Patch by Yuli Barcohen, 13 Jul 2004:wdenk2004-09-28-22/+22
| | | | | | | | Allow clock setting on MPC866/MPC885 series chips according to environment variable `cpuclk' * Patch by Yuli Barcohen, 20 Apr 2004: Remove unnecessary redefine of CPM_DATAONLY_SIZE for MPC826x
* Add support for IDS "NC650" boardwdenk2004-08-28-1/+1
|
* * Code cleanupwdenk2004-08-01-97/+153
| | | | | | | | | | | | | * Patch by Sascha Hauer, 28 Jun: - add generic support for Motorola i.MX architecture - add support for mx1ads, mx1fs2 and scb9328 boards * Patches by Marc Leeman, 23 Jul 2004: - Add define for the PCI/Memory Buffer Configuration Register - corrected comments in cpu/mpc824x/cpu_init.c * Add support for multiple serial interfaces (for example to allow modem dial-in / dial-out)
* Patch by Mark Jonas, 02 Jul 2004:wdenk2004-07-12-1/+1
| | | | Fix lowboot (again) on MPC5xxx
* * Patch by Yuli Barcohen, 16 Jun 2004:wdenk2004-07-09-2/+1
| | | | | | | | Remove obsolete AdderII port which was superseded by unified AdderII/Adder87x port * Patch by Ladislav Michl, 16 Jun 2004: Fix gcc-3.3.3 warnings for smc91111.c
* * Fix "cls" command when used with splash screenwdenk2004-06-30-1/+3
| | | | | * Increase NFS download timeout (now 1 min - 10 sec is to short for a slow download of a big image)
* Add "cls" function to MPC823 LCD driver so we can reinitialize thewdenk2004-06-25-10/+27
| | | | display even after showing a bitmap
* Patch by Sam Song, 09 Jun 2004:wdenk2004-06-09-0/+9
| | | | | | - Add support for RPXlite_DW board - Update FLASH driver for 4*AM29DL323DB90VI - Add option configuration of CFG_ENV_IS_IN_NVRAM on RPXlite_DW board
* Patch by Pantelis Antoniou, 5 May 2004:wdenk2004-06-07-1/+1
| | | | | - Intracom board update. - Add Codec POST.
* Patch by Yuli Barcohen, 19 Apr 2004:wdenk2004-06-06-18/+35
| | | | | | | - Rename DUET_ADS to MPC885ADS - Rename CONFIG_DUET to CONFIG_MPC885_FAMILY - Rename CONFIG_866_et_al to CONFIG_MPC866_FAMILY - Clean up FADS family port to use the new defines
* Patch by Klaus Heydeck, 12 May 2004:wdenk2004-05-12-0/+11
| | | | | | Using external watchdog for KUP4 boards in mpc8xx/cpu.c; load_sernum_ethaddr() for KUP4 boards in lib_ppc/board.c; various changes to KUP4 board specific files
* * Fix config option spelling in PM520 config filewdenk2004-05-05-3/+4
| | | | | * Fix PHY discovery problem in cpu/mpc8xx/fec.c (introduced by patches by Pantelis Antoniou, 30 Mar 2004)
* * Fix minor NAND JFFS2 related issuewdenk2004-05-03-1/+1
| | | | | | | | | * Fixes for SL811 USB controller: - implement workaround for broken memory stick - improve error handling * Increase packet send timeout to 10 ms in cpu/mpc8xx/scc.c to better cope with congested networks.
* Clean up the TQM8xx_YYMHz configurations; allow to use the samewdenk2004-04-24-0/+28
| | | | | | binary image for all clock frequencies. Implement run-time optimization of flash access timing based on the actual bus frequency.
* * Cleanup, minor fixeswdenk2004-04-18-3/+3
| | | | | | | | | * Patch by Rune Torgersen, 16 Apr 2004: LBA48 fixes * Patches by Pantelis Antoniou, 16 Apr 2004: - Fix some compile problems; add "once" functionality for the netretry variable
* Patches by Pantelis Antoniou, 16 Apr 2004:wdenk2004-04-18-24/+53
| | | | | | | | | | | | | | | | | - add support for a new version of an Intracom board and fix various other things on others. - add verify support to the crc32 command (define CONFIG_CRC32_VERIFY to enable it) - fix FEC driver for MPC8xx systems: 1. fix compilation problems for boards that use dynamic allocation of DPRAM 2. shut down FEC after network transfers - HUSH parser fixes: 1. A new test command was added. This is a simplified version of the one in the bourne shell. 2. A new exit command was added which terminates the current executing script. 3. Fixed handing of $? (exit code of last executed command)
* Patches by Pantelis Antoniou, 30 Mar 2004:wdenk2004-04-15-229/+459
| | | | | | | | | | | | Improve and fix various things in the MPC8xx FEC driver: 1. The new 87x and 88x series of processors have two FECs, and the new driver supports them both. 2. Another change in the 87x/88x series is support for the RMII (Reduced MII) interface. However numerous changes are needed to make it work since the PHYs are connected to the same lines. That means that you have to address them correctly over the MII interface.
* * Patch by Mark Jonas: Remove config.tmp files only whenwdenk2004-04-08-2/+3
| | | | | | | | unconfiguring the board * Adapt RMU board for bigger flash memory * Test fix for ethernet problems on MPC5200