summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-09-04omap4: increase SRAM budget to fix build errorAneesh V
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>
2011-09-04omap4: fix build warning due to signed unsigned comparisonAneesh V
Signed-off-by: Aneesh V <aneesh@ti.com>
2011-09-04mkimage: Fix 'Unknown OMAP image type - 5'Dirk Behme
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>
2011-09-04omap: fix gpio related build breaksAneesh V
Signed-off-by: Aneesh V <aneesh@ti.com> Acked-by: Dirk Behme <dirk.behme@googlemail.com>
2011-09-03gpio:samsung: s5p_ suffix add for GPIO functions (C210_universal)Łukasz Majewski
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>
2011-09-03SMDKV310: MMC SPL: Remove unwanted dummy functionsChander Kashyap
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>
2011-09-03SMDKV310: Fix undefined reference errorChander Kashyap
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>
2011-09-03SMDKV310: Fix build error for smdkv310 boardChander Kashyap
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>
2011-09-03gpio:samsung s5p_ suffix add for GPIO functionsŁukasz Majewski
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>
2011-09-03mmc: S5P: Support DMA restarts at buffer boundariesAnton Staaf
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>
2011-09-03SMDKV310: Fix host compilation of mkv310_imageDirk Behme
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>
2011-09-03arm: fix bd pointer dereference prior initializationIgor Grinberg
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>
2011-09-03arm, lib/board.c: use gd->ram_size instead of bd->bi_memsizeHeiko Schocher
Signed-off-by: Heiko Schocher <hs@denx.de> cc: Albert Aribaud <albert.u.boot@aribaud.net>
2011-09-03mx5: Remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFFJason Liu
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>
2011-09-03MX31: removed warnings due to clock.hStefano Babic
Signed-off-by: Stefano Babic <sbabic@denx.de>
2011-09-03integrator: convert to new build systemLinus Walleij
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>
2011-09-03integratorcp: make the board compileLinus Walleij
This defines the requires CONFIG_SYS_* variables to make the Integrator CP board compile. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2011-09-03integratorap: remove hardcoded 32MB memory cmdlineLinus Walleij
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>
2011-09-03integratorap: support some rudimentary commandsLinus Walleij
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>
2011-09-03integratorap: support the hush shellLinus Walleij
Give us some kind of sane shell environment so the bootloader can be used. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2011-09-03integratorap: support relocationLinus Walleij
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>
2011-09-03integratorap: make the compile work againLinus Walleij
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>
2011-09-03arm: lib: memcpy: Do not copy to same addressMatthias Weisser
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>
2011-09-03arm: omap: innovator: use common code for machine typeIgor Grinberg
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>
2011-09-03arm: nvidia and smdk6400: use common code for machine typeIgor Grinberg
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>
2011-09-03MAKEALL ARMv7: Use boards.cfgDirk Behme
Use the boards from boards.cfg for building ./MAKEALL ARMV7. Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
2011-09-03atmel: Update support of board AT91SAM9M10G45-EK to new styleThomas Petazzoni
Based on earlier work by Alex Waterman <awaterman@dawning.com>. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2011-09-03AT91: fix at91sam9g45.h to include USB Host definesReinhard Meyer
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
2011-09-03make pm9g45 buildable for v2011.06 releaseAsen Dimov
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de> changed at91_serial_hw_init to at91_seriald_hw_init
2011-09-03make pm9263 buildable for v2011.06 releaseAsen Dimov
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
2011-09-03atmel: update at91sam9m10g45 SoC support to new styleThomas Petazzoni
Based on earlier work by Alex Waterman <awaterman@dawning.com>. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2011-09-03pm9261: compiles with the AT91 reworked schemeAsen Dimov
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
2011-09-03tny_a9260/tny_a9g20: update board to the new AT91 organizationThomas Petazzoni
Cc: Albin Tonnerre <tonnerrealbin@gmail.com> CC: Gregory Hermant <gregory.hermant@calao-systems.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2011-09-03sbc35_a9g20: update board to the new AT91 organizationThomas Petazzoni
Cc: Albin Tonnerre <tonnerrealbin@gmail.com> Cc: Gregory Hermant <gregory.hermant@calao-systems.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de> Removed SBC35 from MAKEALL
2011-09-03at91: reworked support for meesc boardMatthias Fuchs
The meesc board support was broken. Within this opportunity, I completely reworked the board files. Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu> Signed-off-by: Matthias Fuchs <Matthias.Fuchs@esd.eu>
2011-08-31MPC8xx: fix build problem for ETX094 boardWolfgang Denk
Commit 7616e78 "Add Ethernet hardware MAC address framework to usbnet" increased the code size and broke building for the ETX094 board. Adjust the linker script to make it build again. While we are at it, remove unused u-boot.lds.debug Signed-off-by: Wolfgang Denk <wd@denx.de>
2011-08-31phy.c: make less verbose - turn printf() into debug()Wolfgang Denk
The PHY driver was too verbose and corrupted the boot message display like this: ... Net: TSEC0 connected to Marvell 88E1111S TSEC1 connected to Marvell 88E1111S TSEC0, TSEC1 ... Turn printf() into debug() so we het the expected output again: ... Net: TSEC0, TSEC1 ... Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Kumar Gala <galak@kernel.crashing.org>
2011-08-26Merge branch 'master' of git://git.denx.de/u-boot-shWolfgang Denk
* 'master' of git://git.denx.de/u-boot-sh: sh: add calling mmc_initialize in board.c sh: sh7757lcr: Add KEEP order to start.o section usb: r8a66597: Fix argument mistake of inl sh: Clean up rsk7264 board settings sh: sh2a: Add sh2a optimize to config.mk sh: Fix rsk7203 alignment problem sh: Add support for SH2A freestanding build sh: Add Renesas rsk7264 board
2011-08-26Merge branch 'master' of git://git.denx.de/u-boot-ubiWolfgang Denk
* 'master' of git://git.denx.de/u-boot-ubi: ubifs: Fix bad free() sequence in ubifs_finddir()
2011-08-22sh: add calling mmc_initialize in board.cYoshihiro Shimoda
Some SH have MMC controller. So, if we need it, we have to call the mmc_initialize(). Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22sh: sh7757lcr: Add KEEP order to start.o sectionYoshihiro Shimoda
The sh7757lcr has a local u-boot.lds because the sh7757lcr is only supported the SPI booting. This patch refers from the commit "sh: Add KEEP order to start.o section" (commit ID: b52da2aed8c2c388661f369052a97d5b5c9ed00a). Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22usb: r8a66597: Fix argument mistake of inlNobuhiro Iwamatsu
Fail in build, because argument of inl used in r8a66597_read_fifo is wrong. r8a66597.h:441:35: error: macro "inl" passed 2 arguments, but takes just 1 In file included from r8a66597-hcd.c:25: r8a66597.h: In function ‘r8a66597_read_fifo’: r8a66597.h:441: error: ‘inl’ undeclared (first use in this function) r8a66597.h:441: error: (Each undeclared identifier is reported only once r8a66597.h:441: error: for each function it appears in.) Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22sh: Clean up rsk7264 board settingsPhil Edworthy
Adjusted default settings so that we can boot zImages and uImages. Removed unused settings, use default commands and where possible calculate all other settings. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22sh: sh2a: Add sh2a optimize to config.mkNobuhiro Iwamatsu
Only the optimization of sh2 had been supported up. This adds the optimization of sh2a. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22sh: Fix rsk7203 alignment problemPhil Edworthy
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22sh: Add support for SH2A freestanding buildPhil Edworthy
SH2A toolchains often only provide an fdpic version of libgcc. This can't be used with bare-metal software like U-Boot, so this patch provides the necessary functions extracted from libgcc. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-22sh: Add Renesas rsk7264 boardPhil Edworthy
The rsk7264 (also know as rsk2+sh7264) is an SH2A based board with 64MB NAND flash and 64MB SDRAM. It is very similar to the rsk7203 board. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-08-19ubifs: Fix bad free() sequence in ubifs_finddir()Wolfgang Denk
Free private_data member element before freeing file structure. This was causing malloc to crash. Also remove unnecessary variable assigments as file structure gets free'd as well. Signed-off-by: Rod Boyce <uboot@teamboyce.co.uk> Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
2011-08-08usb: increase non-bulk timeout for slow chipsets.Jason Cooper
If you take a look at 96820a35, you'll see the original timeout was CONFIG_SYS_HZ. Which is 1000. After the mentioned change, non-bulk timeout was changed to 100. This causes timeout failures on the dreamplug platform when trying to initialize the usb microsd reader. Signed-off-by: Jason Cooper <u-boot@lakedaemon.net> Acked-by: Mike Frysinger <vapier@gentoo.org>
2011-08-08USB: Move USB_PRINTF() out of ifdef in usb_scan_devices()Marek Vasut
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>