aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-01-03Introduce new eth_receive routineRafal Jaworowski3-0/+71
The purpose of this routine is receiving a single network frame, outside of U-Boot's NetLoop(). Exporting it to standalone programs that run on top of U-Boot will let them utilise networking facilities. For sending a raw frame the already existing eth_send() can be used. The direct consumer of this routine is the newly introduced API layer for external applications (enabled with CONFIG_API). Signed-off-by: Rafal Jaworowski <raj@semihalf.com> Signed-off-by: Piotr Kruszynski <ppk@semihalf.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-01-038610: Move include of config.h earlier.Jon Loeliger1-1/+1
Include config.h earlier in the set of #includes so as to avoid a incidental and duplicate definition of CFG_CACHELINE_SIZE. Signed-off-by: Jon Loeliger
2008-01-03Don't slam #undef DEBUG in the 8641HPCN config file.Jon Loeliger1-1/+0
Doing so prevents it from being individually set and useful in other files. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2008-01-03Convert MPC8641HPCN to use libfdt.Jon Loeliger2-38/+43
Assumes the presence of the aliases node in the DTS to locate the ethernet, pci and serial nodes for fixups. Use consistent fdtaddr and fdtfile in environment variables. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2008-01-03Merge commit 'wd/master'Jon Loeliger426-6402/+25372
2008-01-02cfi_flash: Fix bug in flash_isset() to use correct 32bit functionStefan Roese1-1/+1
This bug was detected on the LWMON5 target which has 2 Intel 16bit wide flash chips connected to a 32bit wide port. Signed-off-by: Stefan Roese <sr@denx.de>
2008-01-02Fix compile problem introduced by "cleanup" commit 3dfd708cWolfgang Denk1-2/+2
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-01-02Make scripts and Makefiles POSIX compliantWolfgang Denk4-8/+8
The bash builtin versions of the "test" (resp. "[") command allow using "==" for string comparisons, but POSIX compatible implemen- tations (like /usr/bin/test) insist on using "=" only. On such systems you will see: $ /usr/bin/test a == a && echo OK /usr/bin/test: ==: binary operator expected This patch fixes Makefiles and scripts to use POSIX style. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-01-02Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk1-1/+51
2008-01-02Minor coding style cleanup.Wolfgang Denk1-2/+2
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-01-02Merge branch 'master' of git://www.denx.de/git/u-boot-cfi-flashWolfgang Denk1-1/+51
2007-12-29Merge branch 'for-1.3.2-ver2'Stefan Roese236-3537/+18051
Conflicts: cpu/ppc4xx/fdt.c include/configs/kilauea.h include/configs/sequoia.h Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-28ppc4xx: Coding style cleanupStefan Roese1-17/+11
Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-28ppc4xx: Complete PMC440 board supportMatthias Fuchs4-0/+527
This patch brings the PMC440 board configuration file. Finally it enables the PMC440 board support. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Add FPGA support and BSP commands for PMC440 boardsMatthias Fuchs3-0/+1066
This patch adds some BSP commands and FPGA booting support for esd's PMC440 boards. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Add initial esd PMC440 board filesMatthias Fuchs9-0/+2497
This patch adds the first files for the new esd PMC440 boards. The next two patches will complete the PMC440 board support. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Add EEPROM write protection for PLU405 boards + misc. updatesMatthias Fuchs2-8/+93
- add EEPROM write protection for esd PLU405 boards. - initialize NAND GPIOs - use correct io accessors - cleanup Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: use correct io accessors for esd's LCD codeMatthias Fuchs1-7/+8
This patch fixes esd's LCD dectection code to work correctly with newer gcc versions. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Maintenance patch for VOH405 boardsMatthias Fuchs2-39/+127
- add EEPROM write protection - initialize NAND GPIOs - use correct io accessors - slow down I2C clock to 100kHz - enable ext. I2C bus - cleanup Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Enable 405EP PCI arbiter per default on all boardsStefan Roese1-0/+5
In an attmemt to clean up the 4xx start.S file, I removed the enabling of the internal 405EP PCI arbiter. This is needed for multiple other 405EP platforms, like most of the esd 405EP. Now the internal PCI arbiter is enabled again per default as it has been before. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Fix bug in cpu_init.c (405EP instead of 450EP)Stefan Roese1-1/+1
Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-28ppc4xx: Fix compilation problem of kilauea/haleakala nand booting targetStefan Roese1-1/+1
Use correct link to nand_ecc now located in drivers/mtd/nand/ for the platforms mentioned above. Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27Merge branch 'master' of /home/stefan/git/u-boot/u-boot into for-1.3.2-ver2Stefan Roese186-1822/+9769
2007-12-27Remove CPCI440 boardMatthias Fuchs10-1551/+0
This board never left prototyping state and it became a millstone round my neck. So remove it. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
2007-12-27Add support for Korat PPC440EPx boardLarry Johnson8-0/+1082
These patches add support for the PPC440EPx-based "Korat" board to U-Boot. They are based primarily on support for the Sequoia board. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add configuration file for Korat boardLarry Johnson1-0/+376
This patch supplies the configuration file for the Korat PPC440EPx- processor board. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add denali_data_eye.o and denali_spd_ddr2.o to PPC4xx MakefileLarry Johnson1-0/+2
Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add 440EPx DDR2 SPD DIMM supportLarry Johnson1-0/+1254
This patch adds SPD DDR2 support for the 440EPx ("Denali") SDRAM controller. It should also work on the 440GRx. It is based on the DDR2 SPD code for the 440EP/440EPx, but makes no provision for DDR1 support. This code has been tested on prototype Korat boards with three Kingston DIMMS: 512 MiB ECC (one rank), 512 MiB non-ECC (one rank) and 1 GiB ECC (two ranks). The Korat board has a single DIMM socket, but support has been provided (though not tested) for boards with two DIMM sockets. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Copy 440EPx/GRx SDRAM data-eye search to common directoryLarry Johnson1-0/+396
This patch creates a non-board-specific file for performing the SDRAM data-eye search. It also adds ECC error checking to the test of valid data on readback when ECC is enabled. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add definitions for 440EPx/GRx SDRAM controller to ppc440.hLarry Johnson3-52/+470
This patch adds the Denali SDRAM controller definitions to "ppc440.h". It also fixes two typos in the definitions, so the board-specific "sdram.h" files containing these definitions are also fixed to avoid compiler warnings. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add Ethernet 1000BASE-X support for PPC4xxLarry Johnson1-52/+114
This patch adds a new switch: "CONFIG_PHY_DYNAMIC_ANEG". When this symbol is defined, the PHY will advertise it's capabilities for autonegotiation based on the capabilities shown in the PHY's status registers, including 1000BASE-X. When "CONFIG_PHY_DYNAMIC_ANEG" is not defined, the PHY will advertise hard-coded capabilities, as before. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add driver for National Semiconductor LM73 temperature sensorLarry Johnson3-1/+193
This driver is based on the driver for the LM75. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Add driver for STMicroelectronics M41T60 RTCLarry Johnson2-0/+262
This driver is based on the driver for the M41T11. In the intended application, the RTC will be powered by a large capacitor, rather than a battery. The driver therefore checks to see whether the RTC has lost power. The chip's OUT bit is normally reset from its power-up state. If the OUT bit is read as set, or if the date and time are not valid, then the RTC is assumed to have lost power, and its date and time are reset to 1900-01-01 00:00:00. Support for adjusting the speed of the clock to improve accuracy is provided through an environment variable. Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Use out_be32() and friends to access memory-mapped registers in sequoia.cLarry Johnson1-29/+29
Signed-off-by: Larry Johnson <lrj@acm.org>
2007-12-27Use definitions from "asm-ppc/mmu.h" in init.S for SequoiaLarry Johnson1-49/+1
Signed-off-by: Larry Johnson <lrj@acm.org>
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: Move virtual address of POST cache test to bigger addressStefan Roese2-2/+2
On Sequoia & LWMON5 the virtual address of the POST cache test is now moved to a bigger address. This enables usage of more memory on those boards. 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: Update Makalu fdt supportStefan Roese1-2/+0
Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27ppc4xx: Add fdt support to AMCC Katmai eval boardStefan Roese2-1/+34
Signed-off-by: Stefan Roese <sr@denx.de>
2007-12-27ppc4xx: fdt: Cleanup setup of cpu node setupStefan Roese3-5/+4
Now the cpu node setup ("timebase-frequency" and "clock-frequency") is without using the absolute path to the cpu node. This makes it possible to use this U-Boot version with both versions of cpu-node naming "cpu@0" and the former "PowerPC,440EPx@0". 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 ppc4xx clear_bss() codeAnatolij Gustschin1-4/+13
ppc4xx clear_bss() fails if BSS segment size is not divisible by 4 without remainder. This patch provides fix for this problem. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2007-12-27PPC4xx: Minimal changes to add vxWorks supportNiklaus Giger1-1/+5
Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
2007-12-27ppc4xx: Add CONFIG_BOOTP_SUBNETMASK to Sequoia board configMarkus Klotzbücher1-0/+1
When using dhcp/bootp the "netmask" environment variable is not set because CONFIG_BOOTP_SUBNETMASK is not defined. But usually this is desireable, so the following patch adds this this option to the board config. Signed-off-by: Markus Klotzbuecher <mk@denx.de> 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-12-27ppc4xx: fix flush + invalidate_dcache_range argumentsMatthias Fuchs1-3/+3
flush + invalidate_dcache_range() expect the start and stop+1 address. So the stop address is the first address behind (!) the range. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>