arm: exynos: Enable TRNG for E850-96 board
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 1 replyIn review
- v25 patches 4 repliesSuperseded
- v15 patches 2 repliesSuperseded
Changes in v3 from the cover letter
- Fixed applying the defconfig changes (patch 5/5)
- Rebased on top of the most recent U-Boot/master
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | board: samsung: e850-96: Add default partitionsboard/ | +26 | 0 replies | |
| 2/5 | board: samsung: e850-96: Load LDFW firmware on board initboard/ board/ board/ +1 more | +149 | 0 replies | |
| 3/5 | clk: exynos: Add SSS clocks for Exynos850drivers/ | +10 | 0 replies | |
| 4/5 | rng: Add Exynos TRNG driverdrivers/ drivers/ drivers/ | +305 | 0 replies | |
| 5/5 | arm: exynos: Enable TRNG on E850-96 boardarch/ arch/ configs/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/5] arm: exynos: Enable TRNG for E850-96 board
This series enables True Random Number Generator (TRNG) for E850-96 board. Here is a short breakdown of features implemented in this series:
1. Load LDFW (Loadable Firmware) on E850-96 board. It's needed to make TRNG SMC commands functional. To do so, add the default eMMC partition table and implement reading and applying LDFW in board_init().
2. Add Exynos TRNG driver
3. Enable Exynos TRNG driver on E850-96 board. It requires SSS clocks to be enabled, so add those clocks as well.
With this series it's possible to generate random numbers in U-Boot (e.g. using 'rng' command). The main reason for RNG enablement on E850-96 board -- it's needed for EFI_RNG_PROTOCOL and kaslr, so it's one of the requirements to enable EFI boot support on E850-96 board, which in turn is needed (among other things) for EBBR spec and SystemReady IR certification. With this series it's also possible to use TRNG in Linux kernel (which was recently added, see [1] for details), as Linux kernel Exynos TRNG driver also relies on LDFW firmware to be loaded in the bootloader.
Changes in v3:
- Fixed applying the defconfig changes (patch 5/5)
- Rebased on top of the most recent U-Boot/master
Changes in v2:
- Addressed comments for [PATCH 4/5] rng: Add Exynos TRNG driver
Sam Protsenko (5):
board: samsung: e850-96: Add default partitions
board: samsung: e850-96: Load LDFW firmware on board init
clk: exynos: Add SSS clocks for Exynos850
rng: Add Exynos TRNG driver
arm: exynos: Enable TRNG on E850-96 board
arch/arm/dts/exynos850-e850-96-u-boot.dtsi | 11 + arch/arm/mach-exynos/Kconfig | 2 + board/samsung/e850-96/Makefile | 4 +- board/samsung/e850-96/e850-96.c | 6 +- board/samsung/e850-96/e850-96.env | 26 ++ board/samsung/e850-96/fw.c | 131 ++++++++++ board/samsung/e850-96/fw.h | 12 + configs/e850-96_defconfig | 1 + drivers/clk/exynos/clk-exynos850.c | 10 + drivers/rng/Kconfig | 13 + drivers/rng/Makefile | 1 + drivers/rng/exynos-trng.c | 291 +++++++++++++++++++++ 12 files changed, 504 insertions(+), 4 deletions(-) create mode 100644 board/samsung/e850-96/e850-96.env create mode 100644 board/samsung/e850-96/fw.c create mode 100644 board/samsung/e850-96/fw.h create mode 100644 drivers/rng/exynos-trng.c
Signature · 1 line
2.39.2