summaryrefslogtreecommitdiff
path: root/cpu/mpc512x
AgeCommit message (Collapse)AuthorFilesLines
2008-10-18rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD8-51/+51
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-02Moved initialization of MPC512x_FEC Ethernet driver to CPU directoryBen Warren1-0/+13
Added a cpu_eth_init() function to MPC512x CPU directory and removed code from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-08-29Move MPC512x_FEC driver to drivers/netBen Warren3-1022/+1
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-08-21fdt: rework fdt_fixup_ethernet() to use env instead of bd_tKumar Gala1-1/+1
Move to using the environment variables 'ethaddr', 'eth1addr', etc.. instead of bd->bi_enetaddr, bi_enet1addr, etc. This makes the code a bit more flexible to the number of ethernet interfaces. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-08-12ads5121: fix compiler warnings (unused variables)Wolfgang Denk2-3/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-08-05mpc5121: Move iopin features from board specific to common files.Kenneth Johansson2-1/+50
And in the process eliminate some duplicate register defines. Signed-off-by: Kenneth Johansson <kenneth@southpole.se>
2008-08-05mpc5121: squash some fdt fixup errorsJohn Rigby1-15/+62
On ADS5121 when booting linux the following errors are seen: Unable to update property /soc5121@80000000:bus-frequency, err=FDT_ERR_NOTFOUND Unable to update property /soc5121@80000000/ethernet@2800:local-mac-address, err=FDT_ERR_NOTFOUND Unable to update property /soc5121@80000000/ethernet@2800:address, err=FDT_ERR_NOTFOUND This is caused by ft_cpu_setup trying to deal with both old and new soc node naming. This patch fixes this by being smarter about what to fixup. Also do soc node fixups by compatible instead of by path. A new board config called OF_SOC_COMPAT defined to be "fsl,mpc5121-immr" replaces the old OF_SOC node path that was defined to be "soc@80000000". Old device trees still work, but the compatiblity is conditional on CONFIG_OF_SUPPORT_OLD_DEVICE_TREES which is on by default in include/configs/ads5121.h. Signed-off-by: John Rigby <jrigby@freescale.com>
2008-07-11Fix some more print() format errors.Wolfgang Denk1-1/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-07-10Configuration changes for ADS5121 Rev 3Martha Marx1-2/+6
ADS5121 Rev 3 board is now the default config config targets are now ads5121_config Rev 3 board with PCI M41T62 on board RTC 512MB DRAM ads5121_rev2_config Rev 2 board with No PCI 256MB DRAM Signed-off-by: Martha Marx <mmarx@silicontkx.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: John Rigby <jrigby@freescale.com>
2008-07-10Consolidate ADS5121 IO Pin configurationMartha Marx1-15/+0
Consolidate ADS5121 IO Pin configuration to one file board/ads5121/iopin.c. Remove pin config from cpu/mpc512x/fec.c Signed-off-by: Martha Marx <mmarx@silicontkx.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: John Rigby <jrigby@freescale.com>
2008-06-03MPC512x: Change traps.c to not reference non-addressable memoryBecky Bruce1-1/+7
Currently, END_OF_RAM is used by the trap code to determine if we should attempt to access the stack pointer or not. However, on systems with a lot of RAM, only a subset of the RAM is guaranteed to be mapped in and accessible. Change END_OF_RAM to use get_effective_memsize() instead of using the raw ram size out of the bd. Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
2008-05-21Big white-space cleanup.Wolfgang Denk1-1/+1
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-03-02MPC5121e ADS PCI support take 3John Rigby1-5/+16
Adds PCI support for MPC5121 Tested with drivers/net/rtl8139.c Support is conditional since PCI on old silicon does not work. ads5121_PCI_config turns on PCI In this version, condition compilation of PCI code has been moved from ifdef in board/ads5121/pci.c to board/ads5121/Makefile as suggested by Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: John Rigby <jrigby@freescale.com>
2008-02-14PPC: Use r2 instead of r29 as global data pointerWolfgang Denk1-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>
2008-02-14ppc: Refactor cache routines, so there is only one common set.Rafal Jaworowski1-46/+0
Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
2008-02-07Device tree updatesJohn Rigby1-3/+3
Changes to match 5121 device tree going mainline in 2.6.25. Change OF_SOC from "soc5121" to plain "soc". Remove unneeded "ref-frequency" fixups. Remove "address" enetaddr fixup. Add bus-frequency fixup for old OF_SOC so old kernels with old device trees will work with new u-boot with 66MHz IPS clock Signed-off-by: John Rigby <jrigby@freescale.com>
2008-01-12MPC512X: Cleanup bus clock names.Grzegorz Bernacki4-10/+10
Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
2008-01-12ads5121: Added support for FDT.Grzegorz Bernacki1-0/+21
Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
2007-11-15Revert "[MPC512x] Correct fixup relocation"Grant Likely1-1/+1
This reverts commit 8d17979d0359492a822a0a409d26e3a3549b4cd4. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2007-09-10[MPC512x] Streamline frame handling in the FEC driverGrzegorz Bernacki2-6/+9
- convert frame size settings to be derived from a single base - set frame size to the recommended default value Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
2007-09-07[MPC512x] Proper handling of larger frames in the FEC driverGrzegorz Bernacki1-13/+21
When frame larger than local RX buffer is received, it is split and handled by two buffer descriptors. Prior to this patch the FEC driver discarded contents of a buffer descriptor without the 'LAST' bit set, so the first part of the frame was lost in case of larger frames. This fix allows to safely combine the two pieces into the whole frame. Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
2007-09-07[MPC512x] Correct fixup relocationRafal Jaworowski1-1/+1
Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
2007-08-12Minor alignment of output, 2nd try.Wolfgang Denk1-1/+1
Also update CHANGELOG Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-08-12Minor alignment of outputWolfgang Denk1-1/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-08-12Clean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues.Wolfgang Denk2-10/+10
Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-08-02Coding style cleanup, update CHANGELOGWolfgang Denk5-43/+43
Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-07-27[ADS5121] Support for the ADS5121 boardRafal Jaworowski12-0/+3119
The following MPC5121e subsystems are supported: - low-level CPU init - NOR Boot Flash (common CFI driver) - DDR SDRAM - FEC - I2C - Watchdog Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com> Signed-off-by: Rafal Jaworowski <raj@semihalf.com> Signed-off-by: Jan Wrobel <wrr@semihalf.com>