summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | wdt: dw: Enable the clock before using itSean Anderson2021-04-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The watchdog won't work if the clock isn't enabled. Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6 Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | | wdt: dw: Switch to if(CONFIG()) instead of using #ifSean Anderson2021-04-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is preferred over #if because the compiler can check syntax even if the feature is disabled. This cannot be used for CONFIG_CLK because CONFIG_DW_WDT_CLOCK_KHZ is not defined on all platforms. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | | wdt: dw: Switch to using fls for log2Sean Anderson2021-04-081-2/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | log_2_n_round_up is only found in arm. fls performs the same job and is generic. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | | Merge https://source.denx.de/u-boot/custodians/u-boot-marvellTom Rini2021-04-0828-239/+575
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | - Add Armada 38x RTC driver (Marek) - turris_omnia: Misc updates (enable RTC and other cmds) (Marek) - ds414: Misc updates (enable XHCI_PCI USB support etc) (Phil) - Convert MVEBU MMC driver to DM (Harm) - kirkwood: Misc updates and cleanups to some boards (Harm)
| * | configs: sheevaplug: enable driver-model based MMCHarm Berntsen2021-04-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-dm MMC driver has been converted to the driver model. The sheevaplug was using the non-dm driver and this commit enables the new driver. Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Stefan Roese <sr@denx.de> CC: Prafulla Wadaskar <prafulla@marvell.com> CC: Stefan Roese <sr@denx.de> CC: Tom Rini <trini@konsulko.com>
| * | mmc: mvebu: convert to driver modelHarm Berntsen2021-04-083-136/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a straightforward conversion of the old, non-dm driver. It was done in-place as the deadline for non-dm MMC has passed. Previous commits ensured that no board depends on the old, non-dm variant. Tested on a Kirkwood based board with eMMC. Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Tested-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de> CC: Pantelis Antoniou <panto@antoniou-consulting.com> CC: Stefan Roese <sr@denx.de> CC: Gerald Kerma <drEagle@doukki.net> CC: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
| * | configs: remove obsolete CONFIG_MVEBU_MMCHarm Berntsen2021-04-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | All usages of this have been removed Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Simon Glass <sjg@chromium.org> CC: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
| * | configs: remove obsolete CONFIG_SYS_MMC_BASEHarm Berntsen2021-04-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | All usages of this have been removed Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Simon Glass <sjg@chromium.org> CC: Simon Glass <sjg@chromium.org>
| * | arm: kirkwood: remove non-dm MMC driver initHarm Berntsen2021-04-081-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No board uses this driver any more: remove it. Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Stefan Roese <sr@denx.de> CC: Gerald Kerma <drEagle@doukki.net> CC: Stefan Roese <sr@denx.de> CC: Pantelis Antoniou <panto@antoniou-consulting.com>
| * | configs: sheevaplug: remove non-dm MMC driverHarm Berntsen2021-04-081-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be replaced with the driver model version Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Stefan Roese <sr@denx.de> CC: Prafulla Wadaskar <prafulla@marvell.com> CC: Stefan Roese <sr@denx.de> CC: Tom Rini <trini@konsulko.com>
| * | configs: openrd: remove non-dm MMC driverHarm Berntsen2021-04-081-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately this board has no DM support at all. We are also way past the deadline for driver model support for various devices on this board. Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Stefan Roese <sr@denx.de> CC: Stefan Roese <sr@denx.de>
| * | configs: remove unused CONFIG_SYS_MMC_BASE defsHarm Berntsen2021-04-084-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These boards use an MMC driver that does not use this definition Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Stefan Roese <sr@denx.de> CC: Stefan Roese <sr@denx.de> CC: Mario Six <mario.six@gdsys.cc> CC: Dennis Gilmore <dgilmore@redhat.com>
| * | arm: mvebu: ds414: Add sample u-boot update commandPhil Sutter2021-04-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call 'run update_uboot' to fetch u-boot-spl.kwb via TFTP and write it into the correct SPI flash location. The latter's size is defined in DS414's DTB file, so hard-coding it should be acceptable here. Take care to not append garbage from RAM to the written image and to stay within assigned flash boundaries even if an oversized image was fetched. Signed-off-by: Phil Sutter <phil@nwl.cc>
| * | arm: mvebu: ds414: Auto-populate env if appropriatePhil Sutter2021-04-084-7/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | Define a misc_init_r() which calls "syno populate_env" if the environment seems incomplete (or default), indicated by missing "ethaddr" variable. With this in place, no random MAC address fallback is needed anymore. Signed-off-by: Phil Sutter <phil@nwl.cc>
| * | arm: mvebu: board/Synology: Unify legacy kernel supportPhil Sutter2021-04-088-54/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the relevant bits from ds109.{c,h} into common/ and adjust the code to fit both DS109 and DS414. Moreover: * Introduce syno_board_id() which translates CONFIG_MACH_TYPE into the expected board ID tag value. * Properly initialize isusbhost, mac and mtu fields from env variables. * Set the right bootargs/bootcmd to correctly boot legacy kernel out of the (DS414) box. Getting the ramdisk location right is a bit tedious. Cc: Walter Schweizer <swwa@users.sourceforge.net> Signed-off-by: Phil Sutter <phil@nwl.cc> Reviewed-by: Stefan Roese <sr@denx.de>
| * | arm: mvebu: configs: ds414: Enable XHCI_PCI by defaultPhil Sutter2021-04-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | With the recent fixes in pci_mvebu and xhci-pci drivers, the two rear USB3 ports are finally usable and accessing them no longer hangs the system. Signed-off-by: Phil Sutter <phil@nwl.cc> Reviewed-by: Stefan Roese <sr@denx.de>
| * | arm: mvebu: ds414: Add a Kconfig defining some stringsPhil Sutter2021-04-081-0/+12
| | | | | | | | | | | | | | | | | | | | | A rather cosmetic change to conform with other board definitions. Signed-off-by: Phil Sutter <phil@nwl.cc> Reviewed-by: Stefan Roese <sr@denx.de>
| * | arm: mvebu: turris_omnia: Enable CMD_FS_UUIDMarek Behún2021-04-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This command can be useful for U-Boot scripts. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Pali Rohár <pali@kernel.org> Acked-by: Pali Rohár <pali@kernel.org>
| * | arm: mvebu: turris_omnia: Enable CMD_WDTMarek Behún2021-04-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This command can be sometimes used for debugging. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Pali Rohár <pali@kernel.org> Acked-by: Pali Rohár <pali@kernel.org>
| * | arm: mvebu: turris_omnia: Enable DM_RTC and RTC_ARMADA38XMarek Behún2021-04-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | With this the date command is available on Turris Omnia. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Pali Rohár <pali@kernel.org> Acked-by: Pali Rohár <pali@kernel.org>
| * | rtc: add armada38x driverMarek Behún2021-04-083-0/+192
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Add RTC driver for Armada 38x, based on Linux' driver. For now implement only `marvell,armada-380-rtc` compatible. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Pali Rohár <pali@kernel.org> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Chris Packham <judge.packham@gmail.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Pali Rohár <pali@kernel.org>
* | Merge branch '2021-04-07-CI-improvements'Tom Rini2021-04-076-59/+231
|\ \ | | | | | | | | | | | | | | | - Assorted Azure/GitLab improvements - Move the Dockerfile used for making containers in CI in to this repository.
| * | tools: Integrate the Dockerfile used for CITom Rini2021-04-073-0/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integrate the Dockerfile from https://source.denx.de/u-boot/gitlab-ci-runner.git as of commit bc6130d572f1 ("Dockerfile: Remove high UID/GID") and introduce a short rST on how to build the container. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com>
| * | Azure/GitLab: bump OpenSBI version to 0.9Heinrich Schuchardt2021-04-072-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Version 0.9 of OpenSBI provides the system reset extension which allows us to reset and power off boards without board specific code. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | pytest: Lower pygit2 requirementTom Rini2021-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The latest versions of pygit2 are not available in practically any distribution at this time. Furthermore, we don't need the latest in order to run all of our testsuites. Reduce this version requirement to something older that meets our needs while still supporting running our tests on older hosts (and so, test labs). Reported-by: Tom Warren <twarren@nvidia.com> Signed-off-by: Tom Rini <trini@konsulko.com>
| * | GitLab: Remove "tags" stanzasTom Rini2021-04-071-46/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Given the structure of our current GitLab tests, we don't make real use of the tags. Furthermore, these tags prevent the automatic usage of the default GitLab runners. Remove these tags. Reported-by: Roger Meier <r.meier@siemens.com> Signed-off-by: Tom Rini <trini@konsulko.com>
| * | Azure: Rework SH / Renesas jobTom Rini2021-04-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that there is a single SuperH platform, rework the Azure job slightly. Azure build time limits mean that we need to split the world build up still. Make a single build job for the single Renesas SuperH platform as well as all of the ARM platforms from Renesas. Cc: Marek Vasut <marek.vasut+renesas@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* | | Merge branch '2021-04-07-fs-updates'Tom Rini2021-04-071-10/+29
|\ \ \ | |/ / |/| | | | | - JFFS2 updates
| * | JFFS2: fix jffs2 summary datacrc status uninitializedWagner Popov dos Santos2021-04-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function jffs2_1pass_read_inode() was discarding the summary inodes and dirent because the value in datacrc flag wasn't initialized in function jffs2_sum_process_sum_data(). This fix initializes the status of all summary records to indicate that the CRC needs to be verified when they are loaded. Before this fix, the behaviors produced by the undefined value of datacrc was: - Summary's registries were discarded when 'b->datacrc' is equal as 'CRC_BAD'. - Summary's registries were not checked when b->datacrc differs of 'CRC_BAD' and 'CRC_UNKNOWN' So, almost all of the time the crc just isn't checked, and in some cases the registries are discarded. Signed-off-by: Wagner Popov dos Santos <wpopov@gmail.com>
| * | JFFS2: fix the reading address over nand's limitWagner Popov dos Santos2021-04-071-10/+27
|/ / | | | | | | | | | | | | | | | | | | Fixes address violation in functions read_nand_cached() and read_onenand_cached(). This happens because these functions try to read a fixed amount of data even when the offset+length is above the nand's limit. Signed-off-by: Wagner Popov dos Santos <wpopov@gmail.com>
* | Merge tag 'mmc-2021-4-6' of https://source.denx.de/u-boot/custodians/u-boot-mmcTom Rini2021-04-068-18/+96
|\ \ | | | | | | | | | | | | | | | | | | | | | Update hwpartition usage Check bootbus's arguments workaround for erratum A-011334 for fsl_esdhc driver add pulse width detection workaround for fsl_esdhc driver Use alias num before checking mmc index when creating device
| * | mmc: mmc-uclass: Use dev_seq() to read aliases node's indexAswath Govindraju2021-04-061-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use dev_seq() to read aliases node's index and pass it as device number for creating bulk device. Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
| * | mmc: Check for device with a seq number equal to num before checking against ↵Aswath Govindraju2021-04-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | index First check if there is an alias for the device tree node defined with the given num before checking against device index. Signed-off-by: Aswath Govindraju <a-govindraju@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
| * | board: sl28: enable HS400 mode againMichael Walle2021-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | Now that it is working reliable on the LS1028A SoC, reenable support for it. Signed-off-by: Michael Walle <michael@walle.cc>
| * | mmc: fsl_esdhc: add pulse width detection workaroundMichael Walle2021-04-064-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HS400 mode on the LS1028A SoC isn't reliable. The linux driver has a workaroung for the pulse width detection. Apply this workaround in u-boot, too. This will make HS400 mode work reliably on the LS1028A SoC. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
| * | mmc: fsl_esdhc: add workaround for erratum A-011334Michael Walle2021-04-063-1/+28
| | | | | | | | | | | | | | | | | | | | | LS1028A SoCs are restricted in what divider values are allowed for HS400 mode. This is basically a port from the corresponding linux driver. Signed-off-by: Michael Walle <michael@walle.cc>
| * | cmd: mmc: check whether bootbus's arguments is valid or notJaehoon Chung2021-04-061-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | According to Specification, each bit have valid value. But it doesn't check whether arguments is valid or not. It has potential bug with arguments passed by wrong value. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
| * | cmd: mmc: modify more readable about hwpartition usageJaehoon Chung2021-04-061-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified more readable about hwpartition usage. Because it's difficult to understand how to use its command. The arguments didn't optional. mmc hwpartition needs to pass <USER> <GP> <MODE> as arguments. Description about each arguments what is required is the below: USER - <user> <enh> <start> <cnt> <wrrel> <{on|off}> GP - <{gp1|gp2|gp3|gp4}> <cnt> <enh> <wrrel> <{on|off}> MODE - <{check|set|complete}> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
* | | Merge https://source.denx.de/u-boot/custodians/u-boot-usbTom Rini2021-04-063-12/+10
|\ \ \ | | | | | | | | | | | | - XHCI fixes
| * | | usb: xhci: Make debug output better readable and checkpatch cleanStefan Roese2021-04-061-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes debugging a bit easier as the output is better readable with the added space. The explicit le16_to_cpu() is not needed in the output. Also this patch moves the strings into one line to make the patch checkpatch clean. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Aaron Williams <awilliams@marvell.com> Cc: Chandrakala Chavva <cchavva@marvell.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Marek Vasut <marex@denx.de>
| * | | usb: xhci: Add missing xhci_readl()Aaron Williams2021-04-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accessing the xHCI controller registers should be done via the xhci_readl/writel functions. This patch adds this to a few missing places. Signed-off-by: Aaron Williams <awilliams@marvell.com> Signed-off-by: Stefan Roese <sr@denx.de> Cc: Chandrakala Chavva <cchavva@marvell.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Marek Vasut <marex@denx.de>
| * | | usb: hub: Fix usb_get_port_status() for big-endian platformsAaron Williams2021-04-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing endianness conversions to usb_get_port_status(). This (amongst others) is necessary to enable the use of USB 3 hubs on big-endian platforms like MIPS Octeon. Signed-off-by: Aaron Williams <awilliams@marvell.com> Signed-off-by: Stefan Roese <sr@denx.de> Cc: Chandrakala Chavva <cchavva@marvell.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Marek Vasut <marex@denx.de>
* | | | Merge tag 'u-boot-amlogic-20210406' of ↵Tom Rini2021-04-0648-307/+624
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.denx.de/u-boot/custodians/u-boot-amlogic - Add MMIO MDIO mux driver - Add Amlogic G12A MDIO mux driver - Add DM_MDIO support for designware ethernet driver - Add Amlogic Meson8b and later designware ethernet glue driver - Switch all amlogic boards to Amlogic designware ethernet glue driver - Switch all amlogic boards to DM_MDIO when necessary - Remove all static ethernet setup code
| * | | | arm: meson: remove static ethernet link setupNeil Armstrong2021-04-0619-215/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The static ethernet link type config code is no more needed because now handled by the meson8b glue driver, delete it. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * | | | arm: meson: remove static ethernet memory power domain enableNeil Armstrong2021-04-062-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ethernet memory power domain is handled by the meson-ee-pwrc driver, delete the static code. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * | | | net: designware: remove amlogic compatiblesNeil Armstrong2021-04-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These compatibles are now handled by the dwmac_meson8b glue driver. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * | | | configs: meson: use Designware glue driver for Amlogic Meson8b & later SoCsNeil Armstrong2021-04-0623-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the proper Synopsys DWMAC Meson8b glue to handle the ethernet link type. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * | | | arm: meson: remove static MDIO mux handlingNeil Armstrong2021-04-062-45/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The static MDIO mux handling in mach-meson is no more needed, delete it. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * | | | configs: update Amlogic Meson G12A, G12B & SM1 configs for MDIO MUXNeil Armstrong2021-04-069-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use DM_MDIO and the new G12A MDIO MUX driver for G12A, G12B & SM1 boards. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * | | | configs: update Amlogic Meson GXL & GXM config for MDIO MUXNeil Armstrong2021-04-069-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use DM_MDIO and the new MMIOREG MDIO MUX driver for GXL & GXM board. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>