08 Nov, 2016
2 commits
-
When performing a cache disable function, code must not access DRAM.
That is because when the cache is disabled, it will be bypassed and all
loads and stores will be serviced by RAM. This prevents accessing any
dirty data in the cache. In turn, this means the stack cannot be
used, since that is in RAM. To guarantee that code doesn't use RAM (and
in particular the stack) __asm_flush_l3_cache() must be manually
implemented in assembly, rather than implemented in C since the compiler
won't know not to touch RAM.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren -
nvtboot_boot_x0 is a 64-bit variable and hence must be 64-bit aligned.
So far this has happened by accident! Fix the code so this is guaranteed.This fixes the following build error:
... relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC
against symbol `nvtboot_boot_x0' ...Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
06 Nov, 2016
1 commit
-
Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate
config for AR8031") ethernet does not work on mx6sabresd.This commit correctly assigns ar8031_config() as the configuration
function for AR8031 in the same way as done in the Linux kernel.However, on mx6sabresd design we need some additional configuration,
such as enabling the 125 MHz AR8031 output that needs to be done
in the board file.This also aligns with the same method that the kernel performs
the AR8031 fixup in arch/arm/mach-imx/mach-imx6q.c.Signed-off-by: Fabio Estevam
05 Nov, 2016
6 commits
-
Config file names on MAINTAINERS and README in
board/engicam/icorem6 seems to be wrong, hence fixed the same.Cc: Stefano Babic
Cc: Michael Trimarchi
Signed-off-by: Jagan Teki -
For 64-bit ARM systems we provide just a timer_read_counter()
implementation and rely on the generic non-uclass get_ticks() function
in lib/time.c to call the former.
However this function is actually not 64-bit safe, as it assumes a
"long" to be 32-bit. Beside the fact that the resulting uint64_t
isn't bigger than "long" on 64-bit architectures and thus combining two
counters makes no sense, we get all kind of weird results when we try
to OR in the high value shifted by _32_ bits.
So let's avoid that function at all and provide a straight forward
get_ticks() implementation for ARMv8, which also is in line with ARMv7.This fixes occasional immediate time-out expiration issues I see on the
Pine64 board. The root cause of this needs to be investigated, but this
fix looks like the right thing anyway.Signed-off-by: Andre Przywara
-
This file apparently hasn't seen an update in a while, so just sync
it with reality.Signed-off-by: Andre Przywara
-
Check return value when open the plugin file.
Coverity report:
** CID 153926: Error handling issues (NEGATIVE_RETURNS)
/tools/imximage.c: 542 in copy_plugin_code()ifd = open(plugin_file, O_RDONLY|O_BINARY);
>>> CID 153926: Error handling issues (NEGATIVE_RETURNS)
>>> "ifd" is passed to a parameter that cannot be negative.Signed-off-by: Peng Fan
Cc: Stefano Babic
Cc: Tom Rini
Reported-by: Coverity (CID: 153926)
Reviewed-by: Tom Rini -
Coverity complains that this can overflow. If we later increase the size
of one of the strings in the table, it could happen.Adjust the code to protect against this.
Signed-off-by: Simon Glass
Reported-by: Coverity (CID: 150964) -
As the upcoming driver model integration takes up some more precious flash
space first make sure to drop expensive LZMA support.Signed-off-by: Marcel Ziswiler
03 Nov, 2016
3 commits
-
Signed-off-by: Patrick Delaunay
-
board_usb_init() can failed and error should be handled properly.
Signed-off-by: Michal Simek
02 Nov, 2016
1 commit
01 Nov, 2016
1 commit
-
Signed-off-by: Tom Rini
31 Oct, 2016
26 commits
-
Signed-off-by: Jelle van der Waa
-
- Add in system aarch64-linux-gnu toolchain
- Now that all VMs will have aarch64 available, don't exclude them from
other jobs but instead exclude them from the catch-all aarch64 build
- Add JOB= to the Freescale/ARM build to be clear about what it does.
- Add uniphier as a stand-alone jobSigned-off-by: Tom Rini
-
The allocated memory should be freed. Fix it.
Signed-off-by: Simon Glass
Reported-by: Coverity (CID: 150963)
Reviewed-by: Tom Rini -
Prevent cache misalignment message by ensuring that a whole cache line
is flushed.Signed-off-by: Chris Packham
Reviewed-by: Stefan Roese -
Cover-Letter: Fixes several spelling errors for the words "resetting",
"extended", "occur", and "multiple".Signed-off-by: Vagrant Cascadian
Reviewed-by: Simon Glass -
Signed-off-by: Vagrant Cascadian
Reviewed-by: Simon Glass -
Signed-off-by: Vagrant Cascadian
Acked-by: Angelo Dureghello
Reviewed-by: Simon Glass -
Signed-off-by: Vagrant Cascadian
Reviewed-by: Simon Glass -
The autodetect feature doesn't allow users to specify the device tree.
This fix will make it only autodetect if 'fdtimage' is not defined.Signed-off-by: Adam Ford
Reviewed-by: Tom Rini -
Not all networks have a DHCP server configured properly, so these
scripts make it easier to boot in that scenario.Signed-off-by: Adam Ford
Reviewed-by: Tom Rini -
The LCD isn't supported in U-Boot and the LCD is now configured in
the device tree, so this code is pointless.V2: Eliminiate erroneous newline.
Signed-off-by: Adam Ford
Reviewed-by: Tom Rini -
Current logic for query of revision, board_name, config returns
NULL. Users of these functions do a direct strncmp to compare.
Unfortunately, as per conventions require two valid strings to compare
against and the current implementation causes a crash when compared
with NULL.We'd still like to maintain the simplistic usage of these APIs instead
of redundant if (string) res=strncmp(fn(),"cmp",n); flowing all over
the place.Hence, since the version, name and config is already pre-initialized
with empty string, just dont check for invalid header in the first
place and return the empty string to the caller.Reported-by: Brad Griffis
Signed-off-by: Nishanth Menon
Reviewed-by: Lokesh Vutla
Reviewed-by: Tom Rini
[trini: Correct was'nt -> wasn't typo]
Signed-off-by: Tom Rini -
config should have been initialized along with others as defaults.
Signed-off-by: Nishanth Menon
Reviewed-by: Lokesh Vutla
Reviewed-by: Tom Rini -
We should have used TI_DEAD_EEPROM_MAGIC in the first place.
Fixes: d3b98a9eb941 ("ti: common: dra7: Add standard access for board description EEPROM")
Signed-off-by: Nishanth Menon
Reviewed-by: Lokesh Vutla
Reviewed-by: Tom Rini -
Signed-off-by: Alexander von Gernler
-
SPL_MMC_SUPPORT defined in rockchip top level Kconfig instead of
inside rk3288 and default to disable if ROCKCHIP_SPL_BACK_TO_BROM
defined.Signed-off-by: Kever Yang
Reviewed-by: Simon Glass -
A simple introduction.
Signed-off-by: Jacob Chen
Acked-by: Simon Glass -
Unify the partitions of each chip then it will be more easy for us to
write scripts, tools or guides for rockchip chips.Those extra partitions mostly are used to be compatible with our
internal loaders (such as miniloader which was same as spl, or
android loader then we can support dual boot)Signed-off-by: Jacob Chen
Reviewed-by: Kever Yang -
Since we implement the dram capacity auto detect, we don't
need to set the channel number and sdram-channel in dts.Signed-off-by: Kever Yang
Acked-by: Simon Glass
Tested-by: Simon Glass
Tested-by: Vagrant Cascadian -
Add support for rk3288 dram capacity auto detect, support DDR3 and
LPDDR3, DDR2 is not supported.
The program will automatically detect:
- channel number
- rank number
- column address number
- row address numberThe dts file do not need to describe those info after apply this patch.
Signed-off-by: Kever Yang
Tested-by: Simon Glass
Tested-by: Vagrant Cascadian
Tested-by: Vagrant Cascadian -
Enable ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT
to save memory in order to enable add source code for dram capacity
auto-detect.Signed-off-by: Kever Yang
-
rk3399 has two mmc dev controller:
mmc 0: SD card;
mmc 1: EMMCU-Boot will scan the mmc boot device configured by CONFIG_SYS_MMC_ENV_DEV,
since evb has emmc on board, let's set the EMMC as default.Signed-off-by: Kever Yang
-
The GRF base address is missing, fix it.
Signed-off-by: Kever Yang
-
The Clock Multiplier in rk3399 EMMC programmable clock generator
is broken, we can remove its support from SoC GRF register.Without this patch, rk3399 emmc driver is not work after below patch
applied:
6dffdbc mmc: sdhci: Add the programmable clock mode supportSigned-off-by: Kever Yang
-
This function is called from outside the driver. It should be placed into
common SoC code. Move it.Signed-off-by: Simon Glass
Reviewed-by: Kever Yang -
This function is called from outside the driver. It should be placed into
common SoC code. Move it.Also rename the driver symbol to be more consistent with the other rockchip
clock drivers.Signed-off-by: Simon Glass
Reviewed-by: Kever Yang