mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 20:38:52 +09:00
![]() This adds a simple driver for reading the efuse block of the RK3399. It should be easy enough to add drivers for other devices (e.g. the RK3328, RK3368, etc.) by passing the device details via driver_data. Unlike the kernel driver (using the nvmem subsystem), we don't expose the efuse as multiple named cells, but rather as a linear memory that can be read using misc_read(...). The primary use case (as of today) is the generation of a 'serial#' (and a 'cpuid#') environment variable for the RK3399-Q7 (Puma) system-on-module. Note that this adds a debug-only (i.e. only if DEBUG is defined) command 'rk3399_dump_efuses' that dumps the efuse block's content. N.B.: The name 'rk3399_dump_efuses' was intentionally chosen to include a SoC-name (together with a comment in the function) to remind whoever adds support for additional SoCs that this function currently makes assumptions regarding the size of the fuse-box based on the RK3399. The hope is that the function is adjusted to reflect any changes resulting from generalising the driver for multiple SoCs and is then renamed. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
ali512x.c | ||
altera_sysid.c | ||
cbmem_console.c | ||
cros_ec_i2c.c | ||
cros_ec_lpc.c | ||
cros_ec_sandbox.c | ||
cros_ec_spi.c | ||
cros_ec.c | ||
ds4510.c | ||
ds4510.h | ||
fsl_devdis.c | ||
fsl_ifc.c | ||
fsl_iim.c | ||
fsl_sec_mon.c | ||
gpio_led.c | ||
i2c_eeprom_emul.c | ||
i2c_eeprom.c | ||
Kconfig | ||
Makefile | ||
mc9sdz60.c | ||
misc-uclass.c | ||
mxc_ocotp.c | ||
mxs_ocotp.c | ||
ns87308.c | ||
nuvoton_nct6102d.c | ||
pca9551_led.c | ||
pwrseq-uclass.c | ||
qfw.c | ||
rockchip-efuse.c | ||
smsc_lpc47m.c | ||
smsc_sio1007.c | ||
spltest_sandbox.c | ||
status_led.c | ||
swap_case.c | ||
syscon_sandbox.c | ||
tegra186_bpmp.c | ||
tegra_car.c | ||
twl4030_led.c | ||
winbond_w83627.c |