
Hi,
-----Original Message----- From: U-Boot [mailto:u-boot-bounces@lists.denx.de] On Behalf Of Jun Nie Sent: Monday, January 29, 2018 12:59 PM To: André Przywara andre.przywara@arm.com Cc: U-Boot Mailing List u-boot@lists.denx.de; Icenowy Zheng icenowy@aosc.xyz; 370719159@qq.com Subject: Re: [U-Boot] [PATCH] sunxi: support fuse cmd to read/write fuse
[snip]
+int fuse_prog(u32 bank, u32 word, u32 val) +{
I would feel better if we have the write access protected by a separate Kconfig symbol. So without this being defined either nothing happens or the user gets a warning.
Good idea.
Yes, fuse programming should be disabled by default and should be enabled only by user who really knows what he is doing.
Also, it will be good to get a confirmation from the user whether user really wants to program the fuse.
Regards Calvin