mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
board: ti: am335x: Do not call disabled PMIC functions
When PMIC drivers are disabled their undefined functions cannot be called. Signed-off-by: Maarten Brock <maarten.brock@sttls.nl>
This commit is contained in:
@@ -283,7 +283,7 @@ const struct dpll_params *get_dpll_ddr_params(void)
|
|||||||
|
|
||||||
static u8 bone_not_connected_to_ac_power(void)
|
static u8 bone_not_connected_to_ac_power(void)
|
||||||
{
|
{
|
||||||
if (board_is_bone()) {
|
if (IS_ENABLED(CONFIG_PMIC_TPS65217) && board_is_bone()) {
|
||||||
uchar pmic_status_reg;
|
uchar pmic_status_reg;
|
||||||
if (tps65217_reg_read(TPS65217_STATUS,
|
if (tps65217_reg_read(TPS65217_STATUS,
|
||||||
&pmic_status_reg))
|
&pmic_status_reg))
|
||||||
@@ -332,6 +332,9 @@ static void scale_vcores_bone(int freq)
|
|||||||
{
|
{
|
||||||
int usb_cur_lim, mpu_vdd;
|
int usb_cur_lim, mpu_vdd;
|
||||||
|
|
||||||
|
if (!IS_ENABLED(CONFIG_PMIC_TPS65217))
|
||||||
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only perform PMIC configurations if board rev > A1
|
* Only perform PMIC configurations if board rev > A1
|
||||||
* on Beaglebone White
|
* on Beaglebone White
|
||||||
@@ -426,6 +429,9 @@ void scale_vcores_generic(int freq)
|
|||||||
{
|
{
|
||||||
int sil_rev, mpu_vdd;
|
int sil_rev, mpu_vdd;
|
||||||
|
|
||||||
|
if (!IS_ENABLED(CONFIG_DM_PMIC_TPS65910))
|
||||||
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The GP EVM, IDK and EVM SK use a TPS65910 PMIC. For all
|
* The GP EVM, IDK and EVM SK use a TPS65910 PMIC. For all
|
||||||
* MPU frequencies we support we use a CORE voltage of
|
* MPU frequencies we support we use a CORE voltage of
|
||||||
|
|||||||
Reference in New Issue
Block a user