u-boot/arch/arm/mach-rockchip
Heiko Stuebner 03f98b75e4 rockchip: misc: read the correct number of bytes from the efuse
Originally the cpuid var the value gets read into was defined as
    u8 cpuid[RK3399_CPUID_LEN];
hence the sizeof(cpuid) would return the correct the correct number
of array elements.

With the move to a separate function cpuid becomes a pointer and
sizeof(cpuid) hence returns the pointer size - 8 in the arm64 case.

We do have the actual id length available as function param so use
it for actual amount of bytes to read.

Fixes: 0482538499 ("rockchip: rk3399: derive ethaddr from cpuid")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
2019-09-28 22:26:32 +08:00
..
rk322x rockchip: rk322x: move SoC setting into arch_cpu_init() 2019-07-29 10:26:41 +08:00
rk3036 rockchip: rk3036: move dram_init() into soc file 2019-07-29 10:26:41 +08:00
rk3128 rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
rk3188 rockchip: rk3188: Move SoC one time setting into arch_cpu_init() 2019-07-29 10:26:41 +08:00
rk3288 rockchip: rk3288: vyasa: Drop ROCKCHIP_BROM_HELPER selection 2019-09-19 09:35:31 +08:00
rk3328 rockchip: Kconfig: enable TPL support for rk3328 2019-08-05 21:16:52 +08:00
rk3368 rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
rk3399 rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
rv1108 rockchip: rv1108: Migrate to use common board file 2019-07-29 10:27:48 +08:00
board.c rockchip: rk3399: derive ethaddr from cpuid 2019-08-23 18:15:31 +08:00
boot_mode.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
bootrom.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
fit_spl_optee.its rockchip: fit_spl_optee: rockchip: fix warning unit_address_vs_reg 2019-07-29 10:25:27 +08:00
Kconfig rockchip: Kconfig: enable TPL support for rk3328 2019-08-05 21:16:52 +08:00
make_fit_atf.py rockchip: make_fit_atf.py: Eliminate pyelftools dependency 2019-07-20 23:59:44 +08:00
Makefile rockchip: clean makefile for misc.c 2019-09-11 16:16:12 +08:00
misc.c rockchip: misc: read the correct number of bytes from the efuse 2019-09-28 22:26:32 +08:00
rk3036-board-spl.c rockchip: rk3036: use ARM arch timer instead of rk_timer 2019-07-20 23:59:44 +08:00
sdram_common.c rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
spl-boot-order.c rockchip: spi-boot-order: Trival fix to newline missing 2019-09-19 09:35:31 +08:00
spl.c rockchip: add common spl board file 2019-07-29 10:25:27 +08:00
tpl.c rockchip: TPL banner should depend on CONFIG_TPL_BANNER_PRINT 2019-07-22 21:52:59 +08:00
u-boot-tpl-v8.lds rockchip: add u-boot-tpl-v8.lds 2019-05-08 17:34:12 +08:00
u-boot-tpl.lds rockchip: rk322x: add tpl support 2019-05-08 17:34:12 +08:00