13 May, 2015
1 commit
-
By making the board selections optional, every defconfig will include
the board selection when running savedefconfig so if a new board is
added to the top of the list of choices the former top's defconfig will
still be correct.Signed-off-by: Joe Hershberger
Cc: Masahiro Yamada
Acked-by: Stephen Warren
Cc: Tom Rini
28 Mar, 2015
2 commits
-
We have done with the generic board conversion for all the boards
of ARC, Blackfin, M68000, MicroBlaze, MIPS, NIOS2, Sandbox, X86.Let's select SYS_GENERIC_BOARD for those architectures, so we can
tell which architecture has finished the conversion at a glance.Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
Reviewed-by: Alexey Brodkin -
Move the option to Kconfig renaming it to CONFIG_HAVE_GENERIC_BOARD.
Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
Reviewed-by: Alexey Brodkin
24 Mar, 2015
1 commit
-
Various files are needlessly rebuilt every time due to the version and
build time changing. As version.h is not actually needed, remove the
include.Signed-off-by: Rob Herring
Cc: Albert Aribaud
Cc: Stefano Babic
Cc: Minkyu Kang
Cc: Marek Vasut
Cc: Tom Warren
Cc: Michal Simek
Cc: Macpaul Lin
Cc: Wolfgang Denk
Cc: York Sun
Cc: Stefan Roese
Cc: Nobuhiro Iwamatsu
Cc: Simon Glass
Cc: Philippe Reynes
Cc: Eric Jarrige
Cc: "David Müller"
Cc: Phil Edworthy
Cc: Robert Baldyga
Cc: Torsten Koschorrek
Cc: Anatolij Gustschin
Reviewed-by: Linus Walleij
Reviewed-by: Łukasz Majewski
09 Feb, 2015
16 commits
-
This is required for driver model.
Signed-off-by: Michal Simek
-
This patch has some parts connected together:
- Use _gd in bss section which is automatically cleared
Location at SPL_MALLOC_END wasn't cleared at all
- Use MALLOC_F_LEN(early alloc) instead of FULL MALLOC
(mem_malloc_init is not called at all)
- Simplify malloc and stack init.
At the end of SPL addr is malloc area and below is stackSigned-off-by: Michal Simek
-
Create space for dm_init where calloc is called
and malloc_base has to be initialized.Signed-off-by: Michal Simek
-
Because it is not compatible with DM where
malloc_base has to be available early and init
has to be done in ASM.Signed-off-by: Michal Simek
-
Remove one instruction in the loop which speedup
code copying.Signed-off-by: Michal Simek
-
Compile code with -fPIC to get GOT. Do not build SPL
with fPIC because it increasing SPL size for nothing.Signed-off-by: Michal Simek
-
Setup gd from ASM to be availalbe for board_init_r.
Setting it up in spl_board_init is too late when
MALLOC is used.
Space for gd is located behind MALLOC area at the end of BRAM.Signed-off-by: Michal Simek
-
It is not used at all that's why remove it.
Signed-off-by: Michal Simek
-
Do not use microblaze specific interrupt init function.
Signed-off-by: Michal Simek
-
DTB is added to rodata section:
[ 2] .rodata PROGBITS 84c5b60c 05c60c 00c618 00 A
0 0 4
[ 3] .dtb.init.rodata PROGBITS 84c67c30 068c30 003c80 00 A
0 0 16
[ 4] .rela.dyn RELA 84c6b8b0 06c8b0 000534 0c A
0 0 4
[ 5] .data PROGBITS 84c6bde4 06cde4 001536 00 WA
0 0 16Signed-off-by: Michal Simek
-
Add one more debug message about enabling global interrupts.
Signed-off-by: Michal Simek
-
No functional changes just to pass checkpatch.pl.
Signed-off-by: Michal Simek
-
Do not use specific macros for debugging.
Also remove compilation warning:
w+../arch/microblaze/cpu/interrupts.c: In function 'interrupt_handler':
w+../arch/microblaze/cpu/interrupts.c:153:2: warning: format '%x'
expects argument of type 'unsigned int', but argument 2 has type 'void
(*)(void *)' [-Wformat]
w+../arch/microblaze/cpu/interrupts.c:153:2: warning: format '%x'
expects argument of type 'unsigned int', but argument 4 has type 'void
*' [-Wformat]Signed-off-by: Michal Simek
-
Just coding style cleanup - no functional changes.
Signed-off-by: Michal Simek
-
Show also return address from exception which should
suggest where the problem is.Signed-off-by: Michal Simek
-
Do not save registers below r1 stack pointer because
it is not checked by stack undeflow is not able to detect
it.Signed-off-by: Michal Simek
21 Jan, 2015
2 commits
-
Ensure that stack didn't rewrite important part
of u-boot.Signed-off-by: Michal Simek
-
Enable hardware exception by default to be able to
handle it.Signed-off-by: Michal Simek
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
28 Oct, 2014
1 commit
-
CONFIG_SPL should not be enabled for boards that do not have SPL.
CONFIG_SUPPORT_SPL introduced by this commit should be "select"ed
by boards with SPL support and CONFIG_SPL should depend on it.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
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
09 Sep, 2014
1 commit
-
The basic idea: Define size_t using the __SIZE_TYPE__ compiler-defined
type.For detailed explanation see similar patch for the nios2 arch:
"nios2: Fix printf size_t format related warnings (again...)"
(sha1: 00a2517fcb5159ed016b25130184638b1dbf2f02)Signed-off-by: Vasili Galka
Signed-off-by: Michal Simek
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
21 Jun, 2014
1 commit
-
Linux supports this, and if we are to have compatible device tree files,
U-Boot should also.Avoid giving the device tree files access to U-Boot's include/ directory.
Only include/dt-bindings is accessible.Signed-off-by: Simon Glass
Acked-by: Stephen Warren
Reviewed-by: Masahiro Yamada
19 Jun, 2014
1 commit
-
After all, we have realized "force" argument is completely
useless. fdt_initrd() was always called with force = 1.We should always want to do the same thing
(set appropriate value to the property)
even if the property already exists.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
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
20 Feb, 2014
3 commits
-
It is convenient to have all device trees on the same SoC compiled.
It allows for later easy repackaging without the need to re-run
the make file.- Build device trees with the same SoC under arch/$(ARCH)/dts
- Copy the one specified by CONFIG_DEFAULT_DEVICE_TREE or
DEVICE_TREE=... to dts/dt.dtbSigned-off-by: Masahiro Yamada
-
Unlike Linux Kernel, U-Boot historically had *.dts files under
board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/.I think arch/$(ARCH)/dts dicretory is a better location
to store both *.dts and *.dtsi files.For example, before this commit, board/xilinx/dts directory
had both Microblaze dts (microblaze-generic.dts) and
ARM dts (zynq-*.dts), which are totally unrelated.This commit moves *.dts to arch/$(ARCH)/dts/ directories,
allowing us to describe nicely mutiple DTBs generation in the next commit.Signed-off-by: Masahiro Yamada
-
Useful rules in scripts/Makefile.lib allows us to easily
generate a device tree blob and wrap it in assembly code.We do not need to parse a linker script to get output format and arch.
This commit deletes ./u-boot.dtb since it is a copy of dts/dt.dtb.
Signed-off-by: Masahiro Yamada
19 Feb, 2014
1 commit
-
Commit 779bf42c moved timer functions from
arch/microblaze/lib/time.c to arch/microblaze/cpu/timer.c.But the empty file, arch/microblaze/lib/time.c
has been remaining probably for a human mistake.Signed-off-by: Masahiro Yamada
Cc: Michal Simek
04 Feb, 2014
3 commits
-
Add support for U-BOOT SPL. NOR and RAM mode are supported.
There are 3 images in NOR flash. u-boot.img, dtb and kernel.Signed-off-by: Michal Simek
-
Just list one more exception.
Signed-off-by: Michal Simek
-
It is nice to see u-boot version.
Signed-off-by: Michal Simek
18 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada