From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Tue, 04 Dec 2012 09:28:18 +0100 Subject: [U-Boot] [PATCH 1/2] mxs: Implement common function to setup VDDx In-Reply-To: <1354288933-18926-1-git-send-email-marex@denx.de> References: <1354288933-18926-1-git-send-email-marex@denx.de> Message-ID: <50BDB422.8070808@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 30/11/2012 16:22, Marek Vasut wrote: > Implement common function to setup the VDDIO, VDDD and VDDA voltage. > Right now, there are two almost identical functions to setup VDDIO > and VDDD, which is prone to breakage. Pull out the differences into > constant structure and pass them as an argument to the common function. > > Moreover, the function has almost identical loops for setting higher > and lower VDDx voltage. Merge these two loops. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > Cc: Fabio Estevam > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== 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 =====================================================================