29 Mar, 2012
24 commits
-
The fdtdec_find_aliases_for_id() function is complicated enough that
it really should have some tests. This does not necessarily need to be
committed to U-Boot, but it might be useful.(note there are a few minor inconsistencies with this patch which will be
cleaned up when the USB series is applied)Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
Stephen Warren pointed out that we should use nodes whether or not they
have an alias in the /aliases section. The aliases section specifies the
order so far as it can, but is not essential. Operating without alisses
is useful when the enumerated order of nodes does not matter (admittedly
rare in U-Boot).This is considerably more complex, and it is important to keep this
complexity out of driver code. This patch creates a function
fdtdec_find_aliases() which returns an ordered list of node offsets
for a particular compatible ID, taking account of alias nodes.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
The 4.2.2 gcc in the ELDK42 release doesn't like the direct SP
load using a constant in tegra2_start. Change it to use a load
thru another reg using mov sp, %0 : : "r"(CONST).Tested on my Seaboard T20-A03, U-Boot loads and runs OK. Also
compiled all tegra2 builds with both gcc 4.2.2 and 4.4.1 OK.Signed-off-by: Tom Warren
Acked-by: Simon Glass
Tested-by: Simon Glass -
Ensure that transmit and receive buffers are cache-line aligned.
Invalidate cache for each packet as received, update receive buffer
descriptors one cache line at a time, flush cache before transmitting.Original patch by Marek:
http://lists.denx.de/pipermail/u-boot/2012-February/117695.htmlSigned-off-by: Eric Nelson
Acked-by: Marek Vasut
Tested-by: Marek Vasut -
This will prevent the need for architectures whose DMA alignment
is greater than 32 to have bounce buffers.Signed-off-by: Eric Nelson
-
Signed-off-by: Marek Vasut
Cc: Stefano Babic -
This allows i.MX28 MMC host to fully utilize DMA transfers and caches, greatly
improving speed.Signed-off-by: Marek Vasut
Cc: Fabio Estevam -
This utilizes the newly introduced bounce buffers in the MMC layer.
Signed-off-by: Marek Vasut
Cc: Stefano Babic
Cc: Andy Fleming
Cc: Fabio Estevam -
This implements generic bounce buffer at the end of MMC command submission
chain. Therefore if unaligned data are passed, they are copied. This stuff
should be pushed down into the MMC subsystem to squash all places generating
these unaligned data.Signed-off-by: Marek Vasut
Cc: Andy Fleming -
Signed-off-by: Marek Vasut
Cc: Stefano Babic -
The desc_append() now flushes descriptors into RAM.
Signed-off-by: Marek Vasut
Cc: Stefano Babic -
Signed-off-by: Marek Vasut
Cc: Stefano Babic
Acked-by: Stefano Babic -
Building for vpac270_ond_256 configuration fails:
arch/arm/lib/libarm.o: In function `icache_disable':
/home/ag/git/u-boot/arch/arm/lib/cache-cp15.c:156: multiple
definition of `icache_disable'
board/vpac270/libvpac270.o:/home/ag/git/u-boot/board/vpac270/onenand.c:65:
first defined here
arch/arm/lib/libarm.o: In function `dcache_disable':
/home/ag/git/u-boot/arch/arm/lib/cache-cp15.c:188: multiple
definition of `dcache_disable'
board/vpac270/libvpac270.o:/home/ag/git/u-boot/board/vpac270/onenand.c:66:
first defined here
make[1]: *** [/home/ag/git/u-boot/spl/u-boot-spl] Error 1Signed-off-by: Anatolij Gustschin
Cc: Marek Vasut
Acked-by: Marek Vasut -
Fix:
common/libcommon.o: In function `cread_line':
/home/ag/git/u-boot/common/main.c:695: undefined reference to `get_ticks'
/home/ag/git/u-boot/common/main.c:695: undefined reference to `get_tbclk'
/home/ag/git/u-boot/common/main.c:698: undefined reference to `get_ticks'Signed-off-by: Anatolij Gustschin
Cc: Alessandro Rubini
Acked-by: Marek Vasut
Acked-by: Alessandro Rubini -
commit 72fa467988e7944407a634ddc4bc6a2df685c04c moved atmel_mci_init() into
include/atmel_mci.h. Some AT91 boards are also using this interface and need
to include atmel_mci.h now.This patch fixes MAKEALL complaints like this:
---88---
Signed-off-by: Andreas Bießmann
CC: Albert Aribaud
CC: Reinhard Meyer
CC: egnite GmbH -
Add support to read the boot src register and set bootcmd env from the
selected bootcmdX env setting.Based on Linkstation boot choice selection.
Signed-off-by: Rob Herring
-
Update the highbank config to use env from NVRAM. Also remove extra env
settings as they are not used unless the default env is used.Signed-off-by: Jason Hobbs
Signed-off-by: Rob Herring -
Implement reset for highbank platform. Reset is triggered via a wfi
instruction, so enabling armv7 for the compiler is necessary.Signed-off-by: Rob Herring
-
Add boot counter support using an sysreg which is persistent across reset.
Signed-off-by: Rob Herring
-
Make some space at the beginning of RAM so the FDT can be loaded to a
known fixed address at 0x1000.Signed-off-by: Rob Herring
-
udelay calls were off due to failing to convert us to ns. Fix this and drop
the unnecessary shifts since NS_PER_TICK is only 7ns.Signed-off-by: Rob Herring
-
The get_tbclk function was missing and the recent commit "common: add
possibility for readline_into_buffer timeout" makes it required.Signed-off-by: Rob Herring
-
Add include of netdev.h to pick-up declaration of calxedaxgmac_initialize.
Signed-off-by: Rob Herring
-
Include linux/compiler.h to fix build error due to missing __aligned
definition.Signed-off-by: Rob Herring
28 Mar, 2012
16 commits
-
Add exynos4_dmc structure in dmc.h for exynos4 dram controllor(DMC).
Signed-off-by: Chander Kashyap
Signed-off-by: Minkyu Kang -
This properly configures the mux to enable all UARTs.
This also fixes things so that we don't configure balls XUCTSN_1 and
XURTSN_1 as UART1 configuration (RTS/CTS), since they aren't
connected.Signed-off-by: Doug Anderson
Acked-by: Chander kashyap
Signed-off-by: Minkyu Kang -
This patch fixes the s3c24x0 timer code to work with the ARM
relocation feature.Signed-off-by: David Mueller
Signed-off-by: Minkyu Kang -
- change CONFIG_ENV_RANGE to contain 2 nand erase blocks,
one for bad block reserve.
- remove from the envvariable "img_writeramdisk" the
ubifsmount command, as it is not needed.
- erase the hole mtd partition containing u-boot
- save environment variable "dvn_app_vers" and "dvn_boot_vers"
only after installing the new image.
changes requested from Marek Vasut:
- arm, davinci: fix eldk-4.2 warnings for cam_enc_4xx board
- get rid of run_command2 usage
needed since patch:
commit 009dde1955583e306cf904c864068f3acb0db499
Author: Simon Glass
Date: Tue Feb 14 19:59:20 2012 +0000Rename run_command2() to run_command()
is now in mainline.
- add CONFIG_SPL_LIBGENERIC_SUPPORT support
- remove CONFIG_CMD_PXE support
- fix warning:
cam_enc_4xx.c: In function 'menu_handle':
cam_enc_4xx.c:609: warning: dereferencing type-punned pointer
will break strict-aliasing rules
- fix error:
arm-linux-ld: u-boot-spl: Not enough room for program headers,
try linking with -NSigned-off-by: Heiko Schocher
Cc: Marek Vasut
Cc: Tom Rini
Cc: Fletzer Martin
Cc: Wolfgang Denk -
Implementation of receive-transmit mode for
omap3 MCSPI.Introduces full duplex communication, needed by
some spi devices (such as enc28j60).Signed-off-by: jacopo mondi
-
Signed-off-by: Christian Riesch
Cc: Heiko Schocher
Cc: Tom Rini -
Drop direct access to SOC's registers and use
the function of the GPIO driver for da8xx.[Tom: Remove gpio[68]_base as it's now unused]
Signed-off-by: Stefano Babic
CC: Bastian Ruppert
CC: dzu@denx.de
CC: Sandeep Paulraj
Signed-off-by: Tom Rini -
Signed-off-by: Stefano Babic
Cc: Tom Rini -
Fix chipselect timing for FPGA
Signed-off-by: Stefano Babic
Cc: Tom Rini -
twl4030_pmrecv_vsel_cfg currently first sets up device group (effectively
enabling the supply), and only then sets vsel (selects voltage). This could
lead to wrong voltage for a short time, or even long time if second i2c
write fails.Fix this by writing vsel first and device group after that. Also
introduce error checking to not enable the supply if we failed to set
the voltage, and start logging errors as power supply problems are
usually important.Signed-off-by: Grazvydas Ignotas
-
The following warnings are reported for boards using SOFT ECC.
omap_gpmc.c:33:30: warning: 'hw_nand_oob' defined but not used
omap_gpmc.c:78:13: warning: 'omap_hwecc_init' defined but not used
omap_gpmc.c:116:12: warning: 'omap_correct_data' defined but not used
omap_gpmc.c:182:12: warning: 'omap_calculate_ecc' defined but not used
omap_gpmc.c:208:13: warning: 'omap_enable_hwecc' defined but not usedSigned-off-by: Stefano Babic
Cc: Tom Rini
Cc: Scott Wood -
To avoid a conflict with common/cmd_bootm.c's 'images' (which is
exposed as part of the Linux SPL series), rename the board-specific
'images' to 'imgs'.Cc: Heiko Schocher
Signed-off-by: Tom Rini
Acked-by: Heiko Schocher
Tested-by: Heiko Schocher -
Adds prep subcommand to bootm implementation of ARM. When bootm is called
with the subcommand prep the function stops right after ATAGS creation and
before announce_and_cleanup.This is used in command "cmd_spl export"
Signed-off-by: Simon Schwarz
Acked-by: Stefano Babic
Tested-by: Stefano Babic
Signed-off-by: Tom Rini -
Signed-off-by: Stefano Babic
CC: Tom Rini
CC: Wolfgang Denk
CC: Simon Schwarz -
Signed-off-by: Stefano Babic
CC: Tom Rini
CC: Wolfgang Denk
CC: Simon Schwarz -
Call i2c initialization in spl_board_init only if I2C
is configured for the board.Signed-off-by: Stefano Babic
CC: Tom Rini
CC: Wolfgang Denk
CC: Simon Schwarz