summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2021-04-14lib: Add support for ECDSA image signingAlexandru Gagniuc
mkimage supports rsa2048, and rsa4096 signatures. With newer silicon now supporting hardware-accelerated ECDSA, it makes sense to expand signing support to elliptic curves. Implement host-side ECDSA signing and verification with libcrypto. Device-side implementation of signature verification is beyond the scope of this patch. Signed-off-by: Alexandru Gagniuc <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-04-14lib/rsa: Make fdt_add_bignum() available outside of RSA codeAlexandru Gagniuc
fdt_add_bignum() is useful for algorithms other than just RSA. To allow its use for ECDSA, move it to a common file under lib/. The new file is suffixed with '-libcrypto' because it has a direct dependency on openssl. This is due to the use of the "BIGNUM *" type. Signed-off-by: Alexandru Gagniuc <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-04-14lib: Rename rsa-checksum.c to hash-checksum.cAlexandru Gagniuc
rsa-checksum.c sontains the hash_calculate() implementations. Despite the "rsa-" file prefix, this function is useful for other algorithms. To prevent confusion, move this file to lib/, and rename it to hash-checksum.c, to give it a more "generic" feel. Signed-off-by: Alexandru Gagniuc <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-04-12gpio: Drop dm_gpio_set_dir()Simon Glass
This function is not used. Drop it. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2021-04-12x86: qemu: move QFW to its own uclassAsherah Connor
We move qfw into its own uclass and split the PIO functions into a specific driver for that uclass. The PIO driver is selected in the qemu-x86 board config (this covers x86 and x86_64). include/qfw.h is cleaned up and documentation added. Signed-off-by: Asherah Connor <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]> Tested-by: Bin Meng <[email protected]>
2021-04-12lib: string: Implement strlcatSean Anderson
This introduces strlcat, which provides a safer interface than strncat. It never copies more than its size bytes, including the terminating nul. In addition, it never reads past dest[size - 1], even if dest is not nul-terminated. This also removes the stub for dwc3 now that we have a proper implementation. Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-04-12firmware: scmi: voltage regulatorEtienne Carriere
Implement voltage regulators interfaced by the SCMI voltage domain protocol. The DT bindings are defined in the Linux kernel since SCMI voltage domain and regulators patches [1] and [2] integration in v5.11-rc7. Link: [1] https://github.com/torvalds/linux/commit/0f80fcec08e9c50b8d2992cf26495673765ebaba Link: [2] https://github.com/torvalds/linux/commit/2add5cacff3531e54c50b0832128299faa9f0563 Signed-off-by: Etienne Carriere <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
2021-04-12Tegra: remove e2220-1170 boardPeter Robinson
It's an old bringup board with out upstream Linux or L4T support Signed-off-by: Peter Robinson <[email protected]> Cc: Stephen Warren <[email protected]> Cc: Tom Warren <[email protected]> Acked-by: Stephen Warren <[email protected]>
2021-04-12hash: Allow for SHA512 hardware implementationsJoel Stanley
Similar to support for SHA1 and SHA256, allow the use of hardware hashing engine by enabling the algorithm and setting CONFIG_SHA_HW_ACCEL / CONFIG_SHA_PROG_HW_ACCEL. Signed-off-by: Joel Stanley <[email protected]>
2021-04-12hw_sha: Fix coding style errorsJoel Stanley
Checkpatch complains about: ERROR: "foo * bar" should be "foo *bar" and CHECK: Alignment should match open parenthesis Signed-off-by: Joel Stanley <[email protected]>
2021-04-12lib: optee: migration optee_copy_fdt_nodes for OF_LIVE supportPatrick Delaunay
The optee_copy_fdt_nodes is only used to copy op-tee nodes of U-Boot device tree (from gd->fdt_blob when OF_LIVE is not activated) to external device tree but it is not compatible with OF_LIVE. This patch migrates all used function fdt_ functions to read node on old_blob to ofnode functions, compatible with OF_LIVE and remove this parameter "old_blob". The generated "device tree" is checked on stm32mp platform with OF_LIVE activated. Signed-off-by: Patrick Delaunay <[email protected]>
2021-04-12power: pmic: remove pmic_max77696.c fileJaehoon Chung
Remove pmic_max77696.c file. The maintaining pmic_max77696.c file is useless. Signed-off-by: Jaehoon Chung <[email protected]>
2021-04-12board: warp: add power_max77696_init() functionJaehoon Chung
Add power_max77696_init() function. Since warp doesn't support DM, the keeping its code in board file is better than maintainig the file of driver. Signed-off-by: Jaehoon Chung <[email protected]>
2021-04-11Merge branch '2021-04-11-remove-non-migrated-boards'Tom Rini
- Remove a large number of boards that have not migrated to DM_MMC, for which the migration deadline with 2 years ago at v2019.04.
2021-04-11Merge tag 'video-2021-07-rc1' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-video - rk3399 eDP support - pwm backlight without a known period_ns - add Chrome OS EC PWM driver - Kconfig SIMPLE_PANEL DM_GPIO dependency - remove mb862xx driver remnants - fix KiB format in reserve_video() debug trace - fix tegra124 sor CSTM LVDS_EN_ENABLE/DISABLE config - fix line padding calculation for 16 and 24 BPP bitmaps
2021-04-10Merge tag 'efi-2021-07-rc1' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for efi-2021-07-rc1 Bug fixes: * support EFI, HOST, VIRTIO in fsinfo command * simplify efi_get_device_path_text() * add missing EFI_UNACCEPTED_MEMORY_TYPE * mkeficapsule: improve online help * avoid several build warnings Documentation: * UEFI documentation for initrd loading options * describe building OP-TEE with for UEFI variables * mmc man-page
2021-04-10ppc: Remove MPC837XEMDS boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Priyanka Jain <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10pwm: Add a driver for Chrome OS EC PWMAlper Nebi Yasak
This PWM is used in rk3399-gru-bob and rk3399-gru-kevin to control the display brightness. We can only change the duty cycle, so on set_config() we just try to match the duty cycle that dividing duty_ns by period_ns gives us. To disable, we set the duty cycle to zero while keeping the old value for when we want to re-enable it. The cros_ec_set_pwm_duty() function is taken from Depthcharge's cros_ec_set_bl_pwm_duty() but modified to use the generic pwm type. The driver itself is very loosely based on rk_pwm.c for the general pwm driver structure. The devicetree binding file is from Linux, before it was converted to YAML at 5df5a577a6b4 ("dt-bindings: pwm: Convert google,cros-ec-pwm.txt to YAML format") in their repo. Signed-off-by: Alper Nebi Yasak <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-04-10video: backlight: Support PWMs without a known period_nsAlper Nebi Yasak
The PWM device provided by Chrome OS EC doesn't really support anything other than setting a relative duty cycle. To support it as a backlight, this patch makes the PWM period optional in the device tree and pretends the valid brightness range is its period_ns. Also adds a sandbox test for a PWM channel that has a fixed period, checking that the resulting duty_cycle matches on a set_config() even if the requested period_ns can't be set. Signed-off-by: Alper Nebi Yasak <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2021-04-10ppc: Remove Cyrus_P5020 and P5040 boardsTom Rini
These boards have not been converted to CONFIG_DM_MMC by the deadline. Remove them. As the P5020 is the last ARCH_P5020 platform, remove that support as well. Cc: Andy Fleming <[email protected]> Cc: Priyanka Jain <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Priyanka Jain <[email protected]>
2021-04-10ppc: Remove controlcenterd boardsTom Rini
These boards have not been converted to CONFIG_DM_MMC by the deadline. Remove them. Cc: Mario Six <[email protected]> Cc: Dirk Eibach <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10ppc: Remove gdsys hrcon boardsTom Rini
These boards have not been converted to CONFIG_DM_MMC, along with other DM conversions, by the deadline. Remove them. Cc: Dirk Eibach <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10ppc: Remove gdsys strider boardsTom Rini
These boards have not been converted to CONFIG_DM_MMC, along with other DM conversions, by the deadline. Remove them. Cc: Dirk Eibach <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10ppc: Remove MPC8308RDB boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Ilya Yanok <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10ppc: Remove T2081QDS board and ARCH_T2081 supportTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. It is also the only ARCH_T2081 board so remove that support as well. Cc: Shengzhou Liu <[email protected]> Cc: Ruchika Gupta <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove mx6dlarm2 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Jason Liu <[email protected]> Cc: Ye Li <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove cgtqmx6eval boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Otavio Salvador <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove titanium boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Stefan Roese <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove ts4800 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Lucile Quirion <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove mx53evk boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Jason Liu <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove pfla02 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Stefano Babic <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove zc5202 and zc5601 boardsTom Rini
These boards have not been converted to CONFIG_DM_MMC by the deadline. Remove them. Cc: Stefano Babic <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove kc1 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Paul Kocialkowski <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove am3517_crane boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Nagendra T S <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove omap3_ha boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Stefan Roese <[email protected]> Cc: Tapani Utriainen <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove tricorder boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Thomas Weber <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove platinum_picon boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Stefan Roese <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove Broadcom Cygnus boardsTom Rini
These boards have not been converted to CONFIG_DM by the deadline. Remove them. Cc: Steve Rae <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove bcm23550_w1d boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Steve Rae <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove bcm28155_ap boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Steve Rae <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove picosam9g45 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Erik van Luijk <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove wb50n boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Ben Whitten <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove wb45n boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Ben Whitten <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove bcm958712k boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Jon Mason <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove s32v234evb boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Eddy Petrișor <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove secomx6quq7 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Boris Brezillon <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove vexpress_ca15_tc2 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Linus Walleij <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove apf27 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Philippe Reynes <[email protected]> Cc: Eric Jarrige <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove ts4600 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Sebastien Bourdelin <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2021-04-10arm: Remove sc_sps_1 boardTom Rini
This board has not been converted to CONFIG_DM_MMC by the deadline. Remove it. Cc: Marek Vasut <[email protected]> Signed-off-by: Tom Rini <[email protected]>