summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* ARMV7: OMAP: I2C driver: Restructure i2c_read_byte functionSteve Sakoman2010-10-20-39/+37
| | | | | | | | This patch removes the "magic number" delays and instead monitors state changes in the status register bits. Signed-off-by: Steve Sakoman <steve.sakomanlinaro.org> Tested-by: Heiko Schocher <hs@denx.de>
* ARMV7: OMAP: I2C driver: Use same timeout value as linux kernel driverSteve Sakoman2010-10-20-6/+8
| | | | | | | | | | This patch matches the poll interval (1 millisecond) and timeout (1 second) used in the linux driver. It also adds a return value of 0 in the event of a timeout error and cleans up some formatting errors in that section of the code. Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org> Tested-by: Heiko Schocher <hs@denx.de>
* 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>
| | * | | i.MX31: Fix Litekit board to use new ARM relocation support.Magnus Lilja2010-10-19-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tested on hardware. Boots Linux nicely. Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
| | * | | MX5: Remove dead code with ENABLE_IMPRECISE_ABORTJason Liu2010-10-19-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code section is dead due to we never define ENABLE_IMPRECISE_ABORT for MX5 Signed-off-by: Jason Liu <r64343@freescale.com>
| | * | | MX31: add delay between USB port setup and resetStefano Babic2010-10-18-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes a usb tree is not popolated after a system reset. It seems a delay is required after setting the USB ports for the MX.31 before resetting the ehci controller. Signed-off-by: Stefano Babic <sbabic@denx.de>
| | * | | MX5: rename mx51 to mx5Jason Liu2010-10-18-52/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename mx51 to mx5 in order to support more mx51 like-style SOCs such as MX53 and the followings. Signed-off-by: Jason Liu <r64343@freescale.com>