summaryrefslogtreecommitdiff
path: root/post
AgeCommit message (Collapse)AuthorFilesLines
2008-04-26post/Makefile: make sure to use the correct flagsWolfgang Denk1-0/+1
ARFLAGS was not set, which caused "ppc_8xx-ar: creating libgenpost.a" messages to be printed. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-26Coding Style cleanup, update CHANGELOGWolfgang Denk1-15/+13
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-25Merge branch 'master' of /home/wd/git/u-boot/lwmon5Wolfgang Denk65-264/+110
Conflicts: common/cmd_bootm.c common/cmd_log.c include/common.h post/board/lwmon5/Makefile post/board/lwmon5/dsp.c post/board/lwmon5/dspic.c post/board/lwmon5/fpga.c post/board/lwmon5/gdc.c post/board/lwmon5/sysmon.c post/board/lwmon5/watchdog.c Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-22POST: move CONFIG_POST to MakefilesYuri Tikhonov7-20/+60
Introduce the new logical option CONFIG_HAS_POST which is set when the platform has CONFIG_POST set. Use CONFIG_HAS_POST in the post/ Makefiles to determine should the POST libs be compiled for the selected target platform, or not. To avoid breaking u-boot linking process, the empty post/libpost.a file is created for platforms which do not have POSTs. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-22POST: preparations for moving CONFIG_POST to MakefilesYuri Tikhonov58-182/+2
Remove CONFIG_POST ifdefs from the post/ source files. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-14Fix watchdog POST for lwmon5Sascha Laue1-1/+1
If the hardware watchdog detects a voltage error, the watchdog sets GPIO62 to low. The watchdog POST has to detect this low level. Signed-off-by: Sascha Laue <leglas0@legpc180.leg.liebherr.i>
2008-03-26Coding Style cleanyp; update CHANGELOGWolfgang Denk1-6/+6
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-03-25lwmon5 SYSMON POST: fix handling of negative temperaturesYuri Tikhonov2-24/+36
Fix errors in the LWMON5 Sysmon POST for negative temperatures. Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-23Merge branch 'master' of /home/wd/git/u-boot/workWolfgang Denk1-1/+2
2008-03-23LWMON5: fix dsPIC POSTYuri Tikhonov1-1/+2
Add test for DPIC_SYS_ERROR_REG to be zero in the LWMON5 dsPIC POST. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> ---
2008-03-21lwmon5 POST: remove unreachable codeWolfgang Denk1-19/+24
plus some coding style cleanup Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-03-20LWMON5: POST RTC fixYuri Tikhonov1-0/+15
Modify the RTC API to provide one a status for the time reported by the rtc_get() function: 0 - a reliable time is guaranteed, < 0 - a reliable time isn't guaranteed (power fault, clock issues, and so on). The RTC chip drivers are responsible for providing this info if the corresponding chip supports such functionality. If not - always report that the time is reliable. The POST RTC test was modified to detect the RTC faults utilizing this new rtc_get() feature. Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19lwmon5: Fix register test logic to match the specific GDC h/w.Yuri Tikhonov1-6/+12
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19Fix backlight in the lwmon5 POST.Yuri Tikhonov2-35/+8
Backlight was switched on even when temperature was too low. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19Some fixes to dspic, fpga, and gdc post tests for lwmon5. Disable external ↵Yuri Tikhonov3-2/+6
watch-dog for now. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19The patch introduces the CRITICAL feature of POST tests. If the test marked ↵Yuri Tikhonov1-3/+15
as POST_CRITICAL fails then the alternative, post_critical, boot-command is used. If this command is not defined then U-Boot enters into interactive mode. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19The patch adds new POST tests for the Lwmon5 board. These are:Yuri Tikhonov8-0/+811
* External Watchdog test; * dsPIC tests; * FPGA test; * GDC test; * Sysmon tests. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19Enable CODEC POST with CFG_POST_CODEC rather than with CFG_POST_DSP.Yuri Tikhonov1-1/+1
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com>
2008-03-19lwmon5: Fix register test logic to match the specific GDC h/w.Yuri Tikhonov1-6/+12
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-19Fix backlight in the lwmon5 POST.Yuri Tikhonov2-35/+8
Backlight was switcehd on even when temperature was too low. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-18Some fixes to dspic, fpga, and gdc post tests for lwmon5.Yuri Tikhonov3-2/+6
Disable external watch-dog for now. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-18The patch introduces the CRITICAL feature of POST tests. If the testYuri Tikhonov1-3/+15
marked as POST_CRITICAL fails then the alternative, post_critical, boot-command is used. If this command is not defined then U-Boot enters into interactive mode. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-18The patch adds new POST tests for the Lwmon5 board.Yuri Tikhonov8-0/+816
These are: * External Watchdog test; * dsPIC tests; * FPGA test; * GDC test; * Sysmon tests. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
2008-03-18Enable CODEC POST with CFG_POST_CODEC rather than with CFG_POST_DSP.Yuri Tikhonov1-1/+1
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com>
2008-03-15ppc4xx: program_tlb now uses 64bit physical addessStefan Roese1-2/+0
This patch changes the physical addess parameter from 32bit to 64bit. This is needed for 36bit 4xx platforms to access areas located beyond the 4GB border, like SoC peripherals (EBC etc.). Signed-off-by: Stefan Roese <sr@denx.de>
2008-03-02Fix warnings while compilation of post/drivers/memory.cAnatolij Gustschin1-3/+3
Fix warnings while compilation with new gcc in eldk-4.2 Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-03-02POST: Disable cache while SPR POSTAnatolij Gustschin1-0/+14
Currently (since commit b2e2142c) u-boot crashes on sequoia board while SPR test if CONFIG_4xx_DCACHE is enabled. This patch disables the cache while SPR test. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2008-02-21Fix CPU POST test failureYuri Tikhonov1-0/+3
The CPU POST test code (run from cpu_post_exec_31()) doesn't follow the ABI carefully, at least the CR3, CR4, and CR5 fields of CR are clobbered by it. The gcc-4.2 with its more aggressive optimization exposes this fact. This patch just saves the CR value before running the test code, so allowing it to do anything it wants with CR. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Acked-by: Yuri Tikhonov <yur@emcraft.com> --
2008-02-07Add attribute POST_PREREL to ECC memory POSTLarry Johnson1-2/+2
Signed-off-by: Larry Johnson <lrj@acm.org>
2008-01-16ppc4xx: Refactor ECC POST for AMCC Denali coreLarry Johnson1-131/+135
The ECC POST reported intermittent failures running after power-up on the Korat PPC440EPx board. Even when the test passed, the debugging output occasionally reported additional unexpected ECC errors. This refactoring has three main objectives: (1) minimize the code executed with ECC enabled during the tests, (2) add more checking of the results so any unexpected ECC errors would cause the test to fail, and (3) use synchronization (only) where required by the processor. Signed-off-by: Larry Johnson <lrj@acm.org>
2008-01-14ppc_4xx: Fix post spr.c for PPC405Niklaus Giger1-0/+6
post/cpu/ppc4xx/spr.c contained a few checks for registers only present for PPC440 and derivates processor. Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
2008-01-09POST: Execute SPR test after relocationStefan Roese1-1/+1
On LWMON5 we now use d-cache as init-ram and stack. The SPR POST test uses self modifying code and this doesn't work with stack in d-cache, since I can't move the code from d-cache to i-cache. We move the SPR test to be executed a little later, after relocation. Then stack is located in SDRAM and this self-modifying code is no problem anymore. Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27Cosmetic changes to ECC POST for AMCC Denali coreLarry Johnson1-6/+6
Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27ppc4xx: Fix compilation problem in 405 cache POST testStefan Roese1-1/+1
Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27ppc4xx: Fix problem in 44x cache POST routineStefan Roese1-22/+19
As repoted by Larry Johnson, running "diag run cache" caused a crash in U-Boot. This problem was introduced by a patch that removed the TLB entry for the cache test after the test has completed. Since this TLB was only setup once, a 2nd attempt to run this cache test failed with a crash. Now this TLB entry is created every time the routine is called. Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27ppc4xx: Fix lwmon5 compilation problemStefan Roese1-29/+0
Now that the 440EPx ECC test is not board specific anymore remove this Makefile. Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27Fix/enhance ECC POST for 440EPx/GRxLarry Johnson2-46/+46
This patch allows the ECC POST to be used for different boards with the PPC440 Denali SDRAM controller. Modifications include skipping the test if ECC is not enabled (as for non-ECC DIMMs) and adding synchronization to prevent timing errors. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27PPC4xx: Move/rename ECC POST for 440EPx/GRxLarry Johnson1-0/+0
Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27ppc4xx: use correct io accessors for 4xx ethernet POSTMatthias Fuchs1-21/+21
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-10-31ppc4xx: Enable CPU POST test for 4xx with dcache enabledStefan Roese1-0/+11
Now with caches enabled (i- and d-cache) on 44x, we need a chance to disable the cache for the CPU POST tests, since these tests consist of self modifying code. This is done via the new change_tlb() function. Signed-off-by: Stefan Roese <sr@denx.de>
2007-10-31ppc4xx: Change 4xx POST ethernet test to handle cached memory tooStefan Roese1-1/+10
This patch enables the 4xx EMAC POST driver to work too, when dcache is enabled. Signed-off-by: Stefan Roese <sr@denx.de>
2007-10-31ppc4xx: Remove temporary TLB entry in POST cache test only for 440Stefan Roese1-0/+2
Signed-off-by: Stefan Roese <sr@denx.de>
2007-10-31ppc4xx: Remove compiler warning from previous commitStefan Roese1-1/+1
Signed-off-by: Stefan Roese <sr@denx.de>
2007-10-31ppc4xx: Remove temporary TLB entry in POST cache testStefan Roese1-0/+2
Signed-off-by: Stefan Roese <sr@denx.de>
2007-10-31ppc4xx: Fix POST ethernet test for HaleakalaStefan Roese1-7/+29
The POST ethernet test needed to be changed to dynamically determine the count of ethernet devices. This code is cloned from the 4xx ethernet driver. Signed-off-by: Stefan Roese <sr@denx.de>
2007-10-31POST: Add 405EX support to 4xx UART POST testStefan Roese1-2/+13
Signed-off-by: Stefan Roese <sr@denx.de>
2007-08-25POST: limit memory test area to not touch global data anymoreYuri Tikhonov1-0/+3
As experienced on lwmon5, on some boards the POST memory test can corrupt the global data buffer (bd). This patch fixes this issue by checking and limiting this area. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> Signed-off-by: Stefan Roese <sr@denx.de>
2007-08-14POST: Fix merge problemStefan Roese1-4/+1
Signed-off-by: Stefan Roese <sr@denx.de>
2007-08-14Merge with /home/stefan/git/u-boot/zeusStefan Roese4-8/+197
2007-08-14POST: Add option for external ethernet loopback testStefan Roese1-1/+8
When CFG_POST_ETHER_EXT_LOOPBACK is defined, the ethernet POST is not done using an internal loopback connection, but by assuming that an external loopback connector is plugged into the board. Signed-off-by: Stefan Roese <sr@denx.de>