summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Revert "arm: mvebu: fix boot from UART when in fallback mode"Chris Packham2018-09-192-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e83e2b390038c9075642cb243a6292241beb8d73. This prevents kwboot from overriding the hardware strapped boot source. Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
| * | | arm64: mvebu: armada-8k: support environment in SD/eMMCBaruch Siach2018-09-192-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detect the SD/eMMC boot device at run-time. Load the environment from the boot deice, as well as save to it. Leave the environment offset the same as in the SPI flash. Make SD/eMMC 0 the default environment device when the boot device is not detected. Cc: Konstantin Porotchkin <kostap@marvell.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
| * | | tools: kwboot: Make kwboot more robust on a38xJon Nettleton2018-09-191-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch accomplishes 2 things to make the kwboot procedure on the a38x more reliable. 1) We fill the tty with 1K of the magic bootparam. This helps with the timing of where the microcode picks up in the read of the line to ensure we actually catch the break to go into recovery mode 2) Before starting the xmodem transfer we sleep for 2 seconds and then flush the line. This allows all the magic bootparam to be flushed from the line and makes the xmodem transfer reliable and removes the Bad message failures. Signed-off-by: Jon Nettleton <jon@solid-run.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
| * | | doc/git-mailrc: add Stefan Roese to the kirkwood aliasBaruch Siach2018-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stefan is listed as a kirkwood maintainer since commit f822d8578ba3 (MAINTAINERS: Update Marvell custodianship). Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
| * | | Kirkwood: NAS220: remove bootdelay from CONFIG_EXTRA_ENV_SETTINGSEvgeni Dobrev2018-09-191-1/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | The default bootdelay of 3 seconds is good enough and there is no need to duplicate it in CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Evgeni Dobrev <evgeni@studio-punkt.com> Signed-off-by: Stefan Roese <sr@denx.de>
* | | Merge git://git.denx.de/u-boot-dmTom Rini2018-09-1870-91/+4695
|\ \ \ | |/ / |/| | | | | | | | | | | | | | - MPC83xx device tree additions (CPU and RAM) - Fix sandbox build error - Sync bitrev with Linux - Various ofnode/DT improvements
| * | dm: uclass: Adding missing child_pre_probe descriptionBin Meng2018-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The comment of child_pre_probe, one of the 'struct uclass_driver' members, is currently missing. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | dm: fix alignment of help message of "dm" commandMasahiro Yamada2018-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, "help dm" shows as follows: => help dm dm - Driver model low level access Usage: dm tree Dump driver model tree ('*' = activated) dm uclass Dump list of instances for each uclass dm devres Dump list of device resources for each device Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | binman: fix a few typos in documentationMichael Heimpold2018-09-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes four small typos in the README file. Signed-off-by: Michael Heimpold <mhei@heimpold.de> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | test: ofnode: test ofnode_by_prop_value()Jens Wiklander2018-09-181-0/+27
| | | | | | | | | | | | | | | | | | | | | Test ofnode_by_prop_value() Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | ofnode: add ofnode_by_prop_value()Jens Wiklander2018-09-184-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | Adds ofnode_by_prop_value() to search for nodes with a given property and value, an ofnode version of fdt_node_offset_by_prop_value(). Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | dm: core: fix devfdt_remap_addr_index()Cédric Le Goater2018-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 30a90f56c3a2 ("dm: core: add functions to get memory-mapped I/O addresses") introduced a devfdt_remap_addr_index() routine but it does not make use of the index parameter. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
| * | dm: core: Scan "/firmware" node by defaultRajan Vaja2018-09-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All Linux firmware drivers are put under "/firmware" node and it has support to populate "/firmware" node by default. u-boot and Linux can share same DTB. In this case, driver probe for devices under "/firmware" will not be invoked as "/firmware" does not have its own "compatible" property. This patch scans "/firmware" node by default like "/clocks". Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | dm: core: Move "/clock" node scan into functionRajan Vaja2018-09-181-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create separate function for scanning node by path and move "/clock" node scan code into that function. This will be usable if scanning of more node is required. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | misc: Add MPC83xx serdes driverMario Six2018-09-188-0/+458
| | | | | | | | | | | | | | | | | | | | | | | | Add a driver to configure the SerDes (Serializer/Deserializer) lanes on the MPC83xx architecture. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | cpu: Add MPC83xx CPU driverMario Six2018-09-189-0/+525
| | | | | | | | | | | | | | | | | | Add a CPU driver for the MPC83xx architecture. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | test: Add tests for CPU uclassMario Six2018-09-185-0/+120
| | | | | | | | | | | | | | | | | | Add a sandbox CPU driver, and some tests for the CPU uclass. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | cpu: Add cpu_probe_all methodMario Six2018-09-182-0/+30
| | | | | | | | | | | | | | | | | | Add a method to probe all CPUs of the board. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | cpu: Fix cpu.h documentationMario Six2018-09-181-13/+15
| | | | | | | | | | | | | | | | | | | | | Documentation in cpu.h is not in kernel-doc format. Change it to comply with it. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | board_f: Use static print_cpuinfo if CONFIG_CPU is activeMario Six2018-09-182-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the DM CPU drivers are active, printing information about a CPU should be delegated to a matching driver. Hence, add a static print_cpuinfo that implements this delegation when DM CPU drivers are active. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc> Changed condition to CONFIG_IS_ENABLED(CPU): Signed-off-by: Simon Glass <sjg@chromium.org>
| * | init: Fix documentationMario Six2018-09-181-13/+14
| | | | | | | | | | | | | | | | | | The documentation in init.h is not in kernel-doc format. Fix this. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | common: board_f: Sort includesMario Six2018-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | Includes should be sorted. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | timer: Add MPC83xx timer driverMario Six2018-09-188-3/+289
| | | | | | | | | | | | | | | | | | Add a timer driver for the MPC83xx architecture. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | timer: Sort Makefile entriesMario Six2018-09-181-8/+8
| | | | | | | | | | | | | | | | | | Makefile entries should be sorted. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | clk: Add MPC83xx clock driverMario Six2018-09-1811-1/+938
| | | | | | | | | | | | | | | | | | Add a clock driver for the MPC83xx architecture. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | mpc83xx: Add sysreset driverMario Six2018-09-186-5/+329
| | | | | | | | | | | | | | | | | | | | | Add a sysreset driver for the MPC83xx platform. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | board_f: Add reset status printingMario Six2018-09-181-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To print the reset status during boot, add a method print_resetinfo to board_f, which is called in init_sequence_f[], that gets the reset information from the sysreset driver (assuming there is only one seems reasonable), and prints it. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | test: Add tests for sysreset_get_statusMario Six2018-09-182-0/+36
| | | | | | | | | | | | | | | | | | | | | Add some tests for sysreset_get_status. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | sysreset: Add get_status methodMario Six2018-09-182-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's useful to have the reset status of the SoC printed out during reset (e.g. to learn whether the reset was caused by software or a watchdog). As a first step to implement this, add a get_status method to the sysreset class, which enables the caller to get printable information about the reset status (akin to get_desc in the CPU uclass). Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | powerpc: Add read*_*/write*_* macrosMario Six2018-09-181-0/+18
| | | | | | | | | | | | | | | | | | | | | Define the read*_*/write*_* macros for the PowerPC platform to be able to use the macros in wait_bit.h. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | ram: Add driver for MPC83xxMario Six2018-09-188-0/+1593
| | | | | | | | | | | | | | | | | | | | | Add a RAM driver for the MPC83xx architecture. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * | sandbox: Enable bitrev library buildBin Meng2018-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | Imply CONFIG_BITREVERSE for Sandbox. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | lib: bitrev: Sync with Linux kernel v4.17Bin Meng2018-09-182-28/+102
| | | | | | | | | | | | | | | Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | sandbox: Build with -fPICAndy Shevchenko2018-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sandbox is not a real bootloader and it does require a position independent code to be supported. Thus, build it with -fPIC explicitly. Fixes: 16940f720f9b ("Makefile: Don't generate position independent code") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reported-by: Simon Glass <sjg@chromium.org> Tested-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
* | | Merge git://git.denx.de/u-boot-x86Tom Rini2018-09-177-3/+293
|\ \ \ | |/ / |/| |
| * | x86: cpu: add docstring to scu_ipc_command()Georgii Staroselskii2018-09-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | These comments were copied from the Linux kernel driver in drivers/platform/x86/intel_scu_ipc.c Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | x86: tangier: acpi: add I2C6 nodeGeorgii Staroselskii2018-09-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have I2C#6 working, it's time to add a corresponsing ACPI binding. Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | x86: dts: edison: configure I2C#6 pinsGeorgii Staroselskii2018-09-171-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have the pinctrl driver for Merrifield in place we can make use of it and set I2C#6 pins appropriately. Initial configuration came from the firmware. Which quite likely has been used in the phones, where that is not part of Atom peripheral, is in use. Thus we need to override the leftover. Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | x86: tangier: pinmux: add API to configure protected pinsGeorgii Staroselskii2018-09-172-1/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API is going to be used to configure some pins that are protected for simple modification. It's not a comprehensive pinctrl driver but can be turned into one when we need this in the future. Now it is planned to be used only in one place. So that's why I decided not to pollute the codebase with a full-blown pinctrl-merrifield nobody will use. This driver reads corresponding fields in DT and configures pins accordingly. The "protected" flag is used to distinguish configuration of SCU-owned pins from the ordinary ones. The code has been adapted from Linux work done by Andy Shevchenko in pinctrl-merrfifield.c Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: fix build warning] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
| * | x86: cpu: introduce scu_ipc_raw_command()Georgii Staroselskii2018-09-172-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This interface will be used to configure properly some pins on Merrifield that are shared with SCU. scu_ipc_raw_command() writes SPTR and DPTR registers before sending a command to SCU. This code has been ported from Linux work done by Andy Shevchenko. Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | x86: drop custom CONFIG_SYS_BAUDRATE_TABLE defineChristian Gmeiner2018-09-171-2/+0
| | | | | | | | | | | | | | | | | | | | | This will add support for a baud rate of 57600. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* | | Merge branch 'master' of git://git.denx.de/u-boot-coldfireTom Rini2018-09-165-15/+36
|\ \ \
| * | | m68k: ColdFire mcf5441x, add eSDHC supportAngelo Dureghello2018-09-163-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds mcf5441x eSDHC support for the mcf5441x family. Signed-off-by: Angelo Dureghello <angelo@sysam.it>
| * | | m68k: fix multiple memory accesses on swap operationsAngelo Dureghello2018-09-161-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On a u32 val = __sw32(*addr); multiple memory accesses are not welcome, since "addr" may be an IO peripheral register address. This patch changes __sw16/32 to perform a single memory access for the source value. Signed-off-by: Angelo Dureghello <angelo@sysam.it>
| * | | m68k: fix mcf5441x total interrupt numberAngelo Dureghello2018-09-161-1/+1
| |/ / | | | | | | | | | Signed-off-by: Angelo Dureghello <angelo@sysam.it>
* | | Merge branch 'master' of git://git.denx.de/u-boot-socfpgaTom Rini2018-09-166-7/+75
|\ \ \
| * | | arm: socfpga: stratix10: Add CONFIG_OF_EMBEDDalon Westergreen2018-09-152-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dtb should be embedded in the u-boot-spl image so that the CONFIG_SPL_TARGET of spl/u-boot-spl.hex includes it. This also affects the main u-boot image, so adjust CONFIG_SPL_FS_LOAD_PAYLOAD_NAME to u-boot.img which now also includes the dtb. Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>
| * | | socfpga: stratix10: fix sdram_calculate_sizeDalon Westergreen2018-09-152-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incorrect type of size variable results in 0 being returned for sdram sizes greater than or equal to 4GB. Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>
| * | | arm: socfpga: stratix10: add CONFIG_SPL_TARGETDalon Westergreen2018-09-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stratix10 combines the u-boot-spl image into the fpga configuration bitstream so that the SDM can load the processors memory. This process requires a hex format of the u-boot-spl image. CONFIG_SPL_TARGET is set to "spl/u-boot-spl.hex" Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>
| * | | common: add spl/u-boot-spl.hex targetDalon Westergreen2018-09-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some devices, namely Intel's stratix10 SoC, require u-boot-spl in a hex format. This patch adds spl/u-boot-spl.hex as a possible target. Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>