11 Dec, 2017
3 commits
-
ARCNUM [15:8] field in ARC_AUX_IDENTITY register allows us to
uniquely identify each core in a multi-core system.I.e. with help of this macro each core may get its index in SMP system.
Signed-off-by: Eugeniy Paltsev
Signed-off-by: Alexey Brodkin -
DW SDIO controller has external CIU clock divider controlled via
register in the SDIO IP. Due to its unexpected default value
(we expected it to divide by 1 but in reality it divides by 8)
SDIO IP uses wrong CIU clock (it should be 100000000Hz but actual
is 12500000Hz) and works unstable (see STAR 9001204800).So increase SDIO CIU frequency from actual 12500000Hz to 50000000Hz
by switching from the default divisor value (div-by-8) to the
minimum possible value of the divisor (div-by-2) in HSDK platform
code.Signed-off-by: Eugeniy Paltsev
Signed-off-by: Alexey Brodkin -
With CONFIG_CMD_GPIO compilation reports error:
-------------------------->8---------------------
common/cmd_gpio.c:13:22: fatal error: asm/gpio.h: No such file or directory
#include
^
-------------------------->8---------------------Signed-off-by: Eugeniy Paltsev
Signed-off-by: Alexey Brodkin
09 Dec, 2017
1 commit
08 Dec, 2017
19 commits
-
Linux preserves leading zeros in /proc/cpuinfo, so we
should as well.Otherwise we have the situation that
/sys/firmware/devicetree/base/serial-number
and /proc/cpuinfo disagree in Linux.Signed-off-by: Jakob Unterwurzacher
Reviewed-by: Philipp Tomsich
Acked-by: Philipp Tomsich -
Commit 21f4486faa5d ("armv8: update gd after relocate") sets x18
without checking the return value of spl_relocate_stack_gd().Reviewed-by: Stephen Warren
Signed-off-by: York Sun
CC: Kever Yang
CC: Philipp Tomsich -
Add documentation for the log system.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add a test which tries out various filters and options to make sure that
logging works as expected.Signed-off-by: Simon Glass
-
Enable all logging features on sandbox so that the tests can be run.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Set up logging both before and after relocation.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add a command which exercises the logging system.
Signed-off-by: Simon Glass
-
Add a command for adjusting the log level.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
It is useful to display log messages on the console. Add a simple driver
to handle this.Note that this driver outputs to the console, which may be serial or
video. It does not specifically select serial output.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add the logging header file and implementation with some configuration
options to control it.Signed-off-by: Simon Glass
-
This does not appear to be used by any boards. Before introducing a new
log system, remove this old one.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
With clang this gives a warning because hubsts appears to be used before
it is set, even if ultimately it is not used. Simplify the code to avoid
this problem.Signed-off-by: Simon Glass
-
The debug() macro now evaluates its expression so does not need #ifdef
protection. In fact the current code causes a warning with the new log
implementation. Adjust the code to fix this.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Before adding new features, move these definitions to a separate header
to avoid further cluttering common.h.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
While sandbox works OK without the special-case code, it does result in
console output being stored in the pre-console buffer while sandbox starts
up. If there is a crash or a problem then there is no indication of what
is going on.For ease of debugging it seems better to revert this change also.
This reverts commit d8c6fb8cedbc35eee27730a7fa544e499b3c81cc.
Signed-off-by: Simon Glass
-
We cannot use sandbox memory at 0 since other things use memory at that
address. Move it up out of the way.Note that the pre-console buffer is currently disabled with sandbox, but
this change will avoid confusion if it is manually enabled.Signed-off-by: Simon Glass
-
While sandbox works OK without the special-case code, it does result in
console output being stored in the pre-console buffer while sandbox starts
up. If there is a crash or a problem then there is no indication of what
is going on.For ease of debugging it seems better to revert this change.
This reverts commit 47b98ad0f6779485d0f0c14f337c3eece273eb54.
Signed-off-by: Simon Glass
07 Dec, 2017
17 commits
-
sdram sub command of i2c command does not support Drivers Model.
This adds Drivers Model support to sdram sub command.Signed-off-by: Nobuhiro Iwamatsu
Reviewed-by: Simon Glass
Reviewed-by: Heiko Schocher -
The .probe_chip function is supposed to probe an i2c device on the bus to
determine whether a device is answering to a particular address.
at91_i2c_probe_chip() did not do anything resembling this and always
returned 0.It looks as though at91_i2c_probe_chip() was intended to be a .probe
function for the controller, as it was copied-and-pasted to become
at91_i2c_probe() in 0bc8f640a4d7ed.Removing the at91_i2c_probe_chip() function makes the higher layer
(i2c_probe_chip()) try a zero-length read transfer to test for the
presence of a device instead, which does work.Signed-off-by: Alan Ott
Acked-by: Wenyou Yang
Reviewed-by: Heiko Schocher -
The driver must wait for TXRDY after each byte is pushed into
the i2c FIFO before pushing the next byte. Previously this was
not done for the first byte, causing a race condition with zeros
sometimes being sent for the next byte (which is typically the
first actual data byte).Signed-off-by: Alan Ott
Reviewed-by: Heiko Schocher -
Add some comment describing the purpose of struct members and
functions.Signed-off-by: Beniamino Galvani
Reviewed-by: Simon Glass
Reviewed-by: Heiko Schocher -
Change meson_i2c_xfer_msg() to return -EREMOTEIO in case of NACK, as
done by other drivers. Also, don't change the return error in
meson_i2c_xfer().Signed-off-by: Beniamino Galvani
Reviewed-by: Simon Glass
Reviewed-by: Heiko Schocher -
The datasheet doesn't specify a suggested timeout and 500ms seems very
long: reduce it to 100ms.Signed-off-by: Beniamino Galvani
Reviewed-by: Simon Glass
Reviewed-by: Heiko Schocher -
Expand the Kconfig description with hardware features.
Signed-off-by: Beniamino Galvani
Reviewed-by: Simon Glass
Reviewed-by: Heiko Schocher -
Signed-off-by: Ashish Kumar
Reviewed-by: York Sun -
For case when MC is loaded but DPL is not deployed perform MC
object [DPBP, DPIO, DPNI and DPRC] cleanup.Signed-off-by: Yogesh Gaur
Reviewed-by: York Sun -
Add fall back option, to boot from NOR/QSPI/SD for LS1043, LS1046,
LS1021 in case of distro boot failure.For LS1046, add kernel validation in case of secure boot in sd_bootcmd
and qspi_bootcmd. For LS1043 and LS1021, add kernel validation in case
of secure boot in sd_bootcmd, qspi_bootcmdand nor_bootcmd.Signed-off-by: Vinitha Pillai
Reviewed-by: York Sun -
Adds config CONFIG_FSL_LS_PPA and CONFIG_FSL_CAAM in
LS2080AQDS and LS2080ARDB secure boot defconfig.Removes CONFIG_FIT, as with CONFIG_FSL_LS_PPA enabled,
CONFIG_FIT is selected.Removes CONFIG_SPL_RSA as in NOR boot SPL boot is not done.
Signed-off-by: Udit Agarwal
Reviewed-by: York Sun -
Add the secure boot defconfigs for QSPI boot on LS1088ARDB
and LS1088AQDS platforms.Signed-off-by: Udit Agarwal
Signed-off-by: Vinitha Pillai-B57223
Reviewed-by: York Sun -
Validates PPA, MC, DPC, Bootscript, DPL and Kernel images in ESBC
phase using esbc_validate command.Enable validation of boot.scr script prior to its execution dependent
on "secureboot" flag in environmentAdd header address for PPA to be validated during ESBC phase for
LS1088A platform based on LAyerscape Chasis 3.Moves sec_init prior to ppa_init as for validation of PPA sec must
be initialised before the PPA is initialised.Signed-off-by: Udit Agarwal
Signed-off-by: Vinitha Pillai-B57223
Signed-off-by: Sumit Garg
Reviewed-by: York Sun -
Kernel is now located at 0x1000000 instead of 0xa00000
and envirorment variables are located at 3MB offset instead of
2MB in Flash.Signed-off-by: Bhaskar Upadhaya
Reviewed-by: York Sun -
This is suplement for patch which handle below errata:
A-009007, A-009008, A-008997, A-009798Signed-off-by: Ran Wang
Reviewed-by: York Sun -
Instruction prefetch feature is by default enabled during core
release. This patch add support of disabling instruction prefetch
by setting core mask in PPA. Here each core mask bit represents a
core and prefetch is disabled at the time of core release.Signed-off-by: Prabhakar Kushwaha
Reviewed-by: York Sun