16 Dec, 2015
1 commit
-
This reverts commit e8f954a756a825130d11b9c8fca70101dd8b3ac5, which
causes compiling errors on 32-bit hosts.Acked-by: Aneesh Bansal
Signed-off-by: York Sun
15 Dec, 2015
1 commit
-
uintptr_t which is a typdef for unsigned long is needed for creating
pointers (32 or 64 bit depending on Core) from 32 bit variables
storing the address.
If a 32 bit variable (u32) is typecasted to a pointer (void *),
compiler gives a warning in case size of pointer on the core is 64 bit.The typdef has been moved from include/compiler.h to include/linux/types.h
Signed-off-by: Aneesh Bansal
Reviewed-by: York Sun
07 Dec, 2015
1 commit
-
This patch removes unsued function usb_phy_reset, rather common function
dwc3_phy_reset is used.Signed-off-by: Marek Vasut
01 Dec, 2015
3 commits
-
Add support for the third USB controller for LS1043A.
Signed-off-by: Gong Qianyu
Reviewed-by: York Sun -
Freescale's LS2085A is a another personality of LS2080A SoC with
support of AIOP and DP-DDR.
This Patch adds support of LS2085A Personality.Signed-off-by: Pratiyush Mohan Srivastava
Signed-off-by: Prabhakar Kushwaha
[York Sun: Updated MAINTAINERS files
Dropped #ifdef in cpu.h
Add CONFIG_SYS_NS16550=y in defconfig]
Reviewed-by: York Sun -
LS2080A is a prime personality of Freescale’s LS2085A. It is a non-AIOP
personality without support of DP-DDR, L2 switch, 1588, PCIe endpoint etc.
So renaming existing LS2085A code base to reflect LS2080A (Prime personality)Signed-off-by: Pratiyush Mohan Srivastava
Signed-off-by: Prabhakar Kushwaha
[York Sun: Dropped #ifdef in cpu.c for cpu_type_list]
Reviewed-by: York Sun
20 Nov, 2015
1 commit
-
Add a simple USB keyboard driver for sandbox. It provides a function to
'load' it with input data, which it will then stream through to the normal
U-Boot input subsystem. When the input data is exhausted, the keyboard stops
providing data.Signed-off-by: Simon Glass
13 Nov, 2015
1 commit
-
Condense these updates down to SPDX tags too while doing this. This is
a port of a1452a3771c4eb85bd779790b040efdc36f4274e from the Linux
Kernel.Signed-off-by: Tom Rini
12 Nov, 2015
1 commit
-
Implement a Memory Technology Device (MTD) uclass. It should
include most flash drivers in the future. Though no uclass ops
are defined yet, the MTD ops could be used.The NAND flash driver is based on MTD. The CFI flash and SPI
flash support MTD, too. It should make sense to convert them
to MTD uclass.Signed-off-by: Thomas Chou
06 Nov, 2015
1 commit
-
Use the is_power_of_2() definition from log2.h to align with the
kernel implementation.Signed-off-by: Fabio Estevam
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher
Reviewed-by: Jagan Teki
05 Nov, 2015
2 commits
-
Add fls_long and __ffs64 support to align with the kernel bitops
implementation.Signed-off-by: Fabio Estevam
-
Use the log2 header files from the kernel.
Imported from kernel 4.2.3.
Signed-off-by: Fabio Estevam
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher
Reviewed-by: Jagan Teki
26 Oct, 2015
2 commits
-
sync with linux v4.2
commit 64291f7db5bd8150a74ad2036f1037e6a0428df2
Author: Linus Torvalds
Date: Sun Aug 30 11:34:09 2015 -0700Linux 4.2
This update is needed, as it turned out, that fastmap
was in experimental/broken state in kernel v3.15, which
was the last base for U-Boot.Signed-off-by: Heiko Schocher
Tested-by: Ezequiel Garcia -
add missing definitions for the ubi/ubifs sync
with linux 4.2, also change "#define kfree ..."
into a static inline, so prevent ubi compile error:CC drivers/mtd/ubi/fastmap.o
drivers/mtd/ubi/fastmap.c: In function 'scan_pool':
drivers/mtd/ubi/fastmap.c:475:3: error: called object 'free' is not a functionSigned-off-by: Heiko Schocher
21 Oct, 2015
2 commits
-
GENMASK is used to create a contiguous bitmask([hi:lo]).
This patch is a copy from Linux, with below commit details
"bitops: Fix shift overflow in GENMASK macros"
(sha1: 00b4d9a14125f1e51874def2b9de6092e007412d)Cc: Tom Rini
Cc: Masahiro Yamada
Signed-off-by: Jagan Teki -
Since it's a copy from Linux, this patch moved all
BIT definitions to top so-that it looks same as Linux file.Cc: Tom Rini
Cc: Albert ARIBAUD
Signed-off-by: Jagan Teki
12 Sep, 2015
1 commit
-
introduce BIT() definition, used in at91_udc gadget
driver.Signed-off-by: Heiko Schocher
[remove all other occurrences of BIT(x) definition]
Signed-off-by: Andreas Bießmann
Acked-by: Stefan Roese
Acked-by: Anatolij Gustschin
11 Sep, 2015
1 commit
-
add U-Boot specific changes to the at91_udc linux driver,
so it works with U-Boot.Signed-off-by: Heiko Schocher
26 Aug, 2015
4 commits
-
Increase max sizes for OOB, Page size and eccpos to
suit for Micron MT29F32G08 partSigned-off-by: Siva Durga Prasad Paladugu
-
Update the NAND code to match Linux v4.1. The previous sync was
from Linux v3.15 in commit 4e67c57125290b25.CONFIG_SYS_NAND_RESET_CNT is removed, as the upstream Linux code now
has its own timeout. Plus, CONFIG_SYS_NAND_RESET_CNT was undocumented
and not selected by any board.Signed-off-by: Scott Wood
-
In addition to mtd_block_isbad(), which checks if a block is bad or
reserved, it's needed to check if a block is reserved only (but not
bad). This commit adds an MTD interface for it, in a similar fashion to
mtd_block_isbad().While here, fix mtd_block_isbad() so the out-of-bounds checking is done
before the callback check.Signed-off-by: Ezequiel Garcia
Tested-by: Pekon Gupta
Signed-off-by: Brian Norris
[scottwood: Cherry-picked from Linux 8471bb73ba10ed67]
Signed-off-by: Scott Wood -
I didn't approve the patch that added them. Get them out of the way
before doing a sync.Signed-off-by: Scott Wood
19 Aug, 2015
1 commit
-
The previous commit introduced a useful macro used in makefiles,
in order to reference to different variables (CONFIG_... or
CONFIG_SPL_...) depending on the build context.Per-image config option control is a PITA in C sources, too.
Here are some macros useful in C/CPP expressions.CONFIG_IS_ENABLED(FOO) can be used as a shorthand for
(!defined(CONFIG_SPL_BUILD) && defined(CONFIG_FOO)) || \
(defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_FOO))For example, it is useful to describe C code as follows,
#if CONFIG_IS_ENABLED(OF_CONTROL)
(device tree code)
#else
(board file code)
#endifThe ifdef conditional above is switched by CONFIG_OF_CONTROL during
the U-Boot proper building (CONFIG_SPL_BUILD is not defined), and by
CONFIG_SPL_OF_CONTROL during SPL building (CONFIG_SPL_BUILD is
defined).The macro can be used in C context as well, so you can also write the
equivalent code as follows:if (CONFIG_IS_ENABLED(OF_CONTROL)) {
(device tree code)
} else {
(board file code)
}Another useful macro is CONFIG_VALUE().
CONFIG_VALUE(FOO) is expanded into CONFIG_FOO if CONFIG_SPL_BUILD is
undefined, and into CONFIG_SPL_FOO if CONFIG_SPL_BUILD is defined.You can write as follows:
text_base = CONFIG_VALUE(TEXT_BASE);
instead of:
#ifdef CONFIG_SPL_BUILD
text_base = CONFIG_SPL_TEXT_BASE;
#else
text_base = CONFIG_TEXT_BASE;
#endifThis commit also adds slight hacking on fixdep so that it can
output a correct list of fixed dependencies.If the fixdep finds CONFIG_IS_ENABLED(FOO) in a source file,
we want
$(wildcard include/config/foo.h)
in the U-boot proper building context, while we want
$(wildcard include/config/spl/foo.h)
in the SPL build context.Signed-off-by: Masahiro Yamada
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
05 Aug, 2015
1 commit
-
These will be used for efi.h both for U-Boot running as an EFI application
and as a payload. They come from Linux 4.1.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
25 Jul, 2015
1 commit
22 Jul, 2015
8 commits
-
Currently, kzalloc() returns zero-filled memory, while kmalloc()
simply ignores the second argument and never fills the memory
area with zeros.I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does,
which will make it easier to add more memory allocator variants.With the introduction of __GFP_ZERO flag, going forward, kzmalloc()
variants can fall back to kmalloc() enabling the __GFP_ZERO flag.Signed-off-by: Masahiro Yamada
Reviewed-by: Heiko Schocher
Acked-by: Simon Glass
Reviewed-by: Lukasz Majewski -
The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to
include/linux/compat.h as an inline function in order to avoid the
function call overhead.Signed-off-by: Masahiro Yamada
Reviewed-by: Heiko Schocher
Acked-by: Simon Glass -
The macro cpu_relax() is defined by several headers in different
ways.arch/{arm,avr32,mips}/include/asm/processor.h defines it as follows:
#define cpu_relax() barrier()On the other hand, include/linux/compat.h defines it as follows:
#define cpu_relax() do {} while (0)If both headers are included from the same source file, the warning
warning: "cpu_relax" redefined [enabled by default]
is displayed.It effectively makes it impossible to include
from some sources. Drop the latter.Signed-off-by: Masahiro Yamada
Reviewed-by: Heiko Schocher
Acked-by: Simon Glass
Reviewed-by: Lukasz Majewski -
Map USB XHCI controller base addresses for LS2085A SOC
Signed-off-by: Nikhil Badola
-
Move USB controller Base address mapping from ls102xa immap
to fsl xhci header. This is required to remove any warnings when
controller base addresses are mapped for multiple platforms
in their respective files.Signed-off-by: Nikhil Badola
-
This adjusts (micro)frame length to appropriate value thus
avoiding USB devices to time out over a longer runSigned-off-by: Nikhil Badola
-
Add xhci driver support for all FSL socs
Signed-off-by: Ramneek Mehresh
-
Add support for DWC3 XHCI controller driver
Signed-off-by: Ramneek Mehresh
10 Jul, 2015
1 commit
-
Since commit 09c3280754f8 (mtd, nand: Move common functions from
cmd_nand.c to common place), NAND commands would not work at all
on large devices.=> nand read 80000000 10000 10000
NAND read: Offset exceeds device limit
=> nand erase 100000 100000NAND erase: Offset exceeds device limit
The type of the "size" of "struct mtd_info" is uint64_t, while
mtd_arg_off_size() and mtd_arg_off() treat chipsize as int type.
The chipsize is wrapped around if the argument is given with 2GB
or larger.Acked-by: Heiko Schocher
Acked-by: Scott Wood
Signed-off-by: Masahiro Yamada
30 Jun, 2015
1 commit
-
Move common functions from cmd_nand.c (for calculating offset
and size from cmdline paramter) to common place, so they could
used from other commands which use mtd partitions.For onenand the arg_off_size() is left in common/cmd_onenand.c.
It should use now the common arg_off() function, but as I could
not test onenand I let it there ...Signed-off-by: Heiko Schocher
Acked-by: Scott Wood
Reviewed-by: Jagannadh Teki
28 May, 2015
1 commit
-
In the latest Linux coding style, should be included
rather than . To follow this standard also in U-Boot,
add include/linux/io.h. Currently, it just includes .Signed-off-by: Masahiro Yamada
14 May, 2015
2 commits
-
Add full link training as a fallback in case the fast link training
fails.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
This file (from Linux 3.17) provides defines for display port. Use it so
that our naming is consistent with Linux.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren
22 Apr, 2015
1 commit
-
Muram will power off during deepsleep, and the microcode of qe
in muram will be lost, it should be reload when resume.Signed-off-by: Zhao Qiang
Reviewed-by: York Sun
19 Apr, 2015
1 commit
-
This is useful for creating lists of descriptors, and is better than using
void * for this purpose.Signed-off-by: Simon Glass
Reviewed-by: Marek Vasut