summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* ARM: versatile: drop warningsStefano Babic2011-09-04-1/+1
| | | | | | | | Drop warning: "passing argument 1 of 'get_ram_size' discards qualifiers from pointer target type" Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Albert Aribaud <albert.u.boot@aribaud.net>
* IMX: scb9328: drop warningsStefano Babic2011-09-04-1/+1
| | | | | | | | Drop warning: "passing argument 1 of 'get_ram_size' discards qualifiers from pointer target type" Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Torsten Koschorrek <koschorrek@synertronixx.de>
* MX31: imx31_litekit: make use of GPIO frameworkStefano Babic2011-09-04-0/+1
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX31: mx31ads: make use of GPIO frameworkStefano Babic2011-09-04-0/+1
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX5: mx51evk: make use of GPIO frameworkStefano Babic2011-09-04-13/+6
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX35: mx35pdk: make use of GPIO frameworkStefano Babic2011-09-04-3/+3
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX5: mx53loco: make use of GPIO frameworkStefano Babic2011-09-04-3/+3
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Jason Liu <r64343@freescale.com>
* MX5: mx53evk: make use of GPIO frameworkStefano Babic2011-09-04-3/+3
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Jason Liu <r64343@freescale.com>
* MX5: vision2: make use of GPIO frameworkStefano Babic2011-09-04-44/+27
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX5: mx53smd: make use of GPIO frameworkStefano Babic2011-09-04-2/+2
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
* MX5: mx53ard: make use of GPIO frameworkStefano Babic2011-09-04-4/+4
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
* MX25: zmx25: make use of GPIO frameworkStefano Babic2011-09-04-21/+14
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Matthias Weisser <weisserm@arcor.de>
* MX5: efikamx: make use of GPIO frameworkStefano Babic2011-09-04-38/+24
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Marek Vasut <marek.vasut@gmail.com>
* MX31: QONG: make use of GPIO frameworkStefano Babic2011-09-04-24/+22
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX35: make use of GPIO framework for MX35 processorStefano Babic2011-09-04-0/+40
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX5: make use of GPIO framework for MX5 processorStefano Babic2011-09-04-7/+35
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX31: make use of GPIO framework for MX31 processorStefano Babic2011-09-04-7/+35
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX25: make use of GPIO framework for MX25 processorStefano Babic2011-09-04-12/+45
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* IMX: uniform GPIO interface using GPIO frameworkStefano Babic2011-09-04-65/+51
| | | | | | | | | IMX processors has a slightly different interface to access GPIOs and do not make use of the provided GPIO framework. The patch substitutes mxc_ specific functions and make use of the API in asm/gpio.h Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX: MX35 / MX5: uniform clock command with powerpcStefano Babic2011-09-04-4/+4
| | | | | | | | | | | There was already a command to show the processor clocks for PowerPC (clocks). For i.MX, the "clockinfo" command was introduce. The patch sets the same command name used on PowerPC. A nasty and not needed newline is also dropped in the help for the command. Signed-off-by: Stefano Babic <sbabic@denx.de>
* MX35: MX35PDK: support additional RAM on CSD1Stefano Babic2011-09-04-9/+23
| | | | | | | Modules on mx35pdk have additional 128MB memory connected to CSD1. Signed-off-by: Stefano Babic <sbabic@denx.de>
* mx53: ddr3: Update DD3 initializationFabio Estevam2011-09-04-9/+9
| | | | | | | | | | | Updated mx53 ddr3 script in order to align with the latest Freescale version from July 8, 2011: -change ESDREF[REF_SEL]=01 (for 32KHz), from incorrect setting of 00 (64KHz) -change DDR3 MR0 write to "setmem /32 0x63fd901c = 0x052080b0" from "0x092080b0". This changes write recovery from 8 clocks to 6 clocks (in line with ESDCFG1[tWR]) Signed-off-by: Lily Zhang <r58066@freescale.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
* ARM: MX51: PLL errata workaroundDavid Jander2011-09-04-0/+60
| | | | | | | | | | | | | This is a port of the official PLL errata workaround from Freescale to mainline u-boot. The PLL's in the i.MX51 processor can go out of lock due to a metastable condition in an analog flip-flop when used at high frequencies. This workaround implements an undocumented feature in the PLL (dither mode), which causes the effect of this failure to be much lower (in terms of frequency deviation), avoiding system failure, or at least decreasing the likelihood of system failure. Signed-off-by: David Jander <david@protonic.nl>
* ARM: versatilepb : drop warnings due to double definitionsStefano Babic2011-09-04-5/+1
| | | | | | | CONFIG_ARCH_VERSATILE_PB is defined twice - drop the define from config.h. Signed-off-by: Stefano Babic <sbabic@denx.de>
* omap4: increase SRAM budget to fix build errorAneesh V2011-09-04-2/+2
| | | | | | | Signed-off-by: Aneesh V <aneesh@ti.com> Cc: Dirk Behme <dirk.behme@googlemail.com> Cc: Sandeep Paulraj <s-paulraj@ti.com> Acked-by: Dirk Behme<dirk.behme@googlemail.com>
* omap4: fix build warning due to signed unsigned comparisonAneesh V2011-09-04-6/+6
| | | | Signed-off-by: Aneesh V <aneesh@ti.com>
* mkimage: Fix 'Unknown OMAP image type - 5'Dirk Behme2011-09-04-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using mkimage with e.g. tools/mkimage -A arm -T firmware -O u-boot -d u-boot.bin foo.img gives a warning "Unknown OMAP image type - 5" while it seems that the image itself is created successfully. This does come from the patch "mkimage: Add OMAP boot image support". The method check_image_type in image_type_params is supposed to just return success or failure. However, for omap it also calls fprintf: static int omapimage_check_image_types(uint8_t type) { if (type == IH_TYPE_OMAPIMAGE) return EXIT_SUCCESS; else { fprintf(stderr, "Unknown OMAP image type - %x", type); return EXIT_FAILURE; } } All the other image checkers and no others have this, so the fix is to simply remove the fprintf. Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> CC: John Rigby <john.rigby@linaro.org> CC: Aneesh V <aneesh@ti.com> CC: Sandeep Paulraj <s-paulraj@ti.com>
* omap: fix gpio related build breaksAneesh V2011-09-04-19/+104
| | | | | Signed-off-by: Aneesh V <aneesh@ti.com> Acked-by: Dirk Behme <dirk.behme@googlemail.com>
* gpio:samsung: s5p_ suffix add for GPIO functions (C210_universal)Łukasz Majewski2011-09-03-14/+14
| | | | | | | | | This is a cosmetic patch, which is changing the gpio_ prefix to s5p_gpio_. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
* SMDKV310: MMC SPL: Remove unwanted dummy functionsChander Kashyap2011-09-03-30/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed dummy functions in "mmc_spl/board/samsung/smdkv310/mmc_boot.c", @mmc_boot.c void do_undefined_instruction(struct pt_regs *pt_regs); void do_software_interrupt(struct pt_regs *pt_regs); void do_prefetch_abort(struct pt_regs *pt_regs); void do_data_abort(struct pt_regs *pt_regs); void do_not_used(struct pt_regs *pt_regs); void do_fiq(struct pt_regs *pt_regs); void do_irq(struct pt_regs *pt_regs); not required as called conditionally in start.S @start.S \#ifdef CONFIG_SPL_BUILD _undefined_instruction: .word _undefined_instruction _software_interrupt: .word _software_interrupt _prefetch_abort: .word _prefetch_abort _data_abort: .word _data_abort _not_used: .word _not_used _irq: .word _irq _fiq: .word _fiq _pad: .word 0x12345678 /* now 16*4=64 */ \#else _undefined_instruction: .word undefined_instruction _software_interrupt: .word software_interrupt _prefetch_abort: .word prefetch_abort _data_abort: .word data_abort _not_used: .word not_used _irq: .word irq _fiq: .word fiq _pad: .word 0x12345678 /* now 16*4=64 */ \#endif e.g. undefined_instruction: get_bad_stack bad_save_user_regs bl do_undefined_instruction Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
* SMDKV310: Fix undefined reference errorChander Kashyap2011-09-03-0/+6
| | | | | | | | | | | | | Fix buld error: undefined reference to '__image_copy_end' and `save_boot_params'. start.o: In function `_image_copy_end_ofs': mmc_spl/board/samsung/smdkv310/start.S:44: undefined reference to `__image_copy_end' start.o: In function `reset': mmc_spl/board/samsung/smdkv310/start.S:137: undefined reference to `save_boot_params' Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
* SMDKV310: Fix build error for smdkv310 boardChander Kashyap2011-09-03-1/+1
| | | | | | | | | Fix build error for smdkv310 board: board/samsung/smdkv310/smdkv310.c:126: undefined reference to `gpio_set_pull' Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
* gpio:samsung s5p_ suffix add for GPIO functionsŁukasz Majewski2011-09-03-35/+35
| | | | | | | | | | | | | | This change is driven by need of general gpio_* functions, which as their parameter are accepting the GPIO pin number, NOT block and pin. This makes the code alike to omap, and allows for using more generic frameworks (e.g. software I2C). Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
* mmc: S5P: Support DMA restarts at buffer boundariesAnton Staaf2011-09-03-4/+11
| | | | | | | | | | | | | | | | | | Currently if a DMA buffer straddles a buffer alignment boundary (512KiB) then the DMA engine will pause and generate a DMA interrupt. Since the DMA interrupt is not enabled it will hang the MMC driver. This patch adds support for restarting the DMA transfer. The SYSTEM_ADDRESS register contains the next address that would have been read/written when a boundary is hit. So we can read that and write it back. The write triggers the resumption of the transfer. Signed-off-by: Anton Staaf <robotboy@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Tested-by : Jaehoon Chung <jh80.chung@samsung.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
* SMDKV310: Fix host compilation of mkv310_imageDirk Behme2011-09-03-0/+1
| | | | | | | | | | | | | | | | | | | Fix compilation of mkv310_image host tool tools/mkv310_image.c: In function 'main': tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once tools/mkv310_image.c:67: error: for each function it appears in.) tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function) resulting from a 'make smdkv310_config'. Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
* arm: fix bd pointer dereference prior initializationIgor Grinberg2011-09-03-4/+5
| | | | | | | gd->bd pointer has been used prior been initialized. Move the relevant code after the initialization. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* arm, lib/board.c: use gd->ram_size instead of bd->bi_memsizeHeiko Schocher2011-09-03-1/+1
| | | | | Signed-off-by: Heiko Schocher <hs@denx.de> cc: Albert Aribaud <albert.u.boot@aribaud.net>
* mx5: Remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFFJason Liu2011-09-03-13/+0
| | | | | | | | | | | | | | | | | CONFIG_L2_OFF is obsolete after the following commit: e47f2db5371047eb9bcd115fee084e6a8a92a239 armv7: rename cache related CONFIG flags Replace the cache related CONFIG flags with more meaningful names. Following are the changes: CONFIG_L2_OFF -> CONFIG_SYS_L2CACHE_OFF Since imx5 does not provide L2 cache operations(Enable/Disable) Simply remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFF Signed-off-by: Jason Liu <jason.hui@linaro.org> Cc:Stefano Babic <sbabic@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
* MX31: removed warnings due to clock.hStefano Babic2011-09-03-1/+1
| | | | Signed-off-by: Stefano Babic <sbabic@denx.de>
* integrator: convert to new build systemLinus Walleij2011-09-03-274/+13
| | | | | | | | | | | | | | | | | This deletes the integrator split_by_variant.sh script and defines a number of unique board types for the core modules that are meaningful to support for the Integrator AP/CP, i.e. the ones that did not just say "unsupported core module" in split_by_variant.sh. If more core modules need to be supported they are easy to add. We delete all the old cruft in Makefile and MAKEALL that was working around the old way of building boards. We create a unique config file per board to satisfy the build system, but they are just oneliners that include the existing integratorap.h and integratorcp.h configs. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* integratorcp: make the board compileLinus Walleij2011-09-03-0/+6
| | | | | | | This defines the requires CONFIG_SYS_* variables to make the Integrator CP board compile. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* integratorap: remove hardcoded 32MB memory cmdlineLinus Walleij2011-09-03-1/+1
| | | | | | | | | The default configuration for the Integrator AP forces memory to be 32 MB on the command line to the kernel, while we have perfect information and detection of the actual memory size in the ATAGs. Delete the confusion. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* integratorap: support some rudimentary commandsLinus Walleij2011-09-03-0/+6
| | | | | | | | This adds support for a subset of the default commands for the Integrator, however since the card does not have Ethernet (unless you plug in a PCI card) we can not use the default command set. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* integratorap: support the hush shellLinus Walleij2011-09-03-0/+2
| | | | | | | Give us some kind of sane shell environment so the bootloader can be used. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* integratorap: support relocationLinus Walleij2011-09-03-9/+8
| | | | | | | | | | The integrator board was apparently never converted over to support relocation until now. After this the integrator u-boot both compiles and boots on the Integrator AP. This also fixes the SDRAM memory size detection. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* integratorap: make the compile work againLinus Walleij2011-09-03-1/+7
| | | | | | | | | The integratorap/cp config for u-boot was outdated and would not even compile, so fix the obvious missing bits for it to start building. After this "make ap920t_config/make all" starts working again. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* arm: lib: memcpy: Do not copy to same addressMatthias Weisser2011-09-03-0/+3
| | | | | | | | In some cases (e.g. bootm with a elf payload which is already at the right position) there is a in place copy of data to the same address. Catching this saves some ms while booting. Signed-off-by: Matthias Weisser <weisserm@arcor.de>
* arm: omap: innovator: use common code for machine typeIgor Grinberg2011-09-03-9/+4
| | | | | | | | | Innovator and H2 boards used machine_is_* macros for setting the machine type. These macros are expanded in compile time and thus leaves unreachable code (though gcc might optimize it). Switch them to use common code for machine type setting. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* arm: nvidia and smdk6400: use common code for machine typeIgor Grinberg2011-09-03-4/+1
| | | | | | | | NVIDIA boards and Samsung SMDK6400 already use a local variant of CONFIG_MACH_TYPE option. Switch to use the new common code. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* MAKEALL ARMv7: Use boards.cfgDirk Behme2011-09-03-21/+2
| | | | | | Use the boards from boards.cfg for building ./MAKEALL ARMV7. Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>