- Aug 29, 2017
-
-
Anatolij Gustschin authored
There is no need to clear the control register 100 times in a loop, a single zero write clears the register. I didn't find any justification why clearing this register in a loop is needed (no info in i.MX6 errata or GPT timer linux driver, linux driver uses single write to clear this control register). Signed-off-by:
Anatolij Gustschin <agust@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
In case of 2 banks, the address space of the first CS must be defined and not let to the higher value. Add support for SOM with a single bank of RAM. It was tested with i.MX6Q modules in the following configurations: - 2 Banks, 4 GB - 2 Banks, 1 GB - 1 Bank, 1 GB Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Aug 28, 2017
-
-
Breno Lima authored
Since the gpr_init() function is common for boards using MX6S, MX6DL, MX6D, MX6Q and MX6QP processors move it to the soc.c file. Signed-off-by:
Breno Lima <breno.lima@nxp.com> Acked-by:
Stefano Babic <sbabic@denx.de> Reviewed-by:
Lukasz Majewski <lukma@denx.de> Reviewed-by:
Fabio Estevam <fabio.estevam@nxp.com>
-
- Aug 25, 2017
-
-
Stefan Agner authored
i.MX 6 serial downloader is not necessarily booting via UART but can also boot from USB. In fact only some i.MX chips have serial downloader support via UART (e.g. 6UL/ULL and Vybrid) but all of them have serial downloader support via USB. Use the more appropriate BOOT_DEVICE_BOARD define which is used for ROM provided recovery mechanisms in general. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com>
-
Stefan Agner authored
Add the reserved boot mode used in the bmode command for i.MX 6UL and 6ULL as introduced in commit 3fd95790 ("imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULL"). Also replace BMODE_UART with BMODE_RESERVED, which is more appropriate. Commit 96aac843 ("imx: Use IMX6_BMODE_* macros instead of numericals") added macros for boot modes, in the process the reserved boot mode got named BMODE_UART. We use the reserved boot mode in the bmode command to let the boot ROM enter serial downloader recovery mode. But this is only a side effect, the actual boot mode is reserved... Signed-off-by:
Stefan Agner <stefan.agner@toradex.com>
-
- Aug 23, 2017
-
-
Peng Fan authored
To i.MX7ULP, we need to create two info instances for iomux0 and iomux1 respectively, otherwise iomuxc0/1 will share one info instance and use one base, because imx_pinctrl_probe will use info to store base address and etc. But iomuxc0/1 actually have different base address. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Cc: Simon Glass <sjg@chromium.org> Cc: Stefano Babic <sbabic@denx.de>
-
Peng Fan authored
when using SHARE_MUX_CONF_REG, wrong mask is used for writing config value, which causes mux value is cleared. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Cc: Simon Glass <sjg@chromium.org> Cc: Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
Some files for i.MX do not yet have the SPDX ID to reference the correct license. Signed-off-by:
Stefano Babic <sbabic@denx.de> Reviewed-by:
Wolfgang Denk <wd@denx.de>
-
Peng Fan authored
Add copyright and license header. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
-
Stefan Agner authored
Enable Serial Download Protocol (SDP) in SPL and U-Boot. This is useful to make use of imx_usb to download the complete U-Boot (u-boot.img) after SPL has been downloaded. The U-Boot command sdp allows to enumerate as SDP capable device again, e.g. to download a Linux kernel and/or U-Boot script. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Acked-by:
Max Krummenacher <max.krummenacher@toradex.com>
-
Stefan Agner authored
Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Acked-by:
Max Krummenacher <max.krummenacher@toradex.com> Reviewed-by:
Łukasz Majewski <lukma@denx.de>
-
Stefan Agner authored
Document the U-Boot Serial Download Protocol implementation and some typical use cases. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Reviewed-by:
Łukasz Majewski <lukma@denx.de>
-
Stefan Agner authored
Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Reviewed-by:
Stefano Babic <sbabic@denx.de> Reviewed-by:
Łukasz Majewski <lukma@denx.de>
-
Stefan Agner authored
Add a new command to start USB Serial Download Protocol (SDP) state machine. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Reviewed-by:
Łukasz Majewski <lukma@denx.de> Reviewed-by:
Stefano Babic <sbabic@denx.de>
-
Stefan Agner authored
Support U-Boot images in SPL so that u-boot.img files can be directly downloaded and executed. Furthermore support U-Boot scripts download and execution in full U-Boot so that custom recovery actions can be downloaded from the host in a third step. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Reviewed-by:
Łukasz Majewski <lukma@denx.de> Reviewed-by:
Stefano Babic <sbabic@denx.de>
-
Stefan Agner authored
Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuration Data (DCD) sets. This basic implementation supports downloading images with the imx header format reading and writing registers. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Reviewed-by:
Łukasz Majewski <lukma@denx.de>
-
Stefan Agner authored
Move the imximage.h header file to a common location so we can make use of it from U-Boot too. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Reviewed-by:
Łukasz Majewski <lukma@denx.de>
-
- Aug 22, 2017
-
-
Tom Rini authored
Otherwise: drivers/usb/gadget/f_fastboot.c:564:32: warning: format "%lx" expects argument of type "long unsigned int", but argument 3 has type "unsigned int" [-Wformat=] Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Aug 21, 2017
-
-
git://git.denx.de/u-boot-usbTom Rini authored
-
git://git.denx.de/u-boot-uniphierTom Rini authored
- Fix unmet direct dependencies warning - Remove old sLD3 SoC support - Update reset data - Add dr_mode DT property to avoid warning
-
Chris Packham authored
The db-88f6820-amc has four chips with 2Gb density giving a total of 1GB DRAM. Update the board_topology_map to reflect the correct configuration. Signed-off-by:
Chris Packham <judge.packham@gmail.com> Reviewed-by:
Stefan Roese <sr@denx.de> Signed-off-by:
Stefan Roese <sr@denx.de>
-
Lukasz Majewski authored
Signed-off-by:
Lukasz Majewski <lukma@denx.de>
-
Tom Rini authored
The function blk_dread will return -ENOSYS on failure or on success the number of blocks read, which must be the number asked to read (otherwise it failed somewhere). Correct this check. Cc: Lukasz Majewski <lukma@denx.de> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Tom Rini authored
When building the flash zImage code on aarch64 we see warnings about pointer size casts. Use uintptr_t instead to correct these. Cc: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by:
Tom Rini <trini@konsulko.com> Reviewed-By:
Sam Protsenko <semen.protsenko@linaro.org>
-
John Keeping authored
There is no guarantee that commands are null-terminated in the USB request buffer, so limit the length of data that is printed. Signed-off-by:
John Keeping <john@metanate.com> Tested-by:
Steve Rae <steve.rae@raedomain.com>
-
Peter Chubb authored
Fastboot loads an image at CONFIG_FASTBOOT_BUF_ADDR, but currently tells do_bootm() to look for an image at $loadaddr. This breaks if CONFIG_FASTBOOT_BUF_ADDR is different from the current user-set loadaddr. Instead, tell do_bootm() to pick up the image where it was laoded. Signed-off-by:
Peter Chubb <peter.chubb@data61.csiro.au> Reviewed-by:
Tom Rini <trini@konsulko.com> Acked-by:
Steve Rae <steve.rae@raedomain.com>
-
Bin Meng authored
This converts CONFIG_USB_EHCI_PCI to a Kconfig option, and updates all boards that use it. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com>
- Aug 20, 2017
-
-
Simon Glass authored
Some of these were missed in the conversion. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that we have errors available in the environment driver's load() method, check the return valid. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Tom Rini authored
With the change to the environment code to remove the common init stage of pointing to the default environment and setting it as valid, combined with the change to switch gd->env_valid from 0/1/2 to an enum we now must set env_valid to one of the enum values rather than an int. And in this case, not only was setting it to an int wrong, it was now the wrong value. Finally, in the case of ENV_IS_NOWHERE we must still say that our envionrment is invalid after init for things to continue to function. Fixes: 7938822a ("env: Drop common init() functions") Tested-by:
Marek Vasut <marek.vasut@gmail.com> Reported-by:
Marek Vasut <marek.vasut@gmail.com> Reported-by:
Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by:
Tom Rini <trini@konsulko.com> --- Changes in v3: - Actually include changes for env/nowhere.c
-
Masahiro Yamada authored
Since commit 576e3cc7 ("usb: host: xhci-dwc3: Add dual role mode support from DT"), warning is displayed if dr_mode is not specified. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
- Merge sys_reset data of LD4, Pro4, sLD8 and Pro5 - Merge sys_reset data of LD11 and LD20 - Use primitive UNIPHIER_RESETX() macro because bit assignments for system reset will be changed for every SoC in the future - Add NAND and eMMC resets Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This reverts commit 82d075e7. Commit 82d075e7 ("ARM: uniphier: fix ROM boot mode for PH1-sLD3") was a workaround for sLD3. Now the sLD3 SoC support has been removed. Revert it to allow to simplify the init code. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This reverts commit bcc51c15. Commit bcc51c15 ("ARM: uniphier: move lowlevel debug init code after page table switch") was intended to support lowlevel debug for sLD3. Now the sLD3 SoC support has been removed. Revert it to allow to enable lowlevel debug earlier. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
This SoC is too old. It is difficult to maintain any longer. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Masahiro Yamada authored
Since commit f0776a55 ("spl: dm: Kconfig: SPL_CLK depends on SPL_DM"), the following warning is displayed: $ make uniphier_v8_defconfig warning: (ARCH_ZYNQ && ARCH_ZYNQMP && STM32F7 && CLK_UNIPHIER) selects SPL_CLK which has unmet direct dependencies (CLK && SPL_DM) While I am here, I am removing the prompt to make it user-unconfigurable option so that "select CLK_UNIPHIER" can be omitted. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Anatolij Gustschin authored
s/notes/nodes Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Andy Shevchenko authored
It would be easier to catch out which platform is using which default. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-
Heiko Schocher authored
since commit: b529993e "spl: add hierarchical defaults for SPL_LDSCRIPT" taurus board stopped working. Use the ldscript from arch/arm/cpu/u-boot-spl.lds (as before this patch) fixed it. Signed-off-by:
Heiko Schocher <hs@denx.de> Reviewed-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
-