08 Dec, 2014
1 commit
-
Introduce a Makefile under arch/$ARCH/ and include it in the
top Makefile (similar to Linux kernel). This allows further
refactoringi like moving architecture-specific code out of global
makefiles, deprecating config variables (CPU, CPUDIR, SOC) or
deprecating arch/$ARCH/config.mk.In contrary to Linux kernel, U-Boot defines the ARCH variable by
Kconfig, thus the arch Makefile can only included conditionally
after the top config.mk.Signed-off-by: Daniel Schwierzeck
Acked-by: Masahiro Yamada
14 Sep, 2014
1 commit
-
Now the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}
are specified in arch/Kconfig.We can delete the ones in arch and board Kconfig files.
This commit can be easily reproduced by the following command:
find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '
/config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ {
N
s/\n[[:space:]]*string//
}
'Signed-off-by: Masahiro Yamada
31 Jul, 2014
1 commit
-
CONFIG_${ARCH} is defined by Kconfig.
Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
30 Jul, 2014
1 commit
-
This commit adds:
- arch/${ARCH}/Kconfig
provide a menu to select target boards
- board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
set CONFIG macros to the appropriate values for each board
- configs/${TARGET_BOARD}_defconfig
default setting of each board(This commit was automatically generated by a conversion script
based on boards.cfg)In Linux Kernel, defconfig files are located under
arch/${ARCH}/configs/ directory.
It works in Linux Kernel since ARCH is always given from the
command line for cross compile.But in U-Boot, ARCH is not given from the command line.
Which means we cannot know ARCH until the board configuration is done.
That is why all the "*_defconfig" files should be gathered into a
single directory ./configs/.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
06 Jun, 2014
2 commits
-
The relocation code can now relocate from anywhere to
the RAM.The old code assumed that the binary was copied to the RAM
by some PBL and then it just relocated the .text section
from the loaded address to the linked address.Now, it first checks if vectors are somewhere else than the
linked address. If yes, there are copied to address 0 (or
to the exception vector base address if register EVBAR is
present).Then, the .text section is relocated from its current location
to the RAM.Signed-off-by: Franck Jullien
-
The OpenRISC architecture specification v1.0 defines
new SPR registers. This patch adds registers definition
for group 0 and update bit definitions for the CPU
configuration register.Signed-off-by: Franck Jullien
13 May, 2014
1 commit
-
gd->bd->bi_baudrate is a copy of gd->baudrate.
Since baudrate is a common feature for all architectures,
keep gd->baudrate only.It is true that bi_baudrate was passed to the kernel in that structure
but it was a long time ago.Signed-off-by: Masahiro Yamada
Cc: Tom Rini
Cc: Simon Glass
Cc: Wolfgang Denk
Cc: Heiko Schocher
Acked-by: Michal Simek (For microblaze)
13 Mar, 2014
1 commit
-
$(SRCTREE)/$(CPUDIR)/u-boot.lds is our default location
of arch-specific linker script.Remove redundant definitions in
arch/{arc,microblaze,openrisc}/config.mk.Signed-off-by: Masahiro Yamada
Cc: Alexey Brodkin
Cc: Stefan Kristiansson
Acked-by: Michal Simek
05 Mar, 2014
1 commit
-
The syntax
CROSS_COMIPLE ?=
does not work because config.mk is parsed after
exporting CROSS_COMPILE.Like Linux Kernel's arch/$(ARCH)/Makefile,
we must write as follows:ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE :=
endifSigned-off-by: Masahiro Yamada
01 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
Cc: Stefan Kristiansson
15 Oct, 2013
2 commits
-
Signed-off-by: Wolfgang Denk
[trini: Drop changes for PEP 4 following python tools]
Signed-off-by: Tom Rini -
Signed-off-by: Wolfgang Denk
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
17 Jul, 2013
1 commit
-
MAKEALL is fine for ppc4xx and mpc85xx.
Run checks were done on our controlcenterd hardware.Signed-off-by: Dirk Eibach
Signed-off-by: Andy Fleming
02 Jul, 2013
1 commit
-
Commit 35fc84fa1ff51e15ecd3e464dac87eb105ffed30 broke bootm on avr32. It
requires to call do_bootm_linux() with flag set to BOOTM_STATE_OS_PREP before
calling it again with flag set to BOOTM_STATE_OS_GO.
Fix this by allowing flag set to BOOTM_STATE_OS_PREP, this however will
require a complete refactoring later on.Signed-off-by: Andreas Bießmann
[trini: Apply to m68k, microblaze, nds32, nios2, openrisc, sh and sparc]
Signed-off-by: Tom Rini
26 Jun, 2013
1 commit
-
At present the arguments to bootm are processed in a somewhat confusing
way. Sub-functions must know how many arguments their calling functions
have processed, and the OS boot function must also have this information.
Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in
the same way.Adjust the code so that arguments are removed from the list before calling
a sub-function. This means that all functions can know that argv[0] is the
first argument of which they need to take notice.Signed-off-by: Simon Glass
10 May, 2013
1 commit
-
Unifies the openrisc boards linker scripts into a common one.
Signed-off-by: Stefan Kristiansson
02 May, 2013
1 commit
-
Delete all occurrences of hang() and provide a generic function.
Signed-off-by: Andreas Bießmann
Acked-by: Albert ARIBAUD
[trini: Modify check around puts() in hang.c slightly]
Signed-off-by: Tom Rini
16 Mar, 2013
1 commit
-
We create a separate header file for link symbols defined by the link
scripts. It is helpful to have these all in one place and try to
make them common across architectures. Since Linux already has a similar
file, we bring this in even though many of the symbols there are not
relevant to us.Each architecture has its own asm/sections.h where symbols specifc to
that architecture can be added. For now everything except AVR32 just
includes the generic header.One change is needed in arch/avr32/lib/board.c to make this conversion
work.Reviewed-by: Tom Rini (version 5)
Signed-off-by: Simon Glass
04 Feb, 2013
1 commit
-
Move openrisc over to use generic global_data.
Signed-off-by: Simon Glass
02 Feb, 2013
1 commit
-
We plan to move architecture-specific data into a separate structure so
that we can make the rest of it common.As a first step, create struct arch_global_data to hold these fields.
Initially it is empty.This patch applies to all archs at once. I can split it if this is really
a pain.Signed-off-by: Simon Glass
20 Oct, 2012
1 commit
-
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini
03 Oct, 2012
2 commits
-
Signed-off-by: Stefan Kristiansson
-
Signed-off-by: Stefan Kristiansson
10 Aug, 2012
2 commits
-
When reset code is in flash, the jump instructions emitted by the
compiler are relative instead of absolute jumps.A fix to the reset code to make correct jumps to the beginning of
code relocated to RAM have also been added.Signed-off-by: Julius Baxter
-
All the global flag defines are the same across all arches. So unify them
in one place, and add a simple way for arches to extend for their needs.Signed-off-by: Mike Frysinger
16 May, 2012
1 commit
-
This field gets read in one place (by "bdinfo"), and we can replace
that with getenv("ipaddr"). After all, the bi_ip_addr field is kept
up-to-date implicitly with the value of the ipaddr env var.Signed-off-by: Mike Frysinger
Reviewed-by: Joe Hershberger
14 Jan, 2012
3 commits
-
Signed-off-by: Stefan Kristiansson
-
Signed-off-by: Stefan Kristiansson
-
Signed-off-by: Stefan Kristiansson