01 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
Cc: Sonic Zhang
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
13 Feb, 2012
1 commit
-
The bf537-stamp shouldn't need this SPI flash workaround. It was added
by accident a long time ago through a convoluted series of steps which
originated from a customer board (not the bf537-stamp). So drop it to
keep people from incorrectly adding it to their own boards.Signed-off-by: Mike Frysinger
16 Oct, 2011
1 commit
-
The top level Makefile does not do any recursion into subdirs when
cleaning, so these clean/distclean targets in random arch/board dirs
never get used. Punt them all.MAKEALL didn't report any errors related to this that I could see.
Signed-off-by: Mike Frysinger
30 Sep, 2011
3 commits
-
Make it easy for any Blackfin board to enable led/push button tests.
Signed-off-by: Mike Frysinger
-
The flash code has been generalized for everyone, and the uart stub
is simply useless.Signed-off-by: Mike Frysinger
-
No need for our custom implementations now that common code supports
the generic gpio layer.Signed-off-by: Mike Frysinger
04 Jun, 2011
1 commit
-
Now that the zlib code has been relocated to a dedicated subdir, make
sure we still build it with -O2 for boards that want speed over size.Signed-off-by: Mike Frysinger
08 Apr, 2011
3 commits
-
This is a revert of 821ad16fa9900c as Wolfgang doesn't like the new code.
Signed-off-by: Mike Frysinger
-
Unify this convention for all Blackfin boards.
Signed-off-by: Mike Frysinger
-
We don't want/use this value for Blackfin boards, so punt it and have the
common code error out when people try to use it.Signed-off-by: Mike Frysinger
18 Nov, 2010
1 commit
-
Before this commit, weak symbols were not overridden by non-weak symbols
found in archive libraries when linking with recent versions of
binutils. As stated in the System V ABI, "the link editor does not
extract archive members to resolve undefined weak symbols".This commit changes all Makefiles to use partial linking (ld -r) instead
of creating library archives, which forces all symbols to participate in
linking, allowing non-weak symbols to override weak symbols as intended.
This approach is also used by Linux, from which the gmake function
cmd_link_o_target (defined in config.mk and used in all Makefiles) is
inspired.The name of each former library archive is preserved except for
extensions which change from ".a" to ".o". This commit updates
references accordingly where needed, in particular in some linker
scripts.This commit reveals board configurations that exclude some features but
include source files that depend these disabled features in the build,
resulting in undefined symbols. Known such cases include:
- disabling CMD_NET but not CMD_NFS;
- enabling CONFIG_OF_LIBFDT but not CONFIG_QE.Signed-off-by: Sebastien Carlier
19 Oct, 2010
1 commit
-
The change is currently needed to be able to remove the board
configuration scripting from the top level Makefile and replace it by
a simple, table driven script.Moving this configuration setting into the "CONFIG_*" name space is
also desirable because it is needed if we ever should move forward to
a Kconfig driven configuration system.Signed-off-by: Wolfgang Denk
03 Oct, 2010
2 commits
-
The CONFIG_BFIN_CPU option is largely used in the build system, so move
it out of the board config.h and into the board config.mk. It'd be nice
to keep everything in the config.h, but the patch to extract that value
early was rejected.Signed-off-by: Mike Frysinger
-
The old MMR defines are being scrubbed, so convert the driver to use the
new standard helper macros.For the GPIO MMR usage, convert to the new GPIO framework.
Signed-off-by: Mike Frysinger
22 Sep, 2010
1 commit
-
- Revives POST for blackfin arch;
- Removes redundant code:
arch/blackfin/lib/post.c
arch/powerpc/cpu/ppc4xx/commproc.c
arch/powerpc/cpu/mpc512x/common.c
- fixes up the post_word_{load|store} usage.Signed-off-by: Michael Zaidman
Acked-by: Detlev Zundel
Tested-by: Anatolij GustschinList of the maintainers of the affected by patch boards:
Cc: Stephan Linz
Cc: Denis Peter
Cc: Matthias Fuchs
Cc: Peter Tyser
Cc: Stefan Roese
Cc: Mike Frysinger
Cc: Niklaus Giger
Cc: Larry Johnson
Cc: Feng Kan
05 Jul, 2010
4 commits
-
The common gpio code provides a function for handling the spi boot
workaround logic, so switch over to that rather than bang on the
gpio MMRs directly.Signed-off-by: Mike Frysinger
-
Now that we have a unified gpio layer, the misc partial gpio commands
can be unified and made complete (support all possible gpios).Signed-off-by: Mike Frysinger
-
The new common spi framework and spi flash subsystem provides all the same
functionality as the old Blackfin-specific driver, so punt the old one as
it has been sticking around long enough.Signed-off-by: Mike Frysinger
-
The hush shell dynamically allocates (and re-allocates) memory for the
argument strings in the "char *argv[]" argument vector passed to
commands. Any code that modifies these pointers will cause serious
corruption of the malloc data structures and crash U-Boot, so make
sure the compiler can check that no such modifications are being done
by changing the code into "char * const argv[]".This modification is the result of debugging a strange crash caused
after adding a new command, which used the following argument
processing code which has been working perfectly fine in all Unix
systems since version 6 - but not so in U-Boot:int main (int argc, char **argv)
{
while (--argc > 0 && **++argv == '-') {
/* ====> */ while (*++*argv) {
switch (**argv) {
case 'd':
debug++;
break;
...
default:
usage ();
}
}
}
...
}The line marked "====>" will corrupt the malloc data structures and
usually cause U-Boot to crash when the next command gets executed by
the shell. With the modification, the compiler will prevent this with
an
error: increment of read-only location '*argv'N.B.: The code above can be trivially rewritten like this:
while (--argc > 0 && **++argv == '-') {
char *arg = *argv;
while (*++arg) {
switch (*arg) {
...Signed-off-by: Wolfgang Denk
Acked-by: Mike Frysinger
13 Apr, 2010
3 commits
-
The appropriate include/asm-$ARCH directory should already by symlinked
to include/asm so using the whole "asm-$ARCH" path is unnecessary.This change should also allow us to move the include/asm-$ARCH
directories into their appropriate lib/$ARCH/ directories.Signed-off-by: Peter Tyser
-
Now that the other architecture-specific lib directories have been
moved out of the top-level directory there's not much reason to have the
'_generic' suffix on the common lib directory.Signed-off-by: Peter Tyser
-
Previously, a specific file or directory could be compiled with custom
CFLAGS by adding a Makefile variable such as:
CFLAGS_dlmalloc.o =
or
CFLAGS_lib =This method breaks down once multiple files or directories share the
same path. Eg FLAGS_fileA = would incorrectly result in
both dir1/fileA.c and dir2/fileA.c being compiled with .This change allows finer grained control which we need once we move
lib_$ARCH to arch/$ARCH/lib/ and lib_generic/ to lib/. Without this
change all lib/ directories would share the same custom CFLAGS.Signed-off-by: Peter Tyser
17 Jan, 2010
1 commit
-
While the initdram() function makes sense on some arches, it doesn't for
Blackfin systems as it's always implemented the same way.Signed-off-by: Mike Frysinger
08 Jul, 2009
1 commit
-
The BF537-STAMP Blackfin board had a driver for working with NAND devices
that are simply memory mapped. Since there is nothing Blackfin specific
about this, generalize the driver a bit so that everyone can leverage it.Signed-off-by: Mike Frysinger
Signed-off-by: Scott Wood
16 Jun, 2009
1 commit
-
Building the compression code in lib_generic/ with -O2 rather than -Os
gives a nice speed boost without too much code size increase.Signed-off-by: Mike Frysinger
15 Jun, 2009
1 commit
-
All the Blackfin linker scripts were duplicated across the board dirs with
no difference save from the semi-often used ENV_IS_EMBEDDED option. So
unify all of them in the lib_blackfin/ dir and for the few boards that
need to embedded the environment directly, add a LDS_BOARD_TEXT define for
them to customize via their board config file. This is much simpler than
forcing them to duplicate the rest of the linker script.Signed-off-by: Mike Frysinger
13 Jun, 2009
1 commit
-
Many of the help messages were not really helpful; for example, many
commands that take no arguments would not print a correct synopsis
line, but "No additional help available." which is not exactly wrong,
but not helpful either.Commit ``Make "usage" messages more helpful.'' changed this
partially. But it also became clear that lots of "Usage" and "Help"
messages (fields "usage" and "help" in struct cmd_tbl_s respective)
were actually redundant.This patch cleans this up - for example:
Before:
=> help dtt
dtt - Digital Thermometer and ThermostatUsage:
dtt - Read temperature from digital thermometer and thermostat.After:
=> help dtt
dtt - Read temperature from Digital Thermometer and ThermostatUsage:
dttSigned-off-by: Wolfgang Denk
02 Apr, 2009
1 commit
-
Signed-off-by: Mike Frysinger
25 Mar, 2009
6 commits
-
Signed-off-by: Mike Frysinger
-
Signed-off-by: Mike Frysinger
-
Signed-off-by: Mike Frysinger
-
Signed-off-by: Mike Frysinger
-
Signed-off-by: Mike Frysinger
-
Use the common net eth functions to setup the env/global data with the MAC
address, and properly handle the case where CONFIG_SYS_NO_FLASH is defined.Signed-off-by: Mike Frysinger
24 Mar, 2009
2 commits
-
The Boot ROM uses EVT1 as the entry point so set that rather than having
to use a tiny jump block in the default EVT1 location.Signed-off-by: Mike Frysinger
-
Signed-off-by: Mike Frysinger
06 Feb, 2009
1 commit
-
Move the default SPI CS that we boot from into common code so that it can
be used in other SPI drivers and environment settings.Signed-off-by: Mike Frysinger
03 Feb, 2009
1 commit
-
Signed-off-by: Mike Frysinger
02 Feb, 2009
1 commit