- Feb 06, 2020
-
-
Frieder Schrempf authored
In cases when the same SPL should run on boards with i.MX8MM, that differ in DDR configuration, it is necessary to try different parameters and check if the training done by the firmware suceeds or not. Therefore we return the DDR training/initialization success to the upper layer in order to be able to retry with different settings if necessary. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
The DDR firmware binaries are not part of the U-Boot source code, so we should look for them in the build directory, where they need to be copied to before building U-Boot. The ATF binary is already fetched from the build directory, but the README files for the i.MX8M EVKs claim that it needs to be copied to the source directory (which is still true for in-tree builds, but not in general). Therefore we also fix the READMEs to use the build directory as the correct location for all additional binary files. Sined-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
The i.MX8MM register addresses differ from i.MX8M in many ways. One thing to fix is the USB addresses, wo make the USB controllers. Singed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
They definitely don't belong here, but as a quick fix for the missing macros, let's add them here as done for other imx SoCs.
-
Frieder Schrempf authored
Currently we can't use DM_USB in SPL as the ci_udc driver is not ported to DM yet.
-
The board_usb_clean in ehci-mx6 always set to HOST. This is wrong when we running gadget. Change to use type in private data. Signed-off-by:
Ye Li <ye.li@nxp.com> (cherry picked from commit 47809d46abafd91c8fbb90393881f1daddd08af1)
-
Since the i.MX8MM reuses the otg controllers on i.MX7D. We can use CONFIG_USB_EHCI_MX7 for them. Due the TCPC and load switch are used on Typec circuit. Add the board_usb_init and board_usb_cleanup to ehci-mx6 DM driver. So we can implement the TCPC settings in these board functions. Signed-off-by:
Ye Li <ye.li@nxp.com> (cherry picked from commit 67699e88aed8bd36e919f54f9555ae15595faaf7)
-
Since there is no uclass for USB PHY. The device won't be setup for the USB PHY node in DTB. And its associated power domain device won't be turned on neither by DM framework. This patch modifies the ehci-mx6 driver to enable the power domain device before access the USB PHY. This is only for DM driver. For non-DM part, users still need to power on the USB PHY in boards/SoC codes. Signed-off-by:
Ye Li <ye.li@nxp.com> Reviewed-by:
Peng Fan <peng.fan@nxp.com> (cherry picked from commit 3c59c8ea95d401d06736c68c186aec80e214bee8)
-
The i.MX8 has two USB controllers: USBOH and USB3. The USBOH reuses previous i.MX6/7. It has same PHY IP as i.MX7ULP but NC registers are same as i.MX7D. So add its support in ehci-mx6 driver. Also the driver is updated to remove build warning for 64 bits CPU. Signed-off-by:
Ye Li <ye.li@nxp.com> (cherry picked from commit cf0dd3af4c1d6d96e7394da46258e19cf281c6f0)
-
Add a driver for the regulators in the the DA9063 PMIC. Robert Beckett: move regulator modes to header so board code can set modes. Correct mode mask used in ldo_set_mode. Signed-off-by:
Martin Fuzzey <martin.fuzzey@flowbird.group> Signed-off-by:
Robert Beckett <bob.beckett@collabora.com>
-
This adds the basic register access operations and child regulator binding (if a regulator driver exists). Robert Beckett: simplify accesses by using bottom bit of address as offset overflow. This avoids the need to track which page we are on. Signed-off-by:
Martin Fuzzey <martin.fuzzey@flowbird.group> Signed-off-by:
Robert Beckett <bob.beckett@collabora.com>
-
Some PMICs (such as the DA9063) have non-contiguous register maps. Attempting to read the non implemented registers returns an error rather than a dummy value which causes 'pmic dump' to terminate prematurely. Fix this by allowing the PMIC driver to return -ENODATA for such registers, which will then be displayed as '--' by pmic dump. Use a single error code rather than any error code so that we can distinguish between a hardware failure reading the PMIC and a non implemented register known to the driver. Signed-off-by:
Martin Fuzzey <martin.fuzzey@flowbird.group> Signed-off-by:
Robert Beckett <bob.beckett@collabora.com>
-
Some devices (2 wire eeproms for example) use some bits from the chip address to represent the high bits of the offset instead of or as well as using multiple bytes for the offset, effectively stealing chip addresses on the bus. Add a chip offset mask that can be set for any i2c chip which gets filled with the offset overflow during offset setup. Signed-off-by:
Robert Beckett <bob.beckett@collabora.com> Signed-off-by:
Ian Ray <ian.ray@ge.com>
-
Frieder Schrempf authored
In order to auto-select an option from the pxe boot menu, that matches the detected board, we check the board model string in the devicetree and set the default menu selection, if it matches the label of the menu entry and there is no default selection already set. This is useful in combination with SPL that loads a FIT image with U-Boot and multiple DTBs. SPL can detect the board and choose the matching configuration in the FIT by using board_fit_config_name_match(). Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
In order to make it possible to auto select a default entry by matching the data of the menu entries by an external matching function, we add some helpers and expose the menu_set_default_by_item_data_match() function. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
- Feb 05, 2020
-
-
Frieder Schrempf authored
The MX25V8035F is a 8Mb SPI NOR flash and the MX25R1635F is very similar, but has twice the size (16Mb) and supports a wider supply voltage range. They were tested on the Kontron Electronics i.MX6UL and i.MX8MM SoMs. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
- Jan 23, 2020
-
-
Frieder Schrempf authored
Reading the MAC address from ROM is often a standard use case and should not produce a warning. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
In cases where the MDIO bus of one FEC is shared and connected to multiple PHYs, instead of setting CONFIG_FEC_MXC_MDIO_BASE, we can also detect the correct base by looking for a "mdio" subnode in the DT. This is currently only applied to i.MX6SX/UL/ULL and it is still possible to overwrite by setting CONFIG_FEC_MXC_MDIO_BASE. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
This adds the support for Toshiba SPI NAND chips from the Linux kernel. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
To support the SPI MEM API, instead of modifying the existing U-Boot driver, this patch adds a port of the existing Linux driver. This also has the advantage that porting changes and fixes from Linux will be easier. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Perform the replacement to allow platforms use non-DM SPI flash access in SPL/TPL. This is thus far needed on platforms with size constraints. Signed-off-by:
Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Jagan Teki <jagan@openedev.com> Cc: Vignesh R <vigneshr@ti.com> Reviewed-by:
Vignesh R <vigneshr@ti.com>
-
- Jan 06, 2020
-
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jan 04, 2020
-
-
Tom Rini authored
Adam Ford reports that this change breaks booting on da850-evm and Bartosz Golaszewski agrees that with the impending release we should revert the change for now. With that noted: This reverts commit 21a4d80a. Cc: Bartosz Golaszewski <brgl@bgdev.pl> Tested-by:
Adam Ford <aford173@gmail.com> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jan 03, 2020
-
-
Tom Rini authored
- Fixes for host tools with musl C library - Two fixes for TI K3 platforms
-
Lokesh Vutla authored
On K3 devices there are 2 conditions where R5F can deadlock: 1.When software is performing series of store operations to cacheable write back/write allocate memory region and later on software execute barrier operation (DSB or DMB). R5F may hang at the barrier instruction. 2.When software is performing a mix of load and store operations within a tight loop and store operations are all writing to cacheable write back/write allocates memory regions, R5F may hang at one of the load instruction. To avoid the above two conditions disable linefill optimization inside Cortex R5F which will make R5F to only issue up to 2 cache line fills at any point of time. Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Lokesh Vutla authored
Update the ddr settings to use the DDR reg config tool rev 0.2.0. This reduces the aging count(in DDRSS_CTL_274_DATA reg) to 15 in-order to avoid DSS underflow errors. Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Kevin Scholz <k-scholz@ti.com>
-
Sergei Trofimovich authored
The build failure was originally reported on arm64-musl target at https://bugs.gentoo.org/703132. Here is the amd64-musl variant: ``` $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-only_defconfig -j$(nproc) $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-all -j$(nproc) ... include/u-boot/crc.h:37:44: error: unknown type name 'uint'; did you mean 'int'? 37 | void crc16_ccitt_wd_buf(const uint8_t *in, uint len, | ^~~~ | int ``` Note: 'uint' is not defined there. On glibc 'uint' comes from <sys/types.h> and happens to work on most .c files. The change imports 'uint' declaration from '<compiler.h>'. Bug: https://bugs.gentoo.org/703132 Signed-off-by:
Sergei Trofimovich <slyfox@gentoo.org>
-
Sergei Trofimovich authored
The build failure was originally reported on arm64-musl target at https://bugs.gentoo.org/703132. Here is the amd64-musl variant: ``` $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-only_defconfig -j$(nproc) $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-all -j$(nproc) ... In file included from tools/env/../../env/flags.c:7, from tools/env/env_flags.c:1: include/env.h:159:1: error: unknown type name 'ulong'; did you mean 'long'? 159 | ulong env_get_ulong(const char *name, int base, ulong default_val); | ^~~~~ | long ``` Note: 'ulong' is not defined there. On glibc 'ulong' comes from <sys/types.h>: ```c /* Old compatibility names for C types. */ typedef unsigned long int ulong; ``` On musl it comes from <sys/types.h> as well but from under different guards: ```c typedef unsigned long u_long, ulong; ``` The change inlines 'ulong' define similar to 'uint' define. Bug: https://bugs.gentoo.org/703132 Signed-off-by:
Sergei Trofimovich <slyfox@gentoo.org>
-
- Jan 02, 2020
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-videoTom Rini authored
- fix missing graphics output on some x86 boards - avoid using #ifdef in video code - add .gitignore for video font *.S files
-
Dario Binacchi authored
The scripts/Makefile.lib generates an assembler file (*.S) to wrap the font data for each file of type ttf defined in Kconfig. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
https://gitlab.denx.de/u-boot/custodians/u-boot-rockchipTom Rini authored
- Fix latest mainline kernel for rk3308 - Update rk3288-evb config to suport OP-TEE - Fix for firefly-px30 DEBUG_UART channel and make it standalone - Script make_fit_atf add python3 support - Fix rk3328 timer with correct COUNTER_FREQUENCY - Fix rk3328 ATF support with enable spl-fifo-mode
-
Tom Rini authored
- Assorted test.py fixes - Other minor changes
-
Simon Glass authored
This test currently does not run because it specifies the sandbox board instead of sandbox_spl. Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Igor Opaniuk authored
My address at Linaro doesn't exist anymore, so people keep getting mail delivery error responses. Map this address to the actual one. Signed-off-by:
Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by:
Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-
Stephen Warren authored
get_env() was originally written to strip() the output of printenv to isolate the test from any whitespace changes in printenv's output. However, this throws away any whitespace in the variable value, which can cause issues when test code expects to see that whitespace. In fact, printenv never adds any whitespace at all, so there's no need to strip. The strip causes a practical problem for test_env_echo_exists() if state_test_env.get_existent_var() happens to choose a U-Boot variable that contains trailing whitespace. This is true for variable boot_targets. With Python 2, get_existent_var() never returned boot_targets so this issue never caused a practical problem. With Python 3, get_existent_var does sometimes return boot_targets, no doubt due to Python 3's different dict hash key order implementation, about 0.5-2% of the time, so this test appears intermittent. With the strip removed, this intermittency is solved, since the test passes for all possible U-Boot variables. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Robert P. J. Day authored
Various (mostly minor) spelling, grammar and punctuation tweaks for arch/arm/Kconfig. Signed-off-by:
Robert P. J. Day <rpjday@crashcourse.ca>
-
Dario Binacchi authored
As described in doc/README.asn1 document the tools/asn1_compiler is used to "generate bytecode as a C file (*.asn1.[ch]) from *.asn1 file". Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
Add the tool to the ignore list to prevent being marked as unversioned. Signed-off-by:
Dario Binacchi <dariobin@libero.it> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
This code does not really need to use #ifdef. We can use if() instead and gain build coverage without impacting code size. Change the #ifdefs to use IS_ENABLED(), etc., instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This code does not really need to use #ifdef. We can use if() instead and gain build coverage without impacting code size. Change the #ifdefs to use CONFIG_IS_ENABLED() instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-