Enable both eFUSE driver and matching 'misc' command to read out
the fuses from U-Boot command line on Renesas R-Car Gen4 SoCs.

Example usage, read out R-Car S4 OTP fuses 0x144 and 0x148 which
contain UFS tuning:

"
=> misc list
Device               Index     Driver
-------------------------------------
fuse@e6078800            0 rcar_efuse

=> misc read fuse@e6078800 0x144 0x56000000 8

=> md 0x56000000 2
56000000: ........ ........
"

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Bhupesh Sharma <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
---
 configs/renesas_rcar4.config | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/renesas_rcar4.config b/configs/renesas_rcar4.config
index 6ebd93ede9f..675dfc95a81 100644
--- a/configs/renesas_rcar4.config
+++ b/configs/renesas_rcar4.config
@@ -4,11 +4,13 @@
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_ARCH_CPU_INIT=y
 CONFIG_BOOTARGS="root=/dev/nfs rw nfsroot=192.168.0.1:/export/rfs 
ip=192.168.0.20"
+CONFIG_CMD_MISC=y
 CONFIG_CMD_MMC=y
 CONFIG_DM_ETH_PHY=y
 CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_MMC_IO_VOLTAGE=y
 CONFIG_MMC_UHS_SUPPORT=y
+CONFIG_RCAR_EFUSE=y
 CONFIG_RENESAS_SDHI=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SYS_I2C_RCAR_I2C=y
-- 
2.51.0

Reply via email to