25 Nov, 2014
2 commits
-
Conflicts:
drivers/serial/serial-uclass.cSigned-off-by: Tom Rini
-
Conflicts:
arch/x86/cpu/MakefileSigned-off-by: Tom Rini
23 Nov, 2014
4 commits
-
The sandbox/ext4/fat/generic fs commands do not gracefully deal with files
greater than 2GB. Negative values are returned in such cases.To handle this, the fs functions have been modified to take an additional
parameter of type "* loff_t" which is then populated. The return value
of the fs functions are used only for error conditions.Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
[trini: Update board/gdsys/p1022/controlcenterd-id.c,
drivers/fpga/zynqpl.c for changes]
Signed-off-by: Tom Rini -
When enumerating devices, honour the pci_skip_dev() function. This can
be used by PCI controller drivers to restrict which devices will be
probed.This is required by the NVIDIA Tegra PCIe controller driver, which will
fail with a data abort exception if an access is attempted to a device
number larger than 0 outside of bus 0. pci_skip_dev() is therefore
implemented to prevent any such accesses.Signed-off-by: Thierry Reding
Signed-off-by: Simon Glass -
Except the first loop, init_sata() should return 0 instead of 1
in the others.This patch fix the issue of the 2nd sata port not workable on pci-sata card.
Signed-off-by: Pengbo Li
-
U-Boot has never cared about the type when we get max/min of two
values, but Linux Kernel does. This commit gets min, max, min3, max3
macros synced with the kernel introducing type checks.Many of references of those macros must be fixed to suppress warnings.
We have two options:
- Use min, max, min3, max3 only when the arguments have the same type
(or add casts to the arguments)
- Use min_t/max_t instead with the appropriate type for the first
argumentSigned-off-by: Masahiro Yamada
Acked-by: Pavel Machek
Acked-by: Lukasz Majewski
Tested-by: Lukasz Majewski
[trini: Fixup arch/blackfin/lib/string.c]
Signed-off-by: Tom Rini
22 Nov, 2014
10 commits
-
These conditions never happen.
- There is no real uclass with UCLASS_INVALID id.
- uclass never becomes NULL because ll_entry_start() always returns
a valid pointer.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass -
The variable "drv" never becomes NULL because ll_entry_start()
always returns a valid pointer even if there are no entries.The case "n_ents == 0" is covered by the following "for" loop.
Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass -
If the variable "ret" is equal to "-ENOENT", it is trapped at [1] and
never reaches [2]. At [3], the condition "ret != -ENOENT" is always
true.if (ret == -ENOENT) {
Acked-by: Simon Glass -
Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass -
This fixes this cppcheck report:
[drivers/misc/cros_ec.c:704]: (error) Uninitialized variable: req
Signed-off-by: Simon Glass
Reported-by: Wolfgang Denk -
The SPI function does the same thing, so we may as well just use the new
generic function. The 'cs' parameter was not actually used, so can be
dropped.Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
Acked-by: Heiko Schocher -
This code was not updated when the chip select handling was adjusted. Fix
it to call the correct function.Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
Acked-by: Heiko Schocher -
In some cases we need to manually bind a device to a particular driver.
Add a function to do this.Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
Acked-by: Heiko Schocher -
Add dev_get_parent() as a convenience to obtain the parent of a device.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Acked-by: Heiko Schocher -
When the device is created from a device tree node, it matches a compatible
string. Allow access to that string and the associated data.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Acked-by: Heiko Schocher
21 Nov, 2014
13 commits
-
Since we currently don't have device tree available in SPL, add platform
data so the uart works.Signed-off-by: Simon Glass
-
Provide a CONFIG_DM_STDIO option to enable registering a serial device
with the stdio library. This is seldom useful in SPL, so disable it by
default when building for SPL.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
For SPL we don't expect to need to remove a device. Save some code space
by dropping this feature. The board config can define
CONFIG_DM_DEVICE_REMOVE if this is in fact needed.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
Implement this feature in the uclass so that the baudrate can be changed
with 'setenv baudrate '.Signed-off-by: Simon Glass
-
Add driver model support while retaining the existing legacy code. This
allows the driver to support boards that have converted to driver model
as well as those that have not.Signed-off-by: Simon Glass
-
Before adding driver model support, split out a few of the functions so
that they can be used by the driver model code.Signed-off-by: Simon Glass
Acked-by: Andreas Bießmann -
Modify this driver to support driver model, with platform data required to
determine the GPIOs that it controls.Signed-off-by: Simon Glass
-
When not relying on Coreboot for GPIO init the GPIOs must be set up
correctly. This is currently done statically through a rather ugly method.
As the GPIOs are figured out they can be moved to the device tree and set
up as needed rather than all at the start.In this implementation, board files should call ich_gpio_set_gpio_map()
before the GPIO driver is used in order to provide the GPIO information.
We use the early PCI interface so that this driver can now be used before
relocation.Signed-off-by: Simon Glass
-
For board IDs a common approach is to set aside several GPIOs for use in
determining the board ID. This can provide information about board features
and the revision.Add a function that turns a list of GPIOs into an integer by assigning
each GPIO to a single bit.Signed-off-by: Simon Glass
-
In general we can't store things in the data section until we have inited
SDRAM. Some platforms allow this (e.g. those with SPL) but some don't. Move
the pointer to global_data so that it will work on all platforms.Without this fix the serial port will not work prior to relocation with
driver model on some platforms.Signed-off-by: Simon Glass
-
U-Boot has imported various utility macros from Linux
scattering them to various places without consistency.In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
container_of, DIV_ROUND_UP, etc.
In include/linux/compat.h are min_t, max_t, round_up, round_down,
etc.
We also have duplicated defines of min_t in some *.c files.Moreover, we are suffering from too cluttered include/common.h.
This commit moves various macros that originate in
include/linux/kernel.h of Linux to their original position.Note:
This commit simply moves the macros; the macros roundup,
min, max, min2, max3, ARRAY_SIZE are different
from those of Linux at this point.Signed-off-by: Masahiro Yamada
-
The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
and safer than DIV_ROUND.For example,
foo = DIV_ROUND_CLOSEST(x, y++)
works expectedly, but
foo = DIV_ROUND(x, y++)
does not. (y is incremented twice.)Signed-off-by: Masahiro Yamada
-
CONFIG_CPU_ARM920T was introduced into Kconfig by commit 2e07c249a67e
(kconfig: arm: introduce symbol for ARM CPUs).This commit removes all the defines of CONFIG_ARM920T and replaces the
only reference in drivers/usb/host/ohci-hcd.c with CONFIG_CPU_ARM920T.Signed-off-by: Masahiro Yamada
20 Nov, 2014
2 commits
19 Nov, 2014
2 commits
-
The device id makes u-boot think that this chip needs
cfi_reverse_geometry(), which is not the case.
Add it to jedec_flash, so it is handled properly.Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
ff94bc40af3481d47546595ba73c136de6af6929 "mtd, ubi, ubifs: resync with Linux-3.14"
introduced the writebufsize field in struct mtd_info, which
is not initialized in the cfi_flash driver, which leads in
not working ubi on cfi flashes. Fix itSigned-off-by: Heiko Schocher
Reported-by: Andrew Ruder
Acked-by: Stefan Roese
Acked-by: Andrew Ruder
17 Nov, 2014
7 commits
-
The User Register in GMAC IP is used to select interface type.
When with GE feature, it is used to select interface between
RGMII and GMII. If without GE feature, it is used to select
interface between MII and RMII.Signed-off-by: Bo Shen
Signed-off-by: Andreas Bießmann -
As in SAMA5D4 SoC, the gf table in ROM code can not be seen.
So, when we try to use PMECC, we need to build it when do
initialization.
Add a macro NO_GALOIS_TABLE_IN_ROM in soc header file. If it
is defined we will build gf table runtime.The PMECC use the BCH algorithm, so based on the build_gf_tables()
function in lib/bch.c, we can build the Galois Field lookup table.Signed-off-by: Josh Wu
Signed-off-by: Bo Shen
Signed-off-by: Andreas Bießmann -
device ready pin is signalling that the device is ready on state 1
not on 0. Simmiliar as it is in drivers/mtd/nand/nand_spl_simple.cSigned-off-by: Heiko Schocher
Reviewed-by: Andreas Bießmann
Reviewed-by: Bo Shen
Acked-by: Scott Wood
Signed-off-by: Andreas Bießmann -
erase one nand block in spl code. keep it simple, as size matters
This is used on the upcoming taurus spl support.Signed-off-by: Heiko Schocher
Acked-by: Scott Wood
Reviewed-by: Bo Shen
Reviewed-by: Andreas Bießmann
Signed-off-by: Andreas Bießmann -
using this driver in SPL code with CONFIG_SPL_NAND_ECC
configured leads in an compileerror. Fix this.Signed-off-by: Heiko Schocher
Reviewed-by: Andreas Bießmann
Reviewed-by: Bo Shen
[fix subject]
Signed-off-by: Andreas Bießmann -
move CONFIG_SYS_SPI_WRITE_TOUT into drivers/spi/atmel_spi.h
and define a default value. Delete this define in the board
config files, where it is possible (all boards use currently
the same value).Signed-off-by: Heiko Schocher
Reviewed-by: Jagannadha Sutradharudu Teki
Reviewed-by: Andreas Bießmann
Signed-off-by: Andreas Bießmann -
When boot up without mac address setting, it will give the warning
message like: "Warning: failed to set MAC address", however when
execute network related command, it still execute them without any
warning information.With this patch, it will exit directly with following information:
"gmac0: mac address is not valid"It also solve the problem after bootup then set mac address and the
mac address won't set to net device issue.Signed-off-by: Bo Shen
Tested-by: Boris Brezillon
Signed-off-by: Andreas Bießmann