- Jul 26, 2011
-
-
Mike Frysinger authored
The targets/prerequisites are the same here; the rules only differ in the recipes. So move the if logic protection to the recipe part so we can keep the rest the same. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
This adds a simple flash test to automatically verify erasing, writing, and reading of sectors. The code is based on existing Blackfin tests but generalized for everyone to use. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
We've got a handy dandy macro already for calculating the number of elements in an array, so use it. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Now that we have the generic GPIO layer, we can easily provide a common implementation for the post_hotkeys_pressed() function based on it. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
The current arch/driver specific UART posts basically boil down to setting the UART to loop back mode, then reading and writing data. If we ignore the loop back part, the rest can be built upon the existing common serial API. So let's do just that. First add a call back for serial drivers to implement loop back control. Then write a post test that walks all of the serial drivers, puts them into loop back mode, and verifies that reading/writing at all the diff baud rates is OK. If a serial driver doesn't support loop back mode (either it can't or it hasn't done so yet), then skip it. This should allow for people to easily migrate to the new post test with existing serial drivers. I haven't touched the few already existing uart post tests as I don't the hardware or knowledge of converting them over. So I've marked the new test as weak which will allow the existing tests to override the default until they are converted. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
The multi serial support has a "ctlr" field which almost no one uses, but everyone is forced to set to useless strings. So punt it. Funny enough, the only code that actually reads this field (the mpc8xx driver) has a typo where it meant to look for the SCC driver. Fix it while converting the check to use the name field. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Heiko Schocher <hs@denx.de> CC: Anatolij Gustschin <agust@denx.de> CC: Tom Rix <Tom.Rix@windriver.com> CC: Minkyu Kang <mk7.kang@samsung.com> CC: Craig Nauman <cnauman@diagraph.com> CC: Marek Vasut <marek.vasut@gmail.com> CC: Prafulla Wadaskar <prafulla@marvell.com> CC: Mahavir Jain <mjain@marvell.com>
-
Mike Frysinger authored
The serial_register function never fails (always return 0), so change it to a void function to avoid wasting overhead on it. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Rather than sticking arch/board/driver specific logic in the common serial code, push it all out to the respective drivers. The serial drivers declare these funcs weak so that boards can still override things with their own definition. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Heiko Schocher <hs@denx.de> CC: Anatolij Gustschin <agust@denx.de> CC: Tom Rix <Tom.Rix@windriver.com> CC: Minkyu Kang <mk7.kang@samsung.com> CC: Craig Nauman <cnauman@diagraph.com> CC: Prafulla Wadaskar <prafulla@marvell.com> CC: Mahavir Jain <mjain@marvell.com> Tested-by:
Minkyu Kang <mk7.kang@samsung.com>
-
Mike Frysinger authored
Some toolchains enable security warning flags by default, but these don't really make sense in the u-boot world. Such as forcing changes like: -printf(foo); +printf("%s", foo); So disable the flags when the compiler supports them. Linux has already merged a similar change in their build system. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
The usage helper doesn't modify the command, so constify its input arg. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
I can't see any obvious needs for the default environment to be writable, so make it const. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
For people who want to manually extract the embedded environment so that it can be manually packed into the final u-boot image, add a config opt to force building of the envcrc tool. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Newer SST flashes have dropped the Auto Address Increment (AAI) word programming (WP) modes in favor of the standard page programming mode that most flashes now support. So add a flags field to the different flashes to support both modes with new and old styles. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Every spi flash uses the same write disable command, so unify this in the common code. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Fixed commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Mike Frysinger authored
These defines are used in only one place, so just inline them. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Now that the common spi_flash structure tracks all the info that these drivers need, kill off their local state indirection and use just what the common code provides. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Once we add a new page_size field for write lengths, we can unify the write methods for most of the spi flash drivers. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Every spi flash uses the same write enable command, so unify this in the common code. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Convert all the comments at the top of the file into help text for people to easily get at with standard -h/--help options. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Acked-by:
Detlev Zundel <dzu@denx.de>
-
Graeme Russ authored
In some circumstances, reset_timer_masked() was called be timer_init() in order to perform architecture specific timer initialisation. In such cases, the required code in reset_timer_masked() has been moved into timer_init()
-
Graeme Russ authored
-
Graeme Russ authored
-
Graeme Russ authored
-
Graeme Russ authored
-
Graeme Russ authored
There is no need to use set_timer(). Replace with appropriate use of get_timer() Signed-off-by:
Graeme Russ <graeme.russ@gmail.com> Acked-by:
Wolfgang Denk <wd@denx.de>
-
Daniel Schwierzeck authored
Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Daniel Schwierzeck authored
Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Aneesh V authored
replace all occurences of CONFIG_PRELOADER with CONFIG_SPL_BUILD Signed-off-by:
Aneesh V <aneesh@ti.com>
-
Aneesh V authored
Signed-off-by:
Aneesh V <aneesh@ti.com>
-
Aneesh V authored
Signed-off-by:
Aneesh V <aneesh@ti.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
-
Daniel Schwierzeck authored
Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Daniel Schwierzeck authored
Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Daniel Schwierzeck authored
Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Daniel Schwierzeck authored
Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Jens Scharsig authored
* Fix: if using md5 command watchdog timed out * change function call md5(..) to the watchdog-safe variant md5_wd(..) to support watchdog reset Signed-off-by:
Jens Scharsig <esw@bus-elektronik.de>
-
Jens Scharsig authored
* Fix: if using sha1 command watchdog timed out * change function call sha1_csum(..) to the watchdog-safe variant sha1_csum_wd(..) to support watchdog reset Signed-off-by:
Jens Scharsig <esw@bus-elektronik.de>
-
Matthew McClintock authored
It might be desirable to have the ability to flush icache/dcache within u-boot, this patch gives each arch the ability to provide a flush_dcache/flush_icache function to let u-boot flush caches from the prompt Signed-off-by:
Matthew McClintock <msm@freescale.com>
-
Matthew McClintock authored
Print a message if we do not have the ability to uncompress a gzip image. Before, u-boot would just assume the routines were available Signed-off-by:
Matthew McClintock <msm@freescale.com>
-
Matthew McClintock authored
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by:
Matthew McClintock <msm@freescale.com>
-
Laurence Withers authored
In miiphy_register() the new device's name was initialised by passing a string parameter as the format string to sprintf(). As this would cause problems if it ever contained a '%' symbol, switch to using strncpy() instead. Signed-off-by:
Laurence Withers <lwithers@guralp.com> Cc: Andy Fleming <afleming@freescale.com>
-