summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-19Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi into nextTom Rini
- Convert fsl_espi to driver model (Chuanhua) - Enable am335x baltos to DM_SPI (Jagan) - Drop few powerpc board which doesn't have DM enabled (Jagan)
2020-06-18Merge tag 'video-next' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-video into next - migrate remaining imx5/imx6qd boards to DM_VIDEO - use 'vidconsole' stdout in nitrogen6x upgrade script - add option for selection of the vidconsole commands lcdputs and setcurs - allow building ipuv3 driver with disabled CONFIG_PANEL - make backlight and panel drivers optional - remove useless code from ipuv3 driver - extend existing DM_VIDEO work-around for console name to support 'vga' - remove non-DM code in ipuv3
2020-06-18video: ipuv3: remove non-DM codeAnatolij Gustschin
All ipuv3 users have been converted, drop obsolete code. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2020-06-18imx: convert mx53loco board to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Jason Liu <jason.hui.liu@nxp.com> Acked-by: Jason Liu<jason.hui.liu@nxp.com>
2020-06-18imx: convert mx51evk board to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Stefano Babic <sbabic@denx.de>
2020-06-18imx: convert gwventana board to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfigs to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Tim Harvey <tharvey@gateworks.com>
2020-06-18imx: convert mx6cuboxi board to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Fabio Estevam <fabio.estevam@nxp.com>
2020-06-18imx: convert cgtqmx6eval board to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Otavio Salvador <otavio@ossystems.com.br>
2020-06-18imx: convert dms-ba16 boards to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfigs to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Akshay Bhat <akshaybhat@timesys.com> Cc: Ken Lin <Ken.Lin@advantech.com.tw>
2020-06-18imx: convert pico-imx6 to DM_VIDEOAnatolij Gustschin
Update defconfig to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Fabio Estevam <festevam@gmail.com>
2020-06-18imx: convert embest boards to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue. Update defconfigs to enable usage of converted ipuv3 driver DM configuration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Eric Bénard <eric@eukrea.com>
2020-06-18tbs2910: migrate to DM_VIDEOAnatolij Gustschin
Migration to DM_VIDEO driver is long overdue, configure it in board config files. To enable the display set stdout like: setenv stdout serial,vidconsole Signed-off-by: Anatolij Gustschin <agust@denx.de> Tested-by: Soeren Moch <smoch@web.de>
2020-06-18video: extend stdout video console work-around for 'vga'Anatolij Gustschin
cfb_console driver uses 'vga' console name and we still have board environments defining this name. Re-use existing DM_VIDEO work- around for console name to support 'vga' name in stdout environment. Signed-off-by: Anatolij Gustschin <agust@denx.de> Tested-by: Soeren Moch <smoch@web.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
2020-06-18video: ipuv3: remove some useless code to reduce binary sizeAnatolij Gustschin
To enable DM_VIDEO we must decrease binary size to fix build breakage for some boards, so drop not needed code. Also add !DM_VIDEO guards which can be later removed when last non DM users will be converted. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2020-06-18video: make backlight and panel drivers optionalAnatolij Gustschin
Not all boards use these drivers, so allow to disable them to fix building boards with U-Boot binary image size restrictions. Signed-off-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
2020-06-18video: ipuv3: fix building with disabled panel driverAnatolij Gustschin
Panel code might be disabled for some boards, make this driver code optional. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2020-06-18video: make vidconsole commands optionalAnatolij Gustschin
Converting some boards to DM_VIDEO results in build breakage due to increased code size. Make video console specific commands optional to reduce binary size. Signed-off-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
2020-06-18nitrogen6x: update video console nameAnatolij Gustschin
After migration to DM 'vga' name is not longer supported, Update the upgrade script to use 'vidconsole' instead. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Troy Kisky <troy.kisky@boundarydevices.com> Acked-by: Troy Kisky <troy.kisky@boundarydevices.com>
2020-06-18board: nitrogen6x: migrate to CONFIG_DM_VIDEOTroy Kisky
Enable driver model for Video to remove compiler warning. To enable display, issue setenv stdout serial,vidconsole; Add CONFIG_DM_VIDEO to all defconfigs whose board is nitrogen6x. mx6qsabrelite_defconfig nitrogen6dl2g_defconfig nitrogen6dl_defconfig nitrogen6q2g_defconfig nitrogen6q_defconfig nitrogen6s1g_defconfig nitrogen6s_defconfig Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Tested-by: Anatolij Gustschin <agust@denx.de>
2020-06-18am335x: baltos: Enable DM_SPIJagan Teki
Enable DM_SPI for am355x baltos board. Build is fine, but not tested. Cc: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
2020-06-18dm: spi: Convert Freescale ESPI driver to driver modelChuanhua Han
Modify the Freescale ESPI driver to support the driver model. Also resolved the following problems: ===================== WARNING ====================== This board does not use CONFIG_DM_SPI. Please update the board before v2019.04 for no dm conversion and v2019.07 for partially dm converted drivers. Failure to update can lead to driver/board removal See doc/driver-model/MIGRATION.txt for more info. ==================================================== ===================== WARNING ====================== This board does not use CONFIG_DM_SPI_FLASH. Please update the board to use CONFIG_SPI_FLASH 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. ==================================================== Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com> Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2020-06-18powerpc: Remove TWR-P1025_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Xiaobo Xie <xiaobo.xie@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove T4160QDS_NAND_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove T1040QDS_DDR4_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Poonam Aggrwal <poonam.aggrwal@nxp.com> Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove T1024QDS_DDR4_SECURE_BOOT_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
2020-06-18powerpc: Remove P1022DS_36BIT_NAND_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Timur Tabi <timur@tabi.org> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove configs/MPC8536DS_36BIT_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove configs/C29XPCIE_NAND_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Po Liu <po.liu@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Naveen Burmi <naveen.burmi@nxp.com> Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove configs/BSC9131RDB_NAND_SYSCLK100_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Poonam Aggrwal <poonam.aggrwal@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18powerpc: Remove configs/B4420QDS_NAND_defconfig boardJagan Teki
DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Ashish Kumar <ashish.kumar@nxp.com> Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-18Merge tag 'ti-v2020.10-next' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-ti into next - DM conversion for OMAP4, OMAP5 platforms. - Other minor fixes for Nokia RX51, am33, am57, am654.
2020-06-16common: hash: Remove a debug printf statementHarald Seiler
Remove a left-over debug printf that was introduced with SHA512 support. Fixes: d16b38f42704 ("Add support for SHA384 and SHA512") Signed-off-by: Harald Seiler <hws@denx.de>
2020-06-16Merge tag 'u-boot-stm32-20200616' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-stm - fix boot with OP-TEE for stm32mp15 boards
2020-06-16ARM: da850-evm: Remove SPI from SPL when booting from NANDAdam Ford
The da850evm boots from SPI flash while the da850evm_nand_defconfig boots from NAND and these are configs are mutually exclusive. Since there isn't a need for SPI during SPL in the NAND configuration, this patch removes the SPI drivers in SPL while making them still available in U-Boot proper. This should save some code space in SPL. Signed-off-by: Adam Ford <aford173@gmail.com>
2020-06-16omap5: uevm: convert to device modelTero Kristo
Convert omap5 uevm board to device model. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2020-06-16omap5: Copy device tree from linux 5.7.yTero Kristo
Copy all the device tree files required for omap5 uevm support from mainline Linux. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2020-06-16omap4: sdp: convert to device modelPeter Ujfalusi
Convert omap4 sdp to device model. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com>
2020-06-16omap4: Copy device tree from Linux 5.7.y for SDP4430Peter Ujfalusi
Copy all device tree files required for omap4 sdp4430 support from mainline Linux. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com>
2020-06-16omap4: panda: convert to device modelTero Kristo
Convert omap4 panda to device model. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2020-06-16omap4: Copy device tree from Linux 5.7.yTero Kristo
Copy all device tree files required for omap4 panda support from mainline Linux. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2020-06-16board: ti: am654: Disable SA2UL node for HS devicesAndrew F. Davis
On HS devices the access to SA2UL is restricted on the non-secure ARM side, disable the node in DT to prevent firewall violations. We used to only disable the TRNG but now that we have full SA2UL support in Linux, in which TRNG is a sub-module, disable both by disabling the parent SA2UL node. Signed-off-by: Andrew F. Davis <afd@ti.com>
2020-06-16net: cpsw: Add __maybe_unused to generated inlinesTom Rini
We generate a number of helper inline functions to make accesses easier. However not all permutations of each function will be used and clang will warn about unused ones. Decorate all of them with __maybe_unused because of this. Cc: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
2020-06-16mmc: omap_hsmmc: Add guards around omap_hsmmc_get_cfg()Tom Rini
We only call the function omap_hsmmc_get_cfg in the case of OMAP34XX or when we have to iodelay recalibration. Add guards for these checks as clang will otherwise warn. Cc: Peng Fan <peng.fan@nxp.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
2020-06-16gpio: omap_gpio: Fix unused function warning in non-DM caseTom Rini
In the case of non-DM_GPIO the function get_gpio_index() will never be called, and clang will warn about this. Move this to be with the other non-DM code for easier removal later. Cc: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
2020-06-16board: ti: am335x_evm: Remove duplicate setting of bd_ram_ofs memberTom Rini
With clang we get a report that we are setting this member twice. Fortunately it is to the same value, so drop the hard-coded value line. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
2020-06-16board: ti: common: Fix pointer-bool-conversion warningsTom Rini
When building this code with clang-10 a number of warnings will be generated along the lines of: warning: address of array 'ep->version' will always evaluate to 'true' Convert these checks to checking the strlen of the part of the array we care about. As this array will be null terminated previously by us, this is safe. Cc: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
2020-06-16phy: omap-usb2-phy: disable phy charger detectBin Liu
AM654x PG1.0 has a silicon bug that D+ is pulled high after POR, which could cause enumeration failure with some USB hubs. Disabling the USB2_PHY Charger Detect function will put D+ into the normal state. Using property "ti,dis-chg-det-quirk" in the DT usb2-phy node to enable this workaround for AM654x PG1.0. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com>
2020-06-16dts: ARM: stm32mp15: add OP-TEE node in u-boot DTSIEtienne Carriere
Add OP-TEE firmware node in stm32mp15 U-Boot DTSI. This node is needed since commit [1] that changed U-Boot/stm32mp15 to detect OP-TEE availability by probing the resource instead of relying on U-Boot configuration. The software sequence implemented by [1] is fine but U-Boot DTS/DTSI files were not updated accordingly since, hence OP-TEE presence is never detected by U-Boot, preventing Linux kernel from using OP-TEE resources. For consistency and to synchronize stm32mp15 DTSI files (excluding U-Boot specific DTSI files) with the Linux kernel ones, this change also moves the OP-TEE reserved memory nodes from board generic DTSI files to U-Boot specific board DTSI files. Link: [1] commit 43df0a159df6 ("stm32mp1: dynamically detect op-tee presence") Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
2020-06-16board: stm32mp1: fix handling of DT OP-TEE reserved memory nodesEtienne Carriere
Fix the sequence in stm32mp1 fdt.c that disables OP-TEE resources defined in FDT when U-boot detects OP-TEE firmware is not present. Before this change, helper function stm32_fdt_disable_optee() set property status to "disabled" for the OP-TEE reserved memory nodes but this has no impact since Linux kernel does not consider the status property for reserved-memory subnodes. This change make U-Boot to attempt to delete the node instead. Fixes: 4a1b975dac02 ("board: stm32mp1: reserve memory for OP-TEE in device tree") Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>