u-boot-brain/arch/arm/cpu/arm926ejs/mxs
Michael Heimpold a6b1e25fc6 ARM: mxs: fix VDDD brownout setting
At the moment, the desired brownout is at 1.0V. However,
this setting cannot be realized by hardware since we have
only 3 bits to represent the voltage difference from the
target value.

Target value is 1500 mV, brownout target is 1000 mV,
voltage steps are 25 mV.

Register content calculation:
  (1500 [mV] - 1000 [mV]) / 25 [mV] = 20 (decimal) = 0x14

  Register takes only 3 bits, that is 0x4.

But 0x4 * 25 [mV] = 100 [mV], that means that actual
brownout level is 1500 [mV] - 100 [mV] = 1.4 V.

Minimum possible BO level is
  1500 [mV] - 0x7 * 25 [mV] = 1315 [mV].

So lets use this value as desired BO value (which is
also the same as FSL bootlets use).

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
2015-12-01 16:05:24 +01:00
..
clock.c mxs: add parameter base_addr for mxs_set_lcdclk 2015-11-12 17:38:08 +01:00
iomux.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile arm: mxs: Fix mkimage invocation 2015-09-02 15:26:11 +02:00
mxs_init.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxs.c imx: mxs: reimplement get_cpu_rev 2015-09-02 15:29:14 +02:00
mxsimage-signed.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
mxsimage.mx23.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
mxsimage.mx28.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
spl_boot.c ARM: mxs: Get boot mode from OCRAM 2015-04-22 14:24:09 +02:00
spl_lradc_init.c arm: mxs: Add debug outputs and comments to mxs SPL source files 2015-02-10 12:48:49 +01:00
spl_mem_init.c arm: mxs: Add debug outputs and comments to mxs SPL source files 2015-02-10 12:48:49 +01:00
spl_power_init.c ARM: mxs: fix VDDD brownout setting 2015-12-01 16:05:24 +01:00
start.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
timer.c ARM: MXS: fix Uninitialized variable error 2014-11-10 16:25:27 -05:00
u-boot-imx23.bd kbuild,mxs: use short logs for MXS images 2014-03-12 17:04:37 -04:00
u-boot-imx28.bd kbuild,mxs: use short logs for MXS images 2014-03-12 17:04:37 -04:00
u-boot-spl.lds arm: Add missing .vectors section to linker scripts 2014-08-30 07:46:41 -04:00