mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-02 17:13:28 +08:00
arm: imx: Enable always-on regulators using board specific workaround on DHCOM SoM
U-Boot is currently unable to automatically enable regulators which contain DT property regulator-always-on or regulator-boot-on. There is an ongoing work to add this functionality to regulator core code, but until the proper solution lands, add this awful workaround code to force these regulators on. This is specifically needed to assure the VIO regulator used to supply ethernet magnetics is enabled. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
541d21cf08
commit
c0435ed04b
@ -30,6 +30,7 @@
|
||||
#include <fuse.h>
|
||||
#include <i2c_eeprom.h>
|
||||
#include <mmc.h>
|
||||
#include <power/regulator.h>
|
||||
#include <usb.h>
|
||||
#include <linux/delay.h>
|
||||
#include <usb/ehci-ci.h>
|
||||
@ -127,6 +128,8 @@ int board_init(void)
|
||||
|
||||
setup_fec_clock();
|
||||
|
||||
regulators_enable_boot_on(_DEBUG);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <malloc.h>
|
||||
#include <net.h>
|
||||
#include <miiphy.h>
|
||||
#include <power/regulator.h>
|
||||
|
||||
#include "lpddr4_timing.h"
|
||||
#include "../common/dh_common.h"
|
||||
@ -111,6 +112,8 @@ int dh_setup_mac_address(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
regulators_enable_boot_on(_DEBUG);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user