summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* Setup POST word for generic mpc85xxYork Sun2010-10-20-2/+2
| | | | | | | Using PIC TFRR register for post word load/store for generic MPC85xx. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Add memory test feature for mpc85xx POST.York Sun2010-10-20-0/+233
| | | | | | | | | | | | | | The memory test is performed after DDR initialization when U-boot stills runs in flash and cache. On recent mpc85xx platforms, the total memory can be more than 2GB. To cover whole memory, it needs be mapped 2GB at a time using a sliding TLB window. After the testing, DDR is remapped with up to 2GB memory from the lowest address as normal. If memory test fails, DDR DIMM SPD and DDR controller registers are dumped for further debugging. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Adding more control to physical address mappingYork Sun2010-10-20-6/+10
| | | | | | | | A worker function setup_ddr_tlbs_phys() is introduced to implement more control on physical address mapping. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* always relocate fdt into an lmb-allocated memory blockTimur Tabi2010-10-20-55/+28
| | | | | | | | | | | | | | | | | | | | | The device tree (fdt) must always exist in within the bootmap (usually the first 16MB of RAM). If it doesn't, then boot_relocate_fdt() will allocate an LMB region in the bootmap and copy the fdt into that region. It will also increase the size of the fdt. If the fdt is already in the bootmap, then previously the memory was just reserved. There was no contingency if the reservation failed, however. By always allocating an lmb region and copying/resizing the fdt into that region, the code is simplified and the memory region is always allocated properly. Also change the types of some variables to avoid some typecasts. Signed-off-by: Timur Tabi <timur@freescale.com> Tested-by: Ira Snyder <iws@ovro.caltech.edu> Acked-by: Gerald Van Baren <vanbaren@cideas.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* powerpc/8xxx: Add fdt_fixup_phy_connection helperKumar Gala2010-10-20-15/+38
| | | | | | | Add a common helper that will set the PHY connection type based on enum. We use this on eTSEC, UCC, and will with Fman in the future. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* powerpc/fsl: Introduce common enum for PHY typesKumar Gala2010-10-20-26/+43
| | | | | | | | Have a common enum for phy types that we use in the UCC driver. We will also use this enum for dealing with phy connection fixup in the device tree. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* FAT: buffer overflow with FAT12/16Stefano Babic2010-10-20-1/+1
| | | | | | | | | | | | | Last commit 3831530dcb7b71329c272ccd6181f8038b6a6dd0a was intended "explicitly specify FAT12/16 root directory parsing buffer size, instead of relying on cluster size". Howver, the underlying function requires the size of the buffer in blocks, not in bytes, and instead of passing a double sector size a request for 1024 blocks is sent. This generates a buffer overflow with overwriting of other structure (in the case seen, USB structures were overwritten). Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Mikhail Zolotaryov <lebon@lebon.org.ua>
* common/fdt_support.c: Fix compile warningsWolfgang Denk2010-10-20-1/+0
| | | | | | | | | | | | | | Commit a6bd9e8 "FDT: Add fixup support for multiple banks of memory" removed code but forgot to remove the variables used by it, resulting in warnings: fdt_support.c: In function 'fdt_fixup_memory_banks': fdt_support.c:399: warning: unused variable 'sizecell' fdt_support.c:399: warning: unused variable 'addrcell' Remove the declarations, too. Signed-off-by: Wolfgang Denk <wd@denx.de>
* USB: sync Queue Element Transfer Descriptor against EHCI specWolfgang Denk2010-10-20-5/+10
| | | | | | | | | | | | | | | | | | | Appendix B "EHCI 64-Bit Data Structures" of the "Enhanced Host Controller Interface Specification for Universal Serial Bus" (Rev. 1.0, March 12, 2002) defines additional fields which were missing in U-Boot's struct qTD; as these are also present in recent versions of struct ehci_qtd in the Linux kernel, we add them here, too. This fixes some nasty memory corruption problems. Reported-by: Dan Lykowski <lykowdk@gmail.com> See http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/76942 Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Cc: Dan Lykowski <lykowdk@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Tested-by: Stefano Babic <sbabic@denx.de>
* MX31: Removed warnings for iomux functionStefano Babic2010-10-20-4/+4
| | | | | | Removed warnings generated in the mx31_set_pad() function. Signed-off-by: Stefano Babic <sbabic@denx.de>
* Merge branch 'master' of git://git.denx.de/u-boot-armWolfgang Denk2010-10-20-3250/+4947
|\
| * Makefile: rename TEXT_BASE to CONFIG_SYS_TEXT_BASEEric Cooper2010-10-19-1/+1
| |
| * update board EB+CPUx9K2Jens Scharsig2010-10-19-20/+11
| | | | | | | | | | | | | | * update to support arm reloaction * unnecessary environment variables removed Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
| * Build: PXA: Fix TrizepsIV build variantsMarek Vasut2010-10-19-13/+4
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * Build: PXA: Fix Vpac270 build variantsMarek Vasut2010-10-19-26/+10
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Fix vpac270 OneNAND booterMarek Vasut2010-10-19-3/+7
| | | | | | | | | | | | NOTE: The modification in Makefile will be superseded by a pending patch! Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Fix Balloon3 for RelocMarek Vasut2010-10-19-104/+22
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Fix ZipitZ2 for RelocMarek Vasut2010-10-19-63/+21
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Fix vpac270 for RelocMarek Vasut2010-10-19-53/+13
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Fix reloc, Push lowlevel init into C codeMarek Vasut2010-10-19-214/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Firstly, this fixes relocation issues. I had to use part of Dcache as RAM for a while. I also moved around the lowlevel init code. It turned out so most of the lowlevel init code ended in cpu.c (and eventually was rewritten into C). This will also allow easier operation with FDT, multi-CPU-model support etc. in later releases. NOTE: This breaks most of the PXA boards (actually, the reloc stuff did already, this only finishes the doom). Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Add necessary information for RELOCMarek Vasut2010-10-19-1/+70
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: fix MDREFR[APD] bit settingMikhail Kshevetskiy2010-10-19-8/+12
| | | | | | | | | | | | | | | | | | pxa_mem_setup macro use r6 to store CONFIG_SYS_MDREFR_VAL during memory initialization. This reg is modified during execution of pxa_wait_ticks. Later we use r6 to setup MDREFR[APD] bit. As result MDREFR[APD] is always zero. Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
| * PXA: fix environment sector size, kernel and environment location for vpac270Mikhail Kshevetskiy2010-10-19-8/+17
| | | | | | | | | | | | | | | | | | | | Define ENV_ADDR as MONITOR_BASE + MONITOR_LEN. Fix environment sector size (NOR: 32Kb for first four sectors and 128Kb for other; OneNAND: 128Kb). Last but not least: we have MONITOR_LEN = 0x40000 and one sector for environment (size = 0x20000), so the kernel may start from 0x00060000 only. Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
| * PXA: cleanup vpac270 config and set CONFIG_SYS_HZ to 1000Mikhail Kshevetskiy2010-10-19-2/+1
| | | | | | | | | | | | | | | | * CONFIG_SYS_CLKS_IN_HZ is not used anywhere, so removing it * CONFIG_SYS_HZ is set to 1000 on most architectures, so it seems to be the safe default Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
| * PXA: remove unused u-boot.lds from board/vpac270Mikhail Kshevetskiy2010-10-19-55/+0
| | | | | | | | | | | | This file is not used, automatically generated u-boot.lds is used instead Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
| * PXA: Add missing MAINTAINERS entriesMarek Vasut2010-10-19-0/+2
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Balloon3 board supportMarek Vasut2010-10-19-0/+640
| | | | | | | | | | | | | | | | | | The following hardware is currently supported: - UART - USB Host - FPGA Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Voipac270 improvementsMarek Vasut2010-10-19-81/+88
| | | | | | | | | | | | | | | | | | | | 128MB NOR module support. Define __io to get harddrive working. Fix saving of environment into OneNAND. Boot from harddrive when possible. Add missing MAINTAINERS entry. Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Add initial Palm LifeDrive supportMarek Vasut2010-10-19-0/+495
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: Palm Tungsten|C SupportMarek Vasut2010-10-19-0/+454
| | | | | | | | | | | | | | | | | | | | | | This patch adds support for the Palm Tungsten|C PXA255 board. The support includes: - LCD - MMC - UART - NOR Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * common: Enable serial for PXA250Marek Vasut2010-10-19-1/+1
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: pxafb: Marvell Littleton LCD definitionMarek Vasut2010-10-19-0/+33
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: pxafb: Add support for Sharp LQ038J7DH53Marek Vasut2010-10-19-0/+34
| | | | | | | | | | | | This LCD panel is found in Palm LifeDrive handheld Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: pxafb: Add ACX517AKN supportMarek Vasut2010-10-19-0/+34
| | | | | | | | | | | | ACX517AKN LCD panel is found in Palm Tungsten|C Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: pxa-regs.h cleanupMarek Vasut2010-10-19-1730/+1911
| | | | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * PXA: pxafb: Fix indent problemsMarek Vasut2010-10-19-100/+100
| | | | | | | | | | | | Also change the initializer style Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
| * Merge branch 'at91' of git://git.denx.de/u-boot-atmelWolfgang Denk2010-10-19-478/+221
| |\
| | * AT91 clock/timer: move static data to global_data structReinhard Meyer2010-10-19-71/+83
| | | | | | | | | | | | | | | | | | | | | | | | clock.c / timer.c used static data and are called before relocation. Move all static variables into global_data structure. Also cleanup timer.c from unused stubs and make it truly use 64 bit tick values. Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
| | * at91rm9200ek: enbable USB supportAndreas Bießmann2010-10-19-0/+15
| | | | | | | | | | | | | | | | | | | | | This patch enables USB for at91rm9200ek board. Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
| | * at91rm9200: enable USB supportAndreas Bießmann2010-10-19-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch fixes arch-at91/hardware.h to have the relevant defines for at91rm9200 devices to support existing at91 usb driver. Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
| | * at91rm9200ek: convert to at91Andreas Bießmann2010-10-19-409/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes some functionality from at91rm9200ek board but the remaining functionality does now work with newer at91 code and arm-relocation. Currently missing features are: - dataflash booting (due to missing HW for testing) - MMC/SD-Card - first stage bootloader support is completely removed (not needed for NOR) Cause this board was (some days ago) reference for all at91rm9200 based boards this should be a good starting point to convert all remaining at91rm9200 borads to at91 code. Aside from that this is a good base to get some drivers between at91sam/at91rm/avr32 merged. Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
| * | Merge branch 'elf_reloc'Wolfgang Denk2010-10-19-424/+378
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/include/asm/config.h board/LaCie/edminiv2/config.mk board/karo/tx25/config.mk board/logicpd/imx27lite/config.mk doc/README.arm-relocation Signed-off-by: Wolfgang Denk <wd@denx.de>
| | * | arm1136, qong: add support for ELF relocationsHeiko Schocher2010-10-13-78/+108
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Heiko Schocher <hs@denx.de> cc: Albert ARIBAUD <albert.aribaud@free.fr>
| | * | armv7, beagle: add support for ELF relocationsHeiko Schocher2010-10-13-54/+86
| | | | | | | | | | | | | | | | Signed-off-by: Heiko Schocher <hs@denx.de>
| | * | arm926ejs, tx25: add support for ELF relocationsHeiko Schocher2010-10-13-6/+21
| | | | | | | | | | | | | | | | Signed-off-by: Heiko Schocher <hs@denx.de>
| | * | arm926ejs, magnesium: add support for ELF relocationsHeiko Schocher2010-10-13-0/+3
| | | | | | | | | | | | | | | | Signed-off-by: Heiko Schocher <hs@denx.de>
| | * | edminiv2: add support for ELF relocationsAlbert Aribaud2010-10-13-2/+7
| | | | | | | | | | | | | | | | Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
| | * | arm: implement ELF relocationsAlbert Aribaud2010-10-13-290/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ELF relocation tables generated with linker option -pie can be used to fixup code and data in a single loop at relocation, removing the need for manual fixups anywhere else in the code. Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
| * | | Merge branch 'master' of git://git.denx.de/u-boot-imxWolfgang Denk2010-10-19-87/+90
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: board/logicpd/imx31_litekit/config.mk boards.cfg Signed-off-by: Wolfgang Denk <wd@denx.de>
| | * | | QONG: fix and update board config fileWolfgang Denk2010-10-19-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix flash memory map and other updates for QONG board: - adjust/fix "kernel_addr" settings - adjust/fix mtdparts NOR flash settings - add mtdparts NAND flash mapping - sort command list - enable "setexpr" command - enable ext2 support - delete bogus comment Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefano Babic <sbabic@denx.de>