aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-04-14video/console: Implement ANSI clear line commandAndre Przywara1-0/+19
There is a standard ANSI terminal escape sequence to clear a whole line of text. So far the DM_VIDEO console was missing this code. Detect the sequence and use vidconsole_set_row with the background colour to fix this omission. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2019-04-14video/console: Implement relative cursor movement ANSI handlingAndre Przywara1-0/+37
The ANSI terminal escapce sequence standard defines relative cursor movement commands (ESC [ A-F). So far the DM_VIDEO console code was ignoring them. Interpret those sequences and move the cursor by the requested amount of rows or columns in the right direction. This brings the code on par with the legacy video console driver (cfb_console). Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2019-04-14video/console: Implement reverse video ANSI sequence for DM_VIDEOAndre Przywara3-2/+14
The video console for DM_VIDEO compliant drivers only understands a very small number of ANSI sequences. First and foremost it misses the "reverse video" command, which is used by our own bootmenu command to highlight the selected entry. To avoid forcing people to use their imagination when using the bootmenu, let's just implement the rather simple reverse effect. We need to store the background colour index for that, so that we can recalculate both the foreground and background colour pixel values. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> [agust: merged BG color escape seq change to fix "ut dm video_ansi" test] Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-14video/console: Fix DM_VIDEO font glyph array indexingAndre Przywara2-4/+6
When the character to be printed on a DM_VIDEO console is from the "extended ASCII" range (0x80 - 0xff), it will be treated as a negative number, as it's declared as a signed char. This leads to negative array indicies into the glyph bitmap array, and random garbled characters. Cast the character to an unsigned type to make the index always positive and avoid an out-of-bounds access. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2019-04-14video: backlight: Parse PWM polarity cellStefan Mavrodiev1-0/+11
This patch enables the reading of the polarity cell from a PWM phandle and calls pwm_set_invert(). Not all platforms have polarity cell, so skip if it's not pressent. Signed-off-by: Stefan Mavrodiev <stefan@olimex.com> Reviewed-by: Anatolij Gustschin <agust@denx.de>
2019-04-14Merge branch 'master' of git://git.denx.de/u-boot-spiTom Rini157-255/+283
Conflicts: arch/arm/dts/armada-385-amc.dts arch/arm/dts/armada-xp-theadorable.dts arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi Signed-off-by: Tom Rini <trini@konsulko.com>
2019-04-13imx6: wandboard: fix dwc_ahsata build errors when DM enabledAnatolij Gustschin1-1/+2
Enable CONFIG_AHCI to fix errors: drivers/ata/dwc_ahsata.c: In function `ahci_init_one': drivers/ata/dwc_ahsata.c:868:21: error: `struct blk_desc' has no member named `priv' sata_dev_desc[pdev].priv = uc_priv; ^ drivers/ata/dwc_ahsata.c: In function `init_sata': drivers/ata/dwc_ahsata.c:891:30: error: `struct blk_desc' has no member named `priv' uc_priv = sata_dev_desc[dev].priv; ... Also enable DM_SCSI to fix migration build warning. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: dts: add wandboard dtb target to fix build errorAnatolij Gustschin1-0/+3
Fix broken build: Device Tree Source is not correctly specified. Please define 'CONFIG_DEFAULT_DEVICE_TREE' or build with 'DEVICE_TREE=<device_tree>' argument Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: tbs2910: fix dtb build errorAnatolij Gustschin1-0/+3
Fix broken build: Device Tree Source is not correctly specified. Please define 'CONFIG_DEFAULT_DEVICE_TREE' or build with 'DEVICE_TREE=<device_tree>' argument Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13apalis/colibri_imx6: add device trees to makefileMarcel Ziswiler1-0/+3
Add device trees to Makefile to avoid newly introduced error: Device Tree Source is not correctly specified. Please define 'CONFIG_DEFAULT_DEVICE_TREE' or build with 'DEVICE_TREE=<device_tree>' argument make[1]: *** [dts/Makefile:28: arch/arm/dts/imx6-apalis.dtb] Error 1 make: *** [Makefile:1009: dts/dt.dtb] Error 2 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-04-13imx: aristainetos: fix build breakageAnatolij Gustschin1-1/+1
ipu.h header is not found since the ipuv3 driver was moved to the drivers/video/imx subdirectory. Fix it. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13tdx-cfg-block: fix off by one issueMarcel Ziswiler1-1/+1
Fix toradex_modules array off by one issue potentially leading to spurious printout during boot e.g. Model: Toradex V1.2A, instead of Model: Toradex UNKNOWN MODULE V1.2A. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13toradex: common: unify behaviour when config block is missingBhuvanchandra DV1-16/+18
If the config block is missing, various things may fail or behave strangely on certain modules. This patch unifies that behaviour by using a fake MAC address, until user updates the config block. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13toradex: configblock: add an -y parameter to 'cfgblock create’Dominik Sliwa1-13/+26
Add an optional -y parameter to 'cfgblock create’ to simplify automation. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: fix sdboot for vybrid modulesGerard Salvatella1-3/+3
Currently, Vybrid's sdboot variable tries to load the kernel from /boot of the root partition (typically second partition when using the sdcard image). However, since we moved to flash the kernel in a separate UBI volume, we no longer deploy the kernel/device tree to /boot, hence sdboot does not work in its current state. Load the kernel and device tree from the first (typically FAT) partition as customary on all Toradex modules. While at it also change from rw to ro as e.g. systemd will re-mount the root file system rw anyway after checking it. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: use leveling evaluated by DDR validation toolsStefan Agner1-0/+7
The DDR validation tool (which is part of Processor Expert) allows to evaluate leveling parameters for CR105/CR106/CR110. Several runs have been made with Colibri VF50 and VF61 and it seems to evaluate very similar values. Use this values by default. Note: The newly evaluated parameters seem to require CTLUPD_AREF to be enabled! Note 2: The tool also evaluated 6 as a new value for PHY02/18 GATE_CFG (Coarse adjust of gate open time). However, this seems not to work in practise. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-04-13colibri_vf: adjust timing according to data sheetStefan Agner1-3/+9
Using the DDR Validation tool in Processor Expert uncovered two timing inconsistencies. Since those timings are related to the suspend mode they do not affect or change regular memory behaviour. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13arm: vf610: add uart2 clock/pinmux supportStefan Agner2-1/+6
Add support for Vybrid's UART2 (Colibri UART_B). Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-04-13config: colibri_vf: enable mtd partitions via dtStefan Agner1-0/+1
Use device tree to set MTD partitions of the NAND chip. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: disable undefined instruction events in user debugStefan Agner1-1/+1
It turns out that OpenSSL calls undefined instructions to detect ARM capabilities at runtime (via SIGILL handler). This leads to stack traces e.g. when logging in using SSH: [ 877.464442] sshd (613): undefined instruction: pc=76ee2da8 ... Disable undefined instruction events since it is used as an autodetecion mechanism. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: enable user debug by defaultStefan Agner1-1/+1
Let the kernel print some debug messages when a user program crashes due to an exception. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: sync the board info messageBhuvanchandra DV1-2/+2
Use similar info message as on other modules. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: set fdtfile for distrobootStefan Agner1-2/+2
Set fdtfile to represent the current board. This allows distribution to load the correct device tree, which in the module case often deviates from the common fallback ${soc}-${board}${boardver}.dtb... Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: add distroboot supportStefan Agner1-29/+46
Add support for distro boot. This is especially helpful for external devices. There is a global boot command which scans a predefined list of boot targets: run distro_bootcmd As well as direct boot commands such as: run bootcmd_mmc0 run bootcmd_usb run bootcmd_dhcp ... Refer to doc/README.distro fo details. While at it also re-order boot command macros as well as the CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13config: colibri_vf: use macros from linux/sizes.hMarcel Ziswiler1-3/+4
Use SZ_X{MK} macros from linux/sizes.h for include/configs/colibri_vf.h. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: migrate fec, esdhc, nfc and usb to driver modelMarcel Ziswiler3-93/+7
Migrate FEC, ESDHC, NFC and USB to driver model. While at it also do no longer enable optional I2C clock in board file as the generic clock code now handles this. Note for space reason and as it is not required just for booting we do not enable I2C in U-Boot by default. While at it also update copyright period. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13colibri_vf: migrate pinctrl and regulators to dtb/dmMarcel Ziswiler2-128/+16
Migrate pinctrl and regulators to device tree resp. driver model: DDR, DSPI, ENET, ESDHC, I2C, NFC and UART. Enable CMD_DM, PINCTRL and DM_REGULATOR. While at it also update copyright period and sort include files. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13configs: colibri_vf: disable obscure optionsMarcel Ziswiler1-1/+9
Disable more obscure options to save another 26 KB in preparation of the upcoming driver model migration. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-04-13ARM: dts: colibri_vf: update device treesMarcel Ziswiler5-3/+224
Update device tree in preparation of further driver model migration: Ethernet FEC, ESDHC aka MMC/SD card, I2C, NFC aka NAND flash controller, USBH_PEN GPIO regulator. Add iomux resp. pinctrl entries to be removed from proprietary platform data: DSPI, ESDHC, FEC, I2C, NFC, UART, USBH_PEN GPIO. Introduce a U-Boot specific device tree with some required u-boot,dm-pre-reloc properties: soc, aips0, pinctrl_ddr and uart0 incl. pinctrl. While at it also update the MAINTAINERS file. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-04-13configs: move CONFIG_MXC_OCOTP to KconfigMarcel Ziswiler14-41/+2
While commit 3e020f03e94f ("driver: misc: add MXC_OCOTP Kconfig entry") introduced a Kconfig entry it did not actually migrate all configurations to using it. As CONFIG_MXC_OCOTP was in mx{6/7}_common.h enable it by default on those architectures. Additionally, also enable it on ARCH_IMX8M and ARCH_VF610 where all current members enabled it through their legacy configuration header files. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
2019-04-13configs: colibri_vf: limit size of malloc() pool before relocationMarcel Ziswiler1-0/+1
Limit the size of the malloc() pool before relocation (SYS_MALLOC_F_LEN). Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13configs: colibri_vf: remove obsolete mmc/sd card environmentMarcel Ziswiler1-9/+0
Remove obsolete MMC/SD card environment configuration dating back to un-fused samples times. While at it also remove meanwhile spurious "USB Storage" comment. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13configs: move CONFIG_USB_EHCI_VF to KconfigMarcel Ziswiler3-2/+7
Move CONFIG_USB_EHCI_VF to drivers/usb/host/Kconfig and update the one and only user thereof being colibri_vf. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13imx: bootaux: add dependency on vf610Marcel Ziswiler1-1/+1
Allow using bootaux also on VF610 aka Vybrid. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13vf610: ddrmc: add missing includeMarcel Ziswiler1-0/+2
The DDR memory controller include file for the Vybrid uses iomux_v3_cfg_t without actually including iomux-vf610.h. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13Add missing space in commentMarcel Ziswiler2-2/+2
Spotted two missing spaces in comments. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-13imx6: wandboard: convert to DM_MMCAnatolij Gustschin3-97/+93
Move SDHC init to SPL code since it is not required with DM_MMC. Enable DM_MMC support. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: wandboard: convert to DM_I2CAnatolij Gustschin3-13/+23
Allow building with DM_I2C enabled. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: wandboard: convert to DM_PMICAnatolij Gustschin4-22/+125
Enable DM_PMIC_PFUZE100 driver and add PMIC description to DTS. Rework power_init_board() code. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: wandboard: convert to DM_VIDEOAnatolij Gustschin2-3/+1
Enable DM_VIDEO in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: wandboard: convert to DM_USBAnatolij Gustschin2-1/+1
Drop CONFIG_USB_MAX_CONTROLLER_COUNT and enable DM_USB in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: wandboard: convert to DM_GPIO and enable pinctrl driverAnatolij Gustschin2-0/+15
Enable DM_GPIO and pinctrl in defconfig and add gpio_request() calls where required. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: wandboard: add device treeAnatolij Gustschin5-1/+343
Add device trees from Linux in preparation for driver model conversions. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13mx6sabreauto: convert to DM_VIDEOAnatolij Gustschin1-1/+1
Enable DM_VIDEO in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13mx6sabresd: convert to DM_VIDEOAnatolij Gustschin1-1/+1
Enable DM_VIDEO in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13colibri_imx6: convert to DM_VIDEOAnatolij Gustschin1-1/+1
Enable DM_VIDEO in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: ge_bx50v3: convert to DM_VIDEOAnatolij Gustschin2-3/+1
Enable DM_VIDEO in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: icore: convert to DM_VIDEOAnatolij Gustschin4-4/+4
Enable DM_VIDEO in defconfigs. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13apalis_imx6: convert to DM_VIDEOAnatolij Gustschin1-1/+2
Enable DM_VIDEO in defconfig. Signed-off-by: Anatolij Gustschin <agust@denx.de>
2019-04-13imx6: dts: add 'u-boot, dm-pre-reloc' to soc and ipu nodesAnatolij Gustschin1-0/+2
u-boot,dm-pre-reloc is required for reserving video memory when binding DM_VIDEO driver. Signed-off-by: Anatolij Gustschin <agust@denx.de>