u-boot-brain/arch
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
..
arc board: axs10x switch serial port and Ethernet to driver model 2015-11-18 00:39:22 +03:00
arm ARM: mxs: fix VDDD brownout setting 2015-12-01 16:05:24 +01:00
avr32 avr32: Use the generic bitops headers 2015-11-05 10:52:31 -05:00
blackfin Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
m68k Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
microblaze microblaze: Fix C99/gnu99 compatiblity for inline functions 2015-11-19 13:09:41 +01:00
mips Merge branch 'master' of git://git.denx.de/u-boot-mips 2015-11-06 09:17:17 -05:00
nds32 nds32: Use the generic bitops headers 2015-11-05 10:52:21 -05:00
nios2 nios2: zap ioremap 2015-11-18 21:18:30 +08:00
openrisc openrisc: updating build tools naming convention 2015-11-12 18:13:20 -05:00
powerpc Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
sandbox dm: test: usb: sandbox: Add keyboard tests for sandbox 2015-11-19 20:27:52 -07:00
sh Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
sparc Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
x86 x86: qemu: Convert to use driver model keyboard 2015-11-19 20:13:42 -07:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig arm, powerpc: select SYS_GENERIC_BOARD 2015-10-24 13:50:38 -04:00