]> git.baikalelectronics.ru Git - uboot.git/commit
board: ti: am335x: Fix scale_vcore for beaglebones
authorLokesh Vutla <lokeshvutla@ti.com>
Sat, 10 Jun 2017 07:52:56 +0000 (13:22 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:48 +0000 (08:38 -0400)
commitfef247b1628b5a873169b6d31a3239ed9b7d6524
tree6020e3ad4ebfc0a3f9a6be0258204e4c5fb46dea
parentb559eae7e69599fddca8db28a2523448627faecc
board: ti: am335x: Fix scale_vcore for beaglebones

commit 3f2b38fa4f ("board: am335x: Introduce scale_vcores")
updated voltages of each board based on efuse. It updated
beagle bone specific voltages under the condition board_is_bone().
But this is true only for BeagleBoneWhite. Due to which voltages
are not configured for BBB, BBW as wrong device is being probed.

So create a common function board_is_beaglebonex() which includes
am335x based beagle family. Use this for updating voltages.

Also remove extra if condition for selecting voltages which is
done later using a switch case and match usb current limit as
before the commit 3f2b38fa4f.

Fixes: 3f2b38fa4f ("board: am335x: Introduce scale_vcores")
Reported-by: Emmanuel Vadot <manu@bidouilliste.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/am335x/board.c
board/ti/am335x/board.h