12 Feb, 2019
1 commit
-
- DM I2C improvements
10 Feb, 2019
2 commits
-
This is no-longer used. Drop it.
Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski -
This enum still exists but we can shrink it a little based on recent
driver-model conversions with samsung. Update it to remove unused items.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
08 Feb, 2019
1 commit
-
Find out the highest alias ID used for certain subsystem.
This call will be used for alocating IDs for i2c buses which are not
described in DT.Signed-off-by: Michal Simek
Reviewed-by: Heiko Schocher
Reviewed-by: Simon Glass
15 Jan, 2019
1 commit
-
With 8 bytes addressing even on 32 bit machines these checks
are no longer valid. Remove them.Signed-off-by: Keerthy
Reviewed-by: Simon Glass
13 Dec, 2018
1 commit
-
Building U-Boot with CONFIG_PCI and CONFIG_DM_PCI enabled, but
CONFIG_SPL_PCI_SUPPORT disabled, results in following linker
error:lib/built-in.o: In function `fdtdec_get_pci_bar32':
lib/fdtdec.c:305: undefined reference to `dm_pci_read_bar32'
fdtdec.c:305:(.text.fdtdec_get_pci_bar32+0x24): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `dm_pci_read_bar32'This is because reference to dm_pci_read_bar32() remains in lib/fdtdec.c
while SPL build does not descend into drivers/pci directory in
drivers/Makefile if CONFIG_SPL_PCI_SUPPORT is not enabled.Fix this by applying appropriate #define guards in lib/fdtdec.c.
It looks like ns16550.c has the same problem, so fixed that too.To simplify this, CONFIG_SPL_PCI_SUPPORT is renamed to CONFIG_SPL_PCI
(enables use of CONFIG_IS_ENABLED() macro).Suggested-by: Vignesh R
Signed-off-by: Sekhar Nori
Reviewed-by: Lokesh Vutla
Reviewed-by: Tom Rini
10 Dec, 2018
1 commit
-
In some cases it may be useful to be able to change the fdt we have been
using and use another one instead. For example, the TI platforms uses an
EEPROM to store board information and, based on the type of board,
different dtbs are used by the SPL. When DM_I2C is used, a first dtb must
be used before the I2C is initialized and only then the final dtb can be
selected.
To speed up the process and reduce memory usage, introduce a new function
fdtdec_setup_best_match() that re-use the DTBs loaded in memory by
fdtdec_setup() to select the best match.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Heiko Schocher
03 Dec, 2018
1 commit
-
The sandbox uses a virtual address space that is neither the physical nor
the virtual address space of the operating system. All address used on the
command line live in this address space. So also the environment variable
${fdtcontroladdr} has to be in this address space.Commands like bootefi and booti receive the fdt address as parameter.
Without the patch ${fdtcontroladdr} cannot be used as parameter value on
the sandbox.Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf
21 Nov, 2018
1 commit
-
When U-Boot proper is compiled with CONFIG_MULTI_DTB_FIT and tries
to call uncompress_blob(), it fails with -ENOTSUPP. This is because
the full implementation of this function which includes compression
is available only in SPL. In U-Boot proper or if the compression is
not enabled, the blob is not compressed and thus can be passed to
locate_dtb_in_fit() in fdtdec_setup() without any changes. Pass the
blob without any changes if compression is not enabled instead of
failing.Signed-off-by: Marek Vasut
Cc: Michal Simek
Cc: Tom Rini
Reviewed-by: Simon Glass
16 Oct, 2018
1 commit
-
This reverts commit c35a7d375ec8f0a8ee343ae4868be3242172632e.
This commit is breaking SPL on zc706.Signed-off-by: Michal Simek
Reviewed-by: Simon Glass
Tested-by: Patrice Chotard [on STM32F746-disco]
09 Oct, 2018
1 commit
-
This function is not used in U-Boot now. Remove it along with its 'memory'
version.Signed-off-by: Simon Glass
30 Sep, 2018
1 commit
-
Converts fdtdec_setup_memory_banksize() to use ofnode functions instead.
Reviewed-by: Simon Glass
Signed-off-by: Jens Wiklander
11 Sep, 2018
1 commit
-
In int-ll64.h, we always use the following typedefs:
typedef unsigned int u32;
typedef unsigned long uintptr_t;
typedef unsigned long long u64;This does not need to match to the compiler's .
Do not include it.The use of PRI* makes the code super-ugly. You can simply use
"l" for printing uintptr_t, "ll" for u64, and no modifier for u32.Signed-off-by: Masahiro Yamada
10 Sep, 2018
1 commit
-
The get_next_memory_node() always sets mem to -1 , which is incorrect,
because then every iteration of memory bank parsing will start from the
first memory bank instead of the previous one.On systems with 1 memory bank defined in DT and CONFIG_NR_DRAM_BANKS=4 ,
like ie. r8a77965-salvator-x , this will result in U-Boot incorrectly
reporting four identical memory banks with the same memory configuration.Fix this by setting mem to startoffset value, which restores the behavior
before the fixed patch was applied.Signed-off-by: Marek Vasut
Cc: Jens Wiklander
Cc: Simon Glass
Cc: Tom Rini
Fixes: 452bc121027d ("fdt: fix fdtdec_setup_memory_banksize()")
Tested-by: Michal Simek [on ZynqMP}
27 Jul, 2018
1 commit
-
Prior to this patch is fdtdec_setup_memory_banksize() incorrectly
ignoring the "status" field. This patch fixes that by testing the status
with fdtdec_get_is_enabled() before using a memory node.Signed-off-by: Jens Wiklander
Reviewed-by: Simon Glass
19 Jul, 2018
2 commits
-
This patch renames the routine fdtdec_setup_memory_size()
to fdtdec_setup_mem_size_base() as it now fills the
mem base as well along with size.Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
Reviewed-by: Tom Rini -
This patch updates the ram_base to store the start address of
the first bank DRAM and the use this ram_base to calculate ram_top
properly. This patch fixes the erroneous calculation of ram_top
incase of non zero ram start address.Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
Reviewed-by: Tom Rini
11 Jul, 2018
1 commit
-
Add support for loading U-Boot on the Broadcom 7445 SoC. This port
assumes Broadcom's BOLT bootloader is acting as the second stage
bootloader, and U-Boot is acting as the third stage bootloader, loaded
as an ELF program by BOLT.Signed-off-by: Thomas Fitzsimmons
Cc: Stefan Roese
Cc: Tom Rini
Cc: Florian Fainelli
09 Jul, 2018
1 commit
-
Support a default memory bank, specified in reg, as well as
board-specific memory banks in subtree board-id nodes.This allows memory information to be provided in the device tree,
rather than hard-coded in, which will make it simpler to handle
similar devices with different memory banks, as the board-id values
or masks can be used to match devices.Signed-off-by: Michael Pratt
Signed-off-by: Simon Glass
Reviewed-by: Vadim Bendebury
18 May, 2018
1 commit
-
The DT bindings for the Arria10 clock init have changed, add another
compatible to make them work with U-Boot until a proper clock driver
gets written.Signed-off-by: Marek Vasut
Cc: Tom Rini
Cc: Chin Liang See
Cc: Dinh Nguyen
08 May, 2018
1 commit
-
Drop the old compatible about max77686.
Signed-off-by: Jaehoon Chung
Acked-by: Lukasz Majewski
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
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
22 Jan, 2018
2 commits
-
Fix some style violations in fdtdec.c, and reduce the scope of some
variables.Reviewed-by: Simon Glass
Signed-off-by: Mario Six -
Fix some whitespace-related style violations in fdtdec.c.
Reviewed-by: Simon Glass
Signed-off-by: Mario Six
16 Jan, 2018
1 commit
-
Similar to CONFIG_OF_BOARD, but in this case the fdt is still built by
u-boot build. This allows the board to patch the fdt, etc.In the specific case of dragonboard 410c, we pass the u-boot generated
fdt to the previous stage of bootloader (by embedding it in the
u-boot.img that is loaded by lk/aboot), which patches the fdt and passes
it back to u-boot.Signed-off-by: Rob Clark
[trini: Update board_fdt_blob_setup #if check]
Signed-off-by: Tom Rini
30 Nov, 2017
3 commits
-
Building spl with CONFIG_OF_EMBED enabled results in an error message
on my board: "SPL image too big". This is because the fdtgrep build
step is only executed for CONFIG_OF_SEPARATE.Fix this by moving the fdtgrep build step ('cmd_fdtgreo') from
scripts/Makefile.spl to dts/Makefile so that the reduced dtb is
available for all kinds of spl builds.The resulting variable name for the embedded device tree blob changes,
too, which is why common.h and fdtdec.c have tiny changes.Signed-off-by: Simon Goldschmidt
Reviewed-by: Simon Glass -
It is legal to have multiple /memory nodes in a device tree . Currently,
fdtdec_setup_memory_size() only supports parsing the first node . This
patch extends the function such that if a particular /memory node does
no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still
allows for more DRAM banks, the code moves on to the next memory node
and checks it's "reg"s. This makes it possible to handle both systems
with single memory node with multiple entries and systems with multiple
memory nodes with single entry.Signed-off-by: Marek Vasut
Cc: Tom Rini
Cc: Simon Glass
26 Nov, 2017
1 commit
-
Add compatible strings for Intel Arria 10 SoCFPGA device.
Signed-off-by: Tien Fong Chee
06 Oct, 2017
3 commits
-
u-boot can be embedded within a FIT image with multiple DTBs. It then
selects at run-time which one is best suited for the platform.
Use the same principle here for the SPL: put the DTBs in a FIT image,
compress it (LZO, GZIP, or no compression) and append it at the end of the
SPL.Signed-off-by: Jean-Jacques Hiblot
[trini: Move default y of SPL_MULTI_DTB_FIT_DYN_ALLOC to it being the
default choice if SYS_MALLOC_F, drop spl.h include from lib/fdtdec.c
it's unused.]
Signed-off-by Tom Rini -
Sort include files in accordance to U-Boot coding style.
Signed-off-by: Jean-Jacques Hiblot
-
CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it
MULTI_DTB_FIT as it is able to get a DTB from a FIT image containing
multiple DTBs. Also move the option to the Kconfig dedicated to the DTS
options and create a README for this feature.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
16 Aug, 2017
1 commit
-
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
29 Jul, 2017
1 commit
-
These are not needed now since the drivers now use driver model. Drop
them.Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren
11 Jul, 2017
1 commit
-
This patch gives U-boot the runtime support to have the board specific
code decide which FDT to use. This is especially useful for devices
that need this type of runtime determination and also doesn't use SPL.Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Lokesh Vutla
Reviewed-by: Tom Rini
03 Jun, 2017
1 commit
-
This gives a warning with some native compilers:
lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 3 has type
‘long unsigned int’ [-Wformat=]Fix it with a cast.
Signed-off-by: Simon Glass
01 Jun, 2017
2 commits
-
Convert this driver to support the live device tree and remove the old
fdtdec support.The keyboard is not yet converted.
Signed-off-by: Simon Glass
-
Some functions deal with structured data rather than simple data types.
It makes sense to have these in their own file. For now this just has a
function to read a flashmap entry. Move the data types also.Signed-off-by: Simon Glass
10 May, 2017
1 commit
-
In some boards like the Raspberry Pi the initial bootloader will pass
a DT to the kernel. When using U-Boot as such kernel, the board code in
U-Boot should be able to provide U-Boot with this, already assembled
device tree blob.This patch introduces a new config option CONFIG_OF_BOARD to use instead
of CONFIG_OF_EMBED or CONFIG_OF_SEPARATE which will initialize the DT
from a board-specific funtion instead of bundling one with U-Boot or as
a separated file. This allows boards like the Raspberry Pi to reuse the
device tree passed from the bootcode.bin and start.elf firmware
files, including the run-time selected device tree overlays.Signed-off-by: Alex Deymo
Reviewed-by: Simon Glass