summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * spi: mxs: Drop nondm codeJagan Teki2020-06-112-129/+6
| |/ | | | | | | | | | | | | | | | | | | | | Deadline for DM migration already passed by months and no response on full dm conversation hence removed the nondm code. Note: Look like there is no user for nondm code for this driver. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* | Merge tag 'video-next' of ↵WIP/18Jun2020-nextTom Rini2020-06-1833-161/+219
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | video: ipuv3: remove non-DM codeAnatolij Gustschin2020-06-182-44/+1
| | | | | | | | | | | | | | | | | | All ipuv3 users have been converted, drop obsolete code. Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * | imx: convert mx53loco board to DM_VIDEOAnatolij Gustschin2020-06-181-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert mx51evk board to DM_VIDEOAnatolij Gustschin2020-06-181-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert gwventana board to DM_VIDEOAnatolij Gustschin2020-06-183-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert mx6cuboxi board to DM_VIDEOAnatolij Gustschin2020-06-181-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert cgtqmx6eval board to DM_VIDEOAnatolij Gustschin2020-06-182-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert dms-ba16 boards to DM_VIDEOAnatolij Gustschin2020-06-183-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert pico-imx6 to DM_VIDEOAnatolij Gustschin2020-06-181-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx: convert embest boards to DM_VIDEOAnatolij Gustschin2020-06-183-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | tbs2910: migrate to DM_VIDEOAnatolij Gustschin2020-06-182-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | video: extend stdout video console work-around for 'vga'Anatolij Gustschin2020-06-183-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | video: ipuv3: remove some useless code to reduce binary sizeAnatolij Gustschin2020-06-182-47/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | video: make backlight and panel drivers optionalAnatolij Gustschin2020-06-182-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | video: ipuv3: fix building with disabled panel driverAnatolij Gustschin2020-06-181-4/+7
| | | | | | | | | | | | | | | | | | | | | Panel code might be disabled for some boards, make this driver code optional. Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * | video: make vidconsole commands optionalAnatolij Gustschin2020-06-182-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | nitrogen6x: update video console nameAnatolij Gustschin2020-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | board: nitrogen6x: migrate to CONFIG_DM_VIDEOTroy Kisky2020-06-187-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge tag 'ti-v2020.10-next' of ↵Tom Rini2020-06-1850-190/+13022
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 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.
| * | ARM: da850-evm: Remove SPI from SPL when booting from NANDAdam Ford2020-06-161-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | omap5: uevm: convert to device modelTero Kristo2020-06-163-71/+62
| | | | | | | | | | | | | | | | | | Convert omap5 uevm board to device model. Signed-off-by: Tero Kristo <t-kristo@ti.com>
| * | omap5: Copy device tree from linux 5.7.yTero Kristo2020-06-168-0/+5771
| | | | | | | | | | | | | | | | | | | | | Copy all the device tree files required for omap5 uevm support from mainline Linux. Signed-off-by: Tero Kristo <t-kristo@ti.com>
| * | omap4: sdp: convert to device modelPeter Ujfalusi2020-06-163-3/+25
| | | | | | | | | | | | | | | | | | | | | Convert omap4 sdp to device model. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com>
| * | omap4: Copy device tree from Linux 5.7.y for SDP4430Peter Ujfalusi2020-06-162-0/+727
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | omap4: panda: convert to device modelTero Kristo2020-06-164-41/+64
| | | | | | | | | | | | | | | | | | Convert omap4 panda to device model. Signed-off-by: Tero Kristo <t-kristo@ti.com>
| * | omap4: Copy device tree from Linux 5.7.yTero Kristo2020-06-1616-0/+6257
| | | | | | | | | | | | | | | | | | | | | Copy all device tree files required for omap4 panda support from mainline Linux. Signed-off-by: Tero Kristo <t-kristo@ti.com>
| * | board: ti: am654: Disable SA2UL node for HS devicesAndrew F. Davis2020-06-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | net: cpsw: Add __maybe_unused to generated inlinesTom Rini2020-06-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | mmc: omap_hsmmc: Add guards around omap_hsmmc_get_cfg()Tom Rini2020-06-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | gpio: omap_gpio: Fix unused function warning in non-DM caseTom Rini2020-06-161-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | board: ti: am335x_evm: Remove duplicate setting of bd_ram_ofs memberTom Rini2020-06-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | board: ti: common: Fix pointer-bool-conversion warningsTom Rini2020-06-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | phy: omap-usb2-phy: disable phy charger detectBin Liu2020-06-161-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Nokia RX-51: Fix checking if serial console was enabledPali Rohár2020-06-131-1/+1
| | | | | | | | | | | | | | | | | | There was incorrect logic for parsing OMAP_TAG_UART atag. Signed-off-by: Pali Rohár <pali@kernel.org>
| * | Nokia RX-51: Add link for u-boot-gen-combined script to README filePali Rohár2020-06-131-0/+5
| | | | | | | | | | | | | | | | | | This patch updates Nokia RX-51 README file. Signed-off-by: Pali Rohár <pali@kernel.org>
| * | tools: k3_gen_x509_cert: Set default early HS JTAG access to disabledAndrew F. Davis2020-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When authenticating the initial boot binary the ROM will check a debug type value in the certificate and based on that open JTAG access to that core. This only effects HS devices as non-HS device ROM allows JTAG by default. This can be useful for HS developers working in the early boot stage, before SYSFW is loaded. After that point the JTAG access can be changed based on board configurations passed to SYSFW. This access can also be a large security problem as JTAG access on HS devices can be used to circumvent the chain-of-trust controls. Accidentally leaving this open defeats the security on HS, due to this change the default to disabled. This should only effect those working on early HS boot code, which is a limited crowd who will already know how to re-enable this access as needed. Signed-off-by: Andrew F. Davis <afd@ti.com>
| * | tools: k3_gen_x509_cert: Allow selecting early JTAG debug valueAndrew F. Davis2020-06-131-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When authenticating the initial boot binary the ROM will check a debug type value in the certificate and based on that open JTAG access to that core. Make this selectable in the signing tool to allow it to be enabled or disabled based on user command line input. This does not change the default behavior. Signed-off-by: Andrew F. Davis <afd@ti.com>
| * | mmc: davinci_mmc: Cleanup to use dt in U-boot and static platdata in SPLFaiz Abbas2020-06-134-41/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup this driver to use dt in U-boot and static platdata in SPL. This requires the following steps: 1. Move all platdata assignment from probe() to ofdata_to_platdata(). This function is only called in U-boot. 2. Replicate all the platdata assignment being done in ofdata_to_platdata() in the omapl138 board file. This data is used in the SPL case where SPL_OF_CONTROL is not enabled. 3. Remove SPL_OF_CONTROL and related configs from omapl138_lcdk_defconfig This cleanup effectively reverts 3ef94715cc ('mmc: davinci: fix mmc boot in SPL') Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
| * | board: ti: use positive logic to detect idk boardsLuca Ceresoli2020-06-131-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am57x_idk_lcd_detect() exits immediately if a known board not having an LCD is found, i.e. a non-IDK board. This is annoying as we have to remember to add an extra OR clause for every new non-IDK board. Add a board_is_ti_idk() macro so that the logic becomes positive (detect LCD on IDK boards instead of not-known-without-LCD boards). Even more important, add the macro just below the board_is_*_idk() macros, so it is easy to remember to update it when adding a new IDK. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
| * | board: ti: am57xx: use GPIO_TO_PIN() to define GPIO numberLuca Ceresoli2020-06-131-2/+1
| |/ | | | | | | | | | | Using the macro makes code readable without the need for a comment. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
* | common: hash: Remove a debug printf statementHarald Seiler2020-06-161-2/+0
| | | | | | | | | | | | | | 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>
* | Merge tag 'dm-pull-12jun20' of git://git.denx.de/u-boot-dm into nextWIP/13Jun2020Tom Rini2020-06-1341-207/+691
|\ \ | | | | | | | | | | | | | | | patman improvements to allow it to work with Zephyr change to how sequence numbers are assigned to devices minor fixes and improvements
| * | doc: driver-model: fix typo in design.rstDario Binacchi2020-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | Fix the 'memeber' typo in doc/driver-model/design.rst. Signed-off-by: Dario Binacchi <dariobin@libero.it> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | dm: uclass: don't assign aliased seq numbersMichael Walle2020-06-115-23/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there are aliases for an uclass, set the base for the "dynamically" allocated numbers next to the highest alias. Please note, that this might lead to holes in the sequences, depending on the device tree. For example if there is only an alias "ethernet1", the next device seq number would be 2. In particular this fixes a problem with boards which are using ethernet aliases but also might have network add-in cards like the E1000. If the board is started with the add-in card and depending on the order of the drivers, the E1000 might occupy the first ethernet device and mess up all the hardware addresses, because the devices are now shifted by one. Also adapt the test cases to the new handling and add test cases checking the holes in the seq numbers. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Alex Marginean <alexandru.marginean@nxp.com> Tested-by: Alex Marginean <alexandru.marginean@nxp.com> Acked-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Michal Simek <michal.simek@xilinx.com> [on zcu102-revA]
| * | dm: core: fix dev_read_alias_highest_id() without libfdtMichael Walle2020-06-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If CONFIG_DM_DEV_READ_INLINE is set, dev_read_alias_highest_id() calls libfdt_get_highest_id(). But this function is only available if we have libfdt compiled in. If its not available return -1, which matches the return code for no alias found. This fixes the following error on omapl138_lcdk: arm-linux-gnueabi-ld.bfd: drivers/built-in.o: in function `dev_read_alias_highest_id': /home/mw/repo/u-boot/include/dm/read.h:986: undefined reference to `fdtdec_get_alias_highest_id' Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | usb: provide a device tree node to USB devicesMichael Walle2020-06-113-5/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible to specify a device tree node for an USB device. This is useful if you have a static USB setup and want to use aliases which point to these nodes, like on the Raspberry Pi. The nodes are matched against their hub port number, the compatible strings are not matched for now. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | log: check argument of 'log level' commandHeinrich Schuchardt2020-06-111-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | Check that the argument provided to the 'log level' command is in the range between zero and CONFIG_LOG_MAX_LEVEL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | log: clean up KconfigHeinrich Schuchardt2020-06-111-74/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LOG_DEFAULT_LEVEL has been chosen as 6. Adjust the default of LOG_MAX_LEVEL to this value. Use ranges to clamp log levels to reasonable values. Group output options by main U-Boot, SPL, TPL, followed by other logging options. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | doc: move README.log to HTML documentationHeinrich Schuchardt2020-06-113-0/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert README.log to reStructuredText and add it to the generated HTML documentation. Assign doc/develop/logging.rst to the maintainer of LOGGING. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>