summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* travis/gitlab/azure: Ensure we use python3 alwaysWIP/WIP-more-dtc-flags-from-kernelTom Rini2020-02-103-13/+11
| | | | | | | | | | | | When running our tests there are some cases where as part of the Python 2.7 to Python 3.6 migration we didn't force Python 3.6 to be used as everything wasn't yet migrated. Now that everything is, make sure to tell virtualenv to use python3. In the case of Travis this is best done by making the tools test happen after the main tests so that it will already have been run in all cases, TEST_PY_TOOLS is a subset of TEST_PY_BD. Signed-off-by: Tom Rini <trini@konsulko.com>
* drop pci dtc warningsTom Rini2020-02-101-2/+0
| | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* sandbox fixup pci dtsTom Rini2020-02-105-13/+18
| | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* Kbuild: more DTC warning ignoresTom Rini2020-02-101-1/+2
| | | | | | | | f26e93812a4f74d255fa6d548af5a303457f390b and f759625ad270898efdf8c153c74021a8a919312b and 8654cb8d0371 from Linux kernel, backported. Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86Tom Rini2020-02-1038-94/+1640
|\ | | | | | | | | | | | | | | | | | | - Move P2SB from Apollo Lake to a more generic location - Add a function to find a device by drvdata in DM core - Enhancement of DM IRQ uclass driver - Add a clock driver for Intel devices - Add support for ACPI general-purpose events - Add a TPM driver for H1/Cr50 - Enable TPM on Google Chromebook Coral
| * x86: coral: Enable TPMSimon Glass2020-02-071-1/+2
| | | | | | | | | | | | | | Enable TPM2 so that we can use cr50. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * tpm: Add a driver for H1/Cr50Simon Glass2020-02-073-0/+670
| | | | | | | | | | | | | | | | | | | | | | | | | | H1 is a Google security chip present in recent Chromebooks, Pixel phones and other devices. Cr50 is the name of the software that runs on H1 in Chromebooks. This chip is used to handle TPM-like functionality and also has quite a few additional features. Add a driver for this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * tpm: Add more TPM2 definitionsSimon Glass2020-02-071-0/+31
| | | | | | | | | | | | | | | | | | Add definitions for access and status. Need to drop the mixed case. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: coral: Add I2C and TPM device-tree definitionsSimon Glass2020-02-072-0/+89
| | | | | | | | | | | | | | | | Add nodes to the device tree for Cr50 and other available I2C ports. Also enable the ACPI interrupt driver. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: Add support for ACPI general-purpose eventsSimon Glass2020-02-074-0/+149
| | | | | | | | | | | | | | | | | | | | | | ACPI GPEs are used to signal interrupts from peripherals that are accessed via ACPI. In U-Boot these are modelled as interrupts using a separate interrupt controller. Configuration is via the device tree. Add a simple driver for this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * dm: irq: Add support for requesting interruptsSimon Glass2020-02-076-1/+439
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present driver model supports the IRQ uclass but there is no way to request a particular interrupt for a driver. Add a mechanism, similar to clock and reset, to read the interrupts required by a device from the device tree and to request those interrupts. U-Boot itself does not have interrupt-driven handlers, so just provide a means to read and clear an interrupt. This can be useful to handle peripherals which must use an interrupt to determine when data is available, for example. Bring over the basic binding file as well, from Linux v5.4. Note that the older binding is not supported in U-Boot; the newer 'special form' must be used. Add a simple test of the new functionality. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: itss: Add of-platdata supportSimon Glass2020-02-071-0/+10
| | | | | | | | | | | | | | | | Allow this driver to be used in TPL by setting up the interrupt type correctly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: Give each driver an IRQ typeSimon Glass2020-02-075-6/+8
| | | | | | | | | | | | | | | | Add an IRQ type to each driver and use irq_first_device_type() to find and probe the correct one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * dm: irq: Add support for interrupt controller typesSimon Glass2020-02-075-2/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There can be different types of interrupt controllers in a system and some drivers may need to distinguish between these. In general this can be handled using the device tree by adding the interrupt information to device nodes. However on x86 devices we have interrupt controllers which are not tied to any particular device and not really used in U-Boot. These still need to be inited, so a convenient method is to give each controller a type and allow a particular controller type to be probed. Add support for this in sandbox along with a test. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: remove the new bland line at EOF of test/dm/irq.c] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: coral: Update i2c and rtc statusSimon Glass2020-02-071-2/+0
| | | | | | | | | | | | | | These are actually working correctly, so update the status. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: apl: Drop the I2C config in FSP-SSimon Glass2020-02-071-58/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This config is not actually used here and in U-Boot it seems better to set this using the device tree for each individual controller. The monolithic config of the FSP-S is only necessary if the FSP is actually configuring something, but here it is not. The FSP-S does enable/disable the various I2C ports. It might be nice to handle this using the okay/disabled property of each port, but that can be considered later. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: apl: Use the clock driverSimon Glass2020-02-072-0/+8
| | | | | | | | | | | | | | Enable the Intel clock driver and modify coral's device tree to use it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: Add a clock driver for Intel devicesSimon Glass2020-02-075-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | So far we have avoided adding a clock driver for Intel devices. But the Designware I2C driver needs a different clock (133MHz) on Intel devices than on others (166MHz). Add a simple driver that provides this information. This driver can be expanded later as needed. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * tegra: i2c: Change driver to use helper functionSimon Glass2020-02-071-12/+1
| | | | | | | | | | | | | | | | | | Now that we have uclass_first_device_drvdata(), use it from the I2C driver to reduce code duplication. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * dm: core: Change syscon to use helper functionSimon Glass2020-02-071-11/+4
| | | | | | | | | | | | | | | | Now that we have uclass_first_device_drvdata(), use it from syscon to reduce code duplication. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * dm: core: Add a function to find a device by drvdataSimon Glass2020-02-074-0/+54
| | | | | | | | | | | | | | | | | | | | | | It is sometimes useful to find a device in a uclass using only its driver data. The driver data often indicates the 'subtype' of the device, e,g, via its compatible string. Add a function to handle this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * dm: core: Allow iterating devices without uclass_get()Simon Glass2020-02-072-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | At present we have uclass_foreach_dev() which requires that uclass_get() be called beforehand to find the uclass. This is good if we suspect that that function might fail, but often we know that the uclass is available. Add a new helper which does this uclass_get() automatically, so that only the uclass ID is needed. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * x86: Move P2SB from Apollo Lake to a more generic locationWolfgang Wallner2020-02-075-1/+9
| | | | | | | | | | | | | | | | The Primary to Sideband Bridge (P2SB) is not specific to Apollo Lake, so move its driver to a common location within arch/x86. Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* | Merge tag 'fixes-for-v2020.04' of ↵WIP/10Feb2020Tom Rini2020-02-102-9/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-video - fix Coverity CID 280902 issue in vid_console_color() - fix vid_console_color() build warning - fix for mxsfb to ensure correct Linux logo position
| * | video: mxsfb: call remove() when booting OSAnatolij Gustschin2020-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DM_FLAG_OS_PREPARE flag to ensure that the driver's remove() callback is invoked before booting the kernel. This is required to stop the LCDIF controller. This was the behaviour with old driver without DM_VIDEO support. Without stopping the LCDIF we sometimes observe incorrect Linux logo position. Fixes: ae0760584b38 ("imx: mx6ul_14x14_evk: convert to DM_VIDEO") Signed-off-by: Anatolij Gustschin <agust@denx.de> Reported-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | video: fix Coverity missing break issueAnatolij Gustschin2020-02-041-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix: >>> CID 280902: Control flow issues (MISSING_BREAK) >>> The case for value "VIDEO_BPP32" is not terminated >>> by a 'break' statement. Also fix error: control reaches end of non-void function [-Werror=return-type] Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
* | | Merge tag 'u-boot-imx-20200210' of ↵Tom Rini2020-02-1098-921/+4107
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx - Convert to DM: - bx50v3, mx53ppd, novena, mx6sabresd - Fixes for Xea Board - Toradex im8m Verdin - Cleanup (warp7, mx6sxsabresd) Travis : https://travis-ci.org/sbabic/u-boot-imx/builds/648131788
| * | | board: ge: bx50v3, imx53ppd: configure CONFIG_SYS_BOOTMAPSZIan Ray2020-02-092-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Configure `CONFIG_SYS_BOOTMAPSZ' per guidance on u-boot@lists.denx.de. Signed-off-by: Ian Ray <ian.ray@ge.com>
| * | | board: ge: bx50v3, mx53ppd: fix firstboot detectionRobert Beckett2020-02-092-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `test' command to test for file existence instead of relying on the old functionality of the `ext2load' command (which now reports an error when attempting to load a zero length file). Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Ian Ray <ian.ray@ge.com>
| * | | board: ge: mx53ppd: use DM for uartIan Ray2020-02-094-17/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop PPD_UART_PAD_CTRL since it matches defaults. Enable DM serial and MXC uart. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: bx50v3: use DM for uartRobert Beckett2020-02-093-32/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove legacy uart pad and iomux code Enable DM serial and mxc uart Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: mx53ppd: Use DM for ethernetRobert Beckett2020-02-093-34/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove legacy iomux setup for fec. Enable phylib and DM fec. Use Kconfig for enabling fec. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: bx50v3: Enable DM PWM for backlightRobert Beckett2020-02-093-66/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add backlight and panel devicetree definitions Use UCLASS_PANEL to enable backlight via display enable handler Remove old explicit gpio code for handling backlight Use cls command to initiate display in HW agnostic manner Enable DM regulator and pwm Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: bx50v3: override panelIan Ray2020-02-094-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Override the panel compatible string for LCD in U-Boot. Include U-Boot device tree overrides in device-specific device trees so that the panel compatible string is used. Fixes: 8c26739859c6 ("board: ge: bx50v3: sync devicetrees from Linux") Signed-off-by: Ian Ray <ian.ray@ge.com>
| * | | board: ge: mx53ppd: enable DM_VIDEOIan Ray2020-02-097-97/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable DM_VIDEO for mx53ppd. Enable DM_REGULATOR_FIXED and DM_PWM for the backlight. Remove unused MX53PPD_LCD_POWER. Remove old (incorrect) setup_iomux_lcd. Enable backlight via display enable handler. Use cls command to initiate display in HW agnostic manner. Modify `failbootcmd' to use lcdputs. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: mx53ppd: add i2c eeprom bootcount storageRobert Beckett2020-02-093-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add bootcount node, linking to i2c eeprom "bootcount" partitions for storage. Enable i2c eeprom bootcount backend storage. Enable bootcount command and use it for failbootcmd. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: bx50v3: add i2c eeprom bootcount storageRobert Beckett2020-02-093-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add bootcount node, linking to i2c eeprom "bootcount" partitions for storage. Enable i2c eeprom bootcount backend storage. Enable bootcount command and use it for failbootcmd. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | board: ge: bx50v3, imx53ppd: use DM I2CRobert Beckett2020-02-0914-236/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove old (pre-DM) i2c setup code. Enable DM i2c. Convert common code to use DM rtc. Convert common code to read VPD from eeprom partition. Convert the generic i2c PMIC init code to use the new da9063 driver. mx53ppd only: Correct RTC compatible in device tree. Enable MXC DM i2c driver. Define CONFIG_SYS_MALLOC_F_LEN so that DM is available in pre-reloc. Make GPIO banks available during preloc, since initialisation is done in board_early_init_f(). Add gpio_request() calls to satisfy the DM_GPIO compatibility API. Remove unused power configuration. Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Ian Ray <ian.ray@ge.com>
| * | | board: ge: bx50v3, imx53ppd: add eeprom partitionsRobert Beckett2020-02-094-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | Add eeprom partitions to device tree. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | misc: i2c_eeprom: set offset len and chip addr offset maskRobert Beckett2020-02-091-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the correct offset length and chip address offset mask for each device to allow correct access to total capacity of the devices. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
| * | | imx: mx6ul_14x14_evk: turn of backlight and LCD before booting OSAnatolij Gustschin2020-02-091-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should help keeping the screen black when booting the kernel. Signed-off-by: Anatolij Gustschin <agust@denx.de> Reported-by: Fabio Estevam <festevam@gmail.com> Tested-by: Fabio Estevam <festevam@gmail.com>
| * | | mx6sabresd: Convert PCI to driver modelAlifer Moraes2020-02-092-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert imx6sabresd PCI to driver model to fix the following warning: ===================== WARNING ====================== This board does not use CONFIG_DM_PCI Please update the board to use CONFIG_DM_PCI before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/MIGRATION.txt for more info. ==================================================== After the conversion the following commands were used for testing: => pci enum PCI: Failed autoconfig bar 10 PCI: Failed autoconfig bar 10 => pci 1 Scanning PCI devices on bus 1 BusDevFun VendorId DeviceId Device Class Sub-Class Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | | mx6sabre_common: Remove FEC related settingsFabio Estevam2020-02-093-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation for converting to DM_ETH and moving the FEC symbols to Kconfig we need to move the FEC definitions to mx6sabreauto.h and mx6sabresd.h to avoid build breakage during the conversion. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Alifer Moraes <alifer.wsdm@gmail.com>
| * | | imx6: aristainetos: fix NAND detection with latest mainlineHeiko Schocher2020-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 88718be30010 ("mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND") moved CONFIG_NAND -> CONFIG_MTD_RAW_NAND. Adapt board code to this change, as last merge did not respect the above commit. Signed-off-by: Heiko Schocher <hs@denx.de>
| * | | ARM: imx: novena: Enable DM thermalMarek Vasut2020-02-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable DM thermal driver and iMX thermal driver to get accurate CPU frequency reporting in the boot log. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
| * | | ARM: imx: novena: Enable DM ethernetMarek Vasut2020-02-093-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert to DM ethernet to prevent board removal. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
| * | | ARM: imx: novena: Move defconfig bits to arch KconfigMarek Vasut2020-02-092-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just move the defconfig entries which are required into the Novena entry in arch Kconfig, no functional change. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
| * | | mx7dsabre: Fix usbtog probe when use dfu or umsJoris Offouga2020-02-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: => ums 0 mmc 0 UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1dacc00 usb dr_mode not found CTRL+C - Operation aborted => dfu 0 mmc 0 usb dr_mode not found After : => ums 0 mmc 0 UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1dacc00 => dfu 0 mmc 0 Signed-off-by: Joris Offouga <offougajoris@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | | arm: dts: imx7s-warp7: Move u-boot specific node in u-boot.dtsiJoris Offouga2020-02-092-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These nodes are not in upstream kernel, so move these in u-boot.dtsi Signed-off-by: Joris Offouga <offougajoris@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | | warp7: remove unused usb configsJoris Offouga2020-02-091-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With commit 6b503f9e6549("warp7: Switch to DM USB"). These configs are not necessary Signed-off-by: Joris Offouga <offougajoris@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>