u-boot/arch/arm/cpu/arm926ejs
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
..
armada100 arm: mvebu/armada100: dram.c: Remove CONFIG_SYS_BOARD_DRAM_INIT 2015-08-17 18:41:33 +02:00
lpc32xx lpc32xx: fix calculation of HCLK PLL output clock 2015-10-11 17:12:13 -04:00
mx25 imx: cpu: move common chip revision id's 2015-10-30 15:20:56 +01:00
mx27 imx: mx27 implement get_cpu_rev 2015-09-02 15:29:14 +02:00
mxs ARM: mxs: fix VDDD brownout setting 2015-12-01 16:05:24 +01:00
omap Move CONFIG_DISPLAY_CPUINFO to Makefile 2014-02-19 11:10:05 -05:00
orion5x edminiv2: switch to SPL 2015-02-25 07:59:50 +01:00
spear arm: spear: Add command to switch between 1-bit HW ECC and SW BCH4 2015-09-11 17:15:14 -04:00
cache.c arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD 2015-11-10 15:03:48 +01:00
cpu.c arm, arm926ejs: make thumb mode compileable 2015-01-19 12:49:26 +01:00
Makefile arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD 2015-11-10 15:03:48 +01:00
start.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00