05 Mar, 2018
1 commit
-
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include -> #include
#include -> #includeReported-by: Thomas Petazzoni
Signed-off-by: Masahiro Yamada
19 Feb, 2018
1 commit
-
Only ARM and in some configs MIPS really implement arch_fixup_fdt().
Others just use the same boilerplate which is not good by itself,
but what's worse if we try to build with disabled CONFIG_CMD_BOOTM
and enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which was
apparently implemented in arch/xxx/lib/bootm.c.Now with weak arch_fixup_fdt() right in image-fdt.c where it is
used we get both items highlighted above fixed.Signed-off-by: Alexey Brodkin
Cc: Daniel Schwierzeck
Cc: Simon Glass
Cc: York Sun
Cc: Stefan Roese
Reviewed-by: Tom Rini
Reviewed-by: Daniel Schwierzeck
10 Feb, 2018
1 commit
-
config_phylib_all_drivers.h should be included when CONFIG_PHYLIB and
CONFIG_TSEC_ENET are defined.Fixes: 3146f0c017 ("Move PHYLIB to Kconfig")
Signed-off-by: Zhao Qiang
Reviewed-by: York Sun
31 Jan, 2018
1 commit
-
This converts the following to Kconfig:
CONFIG_SYS_BOOT_GET_CMDLINE
CONFIG_SYS_BOOT_GET_KBDSigned-off-by: Derald D. Woods
29 Jan, 2018
1 commit
-
CONFIG_WALNUT was dropped in June 2017 in:
commit 98f705c9cefdfd ("powerpc: remove 4xx support")While at it, the related CONFIG_MACH_SPECIFIC and the have_of
and _machine variables are unused as well, so drop them too.Signed-off-by: Tuomas Tynkkynen
28 Jan, 2018
1 commit
-
Rename the Kconfig option, structures (and their members), as well as
functions of the mpc85xx driver to include mpc8xxx to reflect the more
generic usage.Signed-off-by: Mario Six
11 Jan, 2018
1 commit
-
This patch adds changes necessary to move functionality present in
PowerPC folders with ARM architectures that have DPAA1 QBMan hardware- Create new board/freescale/common/fsl_portals.c to house shared
device tree fixups for DPAA1 devices with ARM and PowerPC cores
- Add new header file to top includes directory to allow files in
both architectures to grab the function prototypes
- Port inhibit_portals() from PowerPC to ARM. This function is used in
setup to disable interrupts on all QMan and BMan portals. It is
needed because the interrupts are enabled by default for all portals
including unused/uninitialised portals. When the kernel attempts to
go to deep sleep the unused portals prevent it from doing soSigned-off-by: Ahmed Mansour
Reviewed-by: York Sun
27 Dec, 2017
1 commit
-
Freescale (NXP) boards have lots of defconfig files per board.
I used "imply PANIC_HANG" for them.Signed-off-by: Masahiro Yamada
Reviewed-by: York Sun
13 Dec, 2017
2 commits
-
Use 'imply' here liberally to avoid the combinatorial explosion of
defconfig changes in the PowerPC boards.Signed-off-by: Tuomas Tynkkynen
-
Use 'imply' here liberally to avoid the combinatorial explosion of
defconfig changes in the PowerPC boards.Signed-off-by: Tuomas Tynkkynen
24 Oct, 2017
1 commit
-
Commit 06ad970b53a3 ("powerpc: mpc85xx: Implemente workaround for CPU
erratum A-007907") clears L1CSR2 for the boot core, but other cores
don't run through the workaround. Add similar code for secondary
cores to clear DCSTASHID field in L1CSR2 register.Signed-off-by: York Sun
03 Oct, 2017
1 commit
-
Convert the powerpc architecture to make use of the new asm-generic/io.h
to provide address mapping functions. As powerpc can actually perform
non-identity mapping between physical & virtual addresses we can't
simply make use of the generic phys_to_virt() & virt_to_phys()
functions. However since map_physmem() already effectively implemented
the same thing as virt_to_phys() we can simply implement virt_to_phys()
instead of map_physmem() & use the generic map_physmem(). We also drop
the no-op unmap_physmem().This has only been build-tested, feedback from architecture maintainers
is welcome.Signed-off-by: Paul Burton
Cc: Wolfgang Denk
27 Aug, 2017
1 commit
-
The function interrupt_init_cpu() is given an int return type but does
not return anything but 0. Rework this to be a void function.Signed-off-by: Tom Rini
Acked-by: Mario Six
16 Aug, 2017
5 commits
-
We are now using an env_ prefix for environment functions. Rename these
other functions as well, for consistency:getenv_vlan()
getenv_bootm_size()
getenv_bootm_low()
getenv_bootm_mapsize()
env_get_default()Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
Rename this function for consistency with env_get().
Signed-off-by: Simon Glass
-
We are now using an env_ prefix for environment functions. Rename these
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename these
two functions for consistency. Also add function comments in common.h.Quite a few places use getenv() in a condition context, provoking a
warning from checkpatch. These are fixed up in this patch also.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
At present we support multiple environment drivers but there is not way to
select between them at run time. Also settings related to the position and
size of the environment area are global (i.e. apply to all locations).Until these limitations are removed we cannot really support more than one
environment location. Adjust the location to be a choice so that only one
can be selected. By default the environment is 'nowhere', meaning that the
environment exists only in memory and cannot be saved.Also expand the help for the 'nowhere' option and move it to the top since
it is the default.Signed-off-by: Simon Glass
[trini: Move all of the imply logic to default X if Y so it works again]
Signed-off-by: Tom Rini
12 Aug, 2017
3 commits
-
This patch converts CONFIG_CMD_REGINFO to Kconfig
Signed-off-by: Christophe Leroy
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Reviewed-by: Philipp Tomsich -
This converts the following to Kconfig:
CONFIG_CMD_PCISigned-off-by: Simon Glass
Reviewed-by: Bin Meng
Reviewed-by: Philipp Tomsich -
This converts the following to Kconfig:
CONFIG_CMD_PCA953XSigned-off-by: Simon Glass
Reviewed-by: Bin Meng
Reviewed-by: Philipp Tomsich
08 Aug, 2017
1 commit
-
Signed-off-by: Alexandru Gagniuc
Acked-by: Joe Hershberger
04 Aug, 2017
1 commit
-
With the changes to fdt_get_base_address() we need to modify the logic
in ft_verify_fdt() for how we check the validity of the CCSR address.Tested-on: qemu-ppce500 -M mpc8544ds
Fixes: 336a44877af8 ("fdt: Correct fdt_get_base_address()")
Cc: York Sun
Cc: Wolfgang Denk
Reviewed-by: Simon Glass
Signed-off-by: Tom Rini
01 Aug, 2017
1 commit
-
Migrate all remaining instances of CMD_NAND, CMD_NAND_TRIMFFS
CMD_NAND_LOCK_UNLOCK and CMD_NAND_TORTURE from the headers into the
defconfig files.Tested-by: Adam Ford
Signed-off-by: Tom Rini
Reviewed-by: Bin Meng
27 Jul, 2017
1 commit
-
Some platforms have very limited SRAM to run SPL code, so there may
not be the same amount space for a malloc pool before relocation in
the SPL stage as the normal U-Boot stage.Make SPL and (the full) U-Boot stage use independent SYS_MALLOC_F_LEN,
so the size of pre-relocation malloc pool can be configured memory
space independently.Signed-off-by: Andy Yan
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
[fixed up commit-message:]
Signed-off-by: Philipp Tomsich
26 Jul, 2017
1 commit
-
This converts the following to Kconfig:
CONFIG_ENV_IS_IN_FLASHSigned-off-by: Simon Glass
25 Jul, 2017
1 commit
-
The above CONFIG options are in Kconfig, and now have correct depends and
inter-dependencies. Migrate these to configs/ from include/configs/. In the
case of CMD_UBIFS also change it to be a default y if CMD_UBI.Signed-off-by: Tom Rini
23 Jul, 2017
13 commits
-
commit 2eb48ff7a210d ("powerpc, 8260: remove support for mpc8260")
removed support for 8260 CPU.This patch remove some remainders.
Signed-off-by: Christophe Leroy
-
Add missing .h and add missing declarations in .h
Declare local functions as static. Make interrupt_init_cpu function
signatures consistent with how decrementer_count is declared.Based on warnings reported by 'make C=2'
Signed-off-by: Christophe Leroy
[trini: drop cpu_init_f as 8xx/83xx are different from the rest, rework
interrupt_init_cpu/decrementer_count]
Signed-off-by: Tom Rini -
Avoid unnecessary assembly functions when they can easily be written
in C.Signed-off-by: Christophe Leroy
-
Avoid unnecessary assembly functions when they can easily be written
in C.Signed-off-by: Christophe Leroy
-
Avoid unnecessary assembly functions when they can easily be written
in C.Signed-off-by: Christophe Leroy
-
Avoid unnecessary assembly functions when they can easily be written
in C.Also remove dc_read() as it is nowhere referenced
Signed-off-by: Christophe Leroy
-
All complex case have been removed and we now only support
MPC866 and MPC885 families.So check_CPU() can be made a lot simpler.
Signed-off-by: Christophe Leroy
-
reginfo command is calling mpc8xx_reginfo(), mpc85xx_reginfo()
or mpc86xx_reginfo() based on CONFIG_ symbol.
As those 3 functions can't me defined at the same time, let's
rename them print_reginfo() to avoid the #ifdefs
The name is kept generic as it is not at all dependent on
powerpc arch and any other arch could want to also print
such information.In addition, as the Makefile compiles cmd/reginfo.c only when
CONFIG_CMD_REGINFO is set, there is no need to enclose the U_BOOT_CMD
definition inside a #ifdef CONFIG_CMD_REGINFOLets all remove the #ifdefs around the U_BOOT_CMD as this
file is only compiled when CONFIG_CMD_REGINFO is definedFinally, this is a PowerPC-only command, disable it on a number of
non-PowerPC platforms.Signed-off-by: Christophe Leroy
Signed-off-by: Tom Rini -
set_msr() and get_msr() are defined and used twice.
This patch moves them into ppc.hSigned-off-by: Christophe Leroy
-
In order to avoid TBU increment due to TBL reaching its max
and wrapping, reset TBL before resetting TBUSigned-off-by: Christophe Leroy
-
The actions inside #ifdef CONFIG_8xx in arch/powerpc/lib/time.c
can be performed before, in a 8xx dedicated function.Signed-off-by: Christophe Leroy
-
This function has never been used, at least since the beginning
of the git repositorySigned-off-by: Christophe Leroy
-
divider is calculated based on SCCR_DFBRG, with:
SCCR_DFBRG 00 => divider 1 = 1 << 0
SCCR_DFBRG 01 => divider 4 = 1 << 2
SCCR_DFBRG 10 => divider 16 = 1 << 4
SCCR_DFBRG 11 => divider 64 = 1 << 6This can be easily converted to a single shift operation:
divider = 1 << (SCCR_DFBRG * 2)Signed-off-by: Christophe Leroy