From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 03 Dec 2012 12:41:26 +0100 Subject: [U-Boot] [PATCH 3/5] Add fuse API and commands In-Reply-To: <1515048575.113244.1354533950233.JavaMail.root@advansee.com> References: <1038235395.2398352.1344948755663.JavaMail.root@advansee.com> <50BC6ADA.7030606@denx.de> <1515048575.113244.1354533950233.JavaMail.root@advansee.com> Message-ID: <50BC8FE6.2010008@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/12/2012 12:25, Beno?t Th?baudeau wrote: > Hi Stefano, > > On Monday, December 3, 2012 10:03:22 AM, Stefano Babic wrote: >> I am thinking about if we need some kind of protection to avoid to >> destroy very easy the SOC. Running a fuse command can be much more >> dangerous as scrubbing NAND or erasing flash. >> >> What about to add at least a "-y" option when we write the fuses, in >> the >> same way we have for the "nand scrub command" ? This does not forbid >> to >> use the command in scripts, but it can maybe avoid to destroy the SOC >> when the command is wrong tipped on the console. >> >> What do you think ? > > That makes sense. There could be the same kind of warning confirmation > defaulting to no that would repeat which fuse is about to be programmed. > > As to the value passed for fuse row programming or overriding, do you think that > it's fine to force it to be hex, or that choice should be given with '0x'? I > don't really like implicit base selection, but it's clear in the help message, > and it is handy for writing MAC addresses without repeating the '0x' for each > byte. U-boot uses as default hex as base for numbers, not decimals, and if you use hex as default you are consistent with the rest of code. Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================