]> git.dujemihanovic.xyz Git - u-boot.git/commit
mxs: Implement common function to setup VDDx
authorMarek Vasut <marex@denx.de>
Fri, 30 Nov 2012 05:22:12 +0000 (05:22 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Dec 2012 08:26:54 +0000 (09:26 +0100)
commit77cb33bd25c97be3f5a878831cf743778e2e7dac
tree1b1c5ad24ec5102878ae029c3d4460cad327349d
parent58bcadd9d08f680739d29e0f5f374f721023b8ca
mxs: Implement common function to setup VDDx

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 <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c