mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-20 06:01:26 +02:00
board: ti: j721e: evm: Drop board check for ESM
When config is enabled, the esm dt probe makes sense. Simplify by dropping board specific checks. Signed-off-by: Nishanth Menon <nm@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
This commit is contained in:
parent
4abe8c9f08
commit
d672e15aa8
@ -522,10 +522,8 @@ err_free_gpio:
|
|||||||
|
|
||||||
void spl_board_init(void)
|
void spl_board_init(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_ESM_K3) || defined(CONFIG_ESM_PMIC)
|
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
int ret;
|
int ret;
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((IS_ENABLED(CONFIG_TARGET_J721E_A72_EVM) ||
|
if ((IS_ENABLED(CONFIG_TARGET_J721E_A72_EVM) ||
|
||||||
IS_ENABLED(CONFIG_TARGET_J7200_A72_EVM)) &&
|
IS_ENABLED(CONFIG_TARGET_J7200_A72_EVM)) &&
|
||||||
@ -534,24 +532,20 @@ void spl_board_init(void)
|
|||||||
probe_daughtercards();
|
probe_daughtercards();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ESM_K3
|
if (IS_ENABLED(CONFIG_ESM_K3)) {
|
||||||
if (board_ti_k3_is("J721EX-PM2-SOM")) {
|
|
||||||
ret = uclass_get_device_by_driver(UCLASS_MISC,
|
ret = uclass_get_device_by_driver(UCLASS_MISC,
|
||||||
DM_DRIVER_GET(k3_esm), &dev);
|
DM_DRIVER_GET(k3_esm), &dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
printf("ESM init failed: %d\n", ret);
|
printf("ESM init failed: %d\n", ret);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_ESM_PMIC
|
if (IS_ENABLED(CONFIG_ESM_PMIC)) {
|
||||||
if (board_ti_k3_is("J721EX-PM2-SOM")) {
|
|
||||||
ret = uclass_get_device_by_driver(UCLASS_MISC,
|
ret = uclass_get_device_by_driver(UCLASS_MISC,
|
||||||
DM_DRIVER_GET(pmic_esm),
|
DM_DRIVER_GET(pmic_esm),
|
||||||
&dev);
|
&dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
printf("ESM PMIC init failed: %d\n", ret);
|
printf("ESM PMIC init failed: %d\n", ret);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if ((IS_ENABLED(CONFIG_TARGET_J7200_A72_EVM) || IS_ENABLED(CONFIG_TARGET_J721E_A72_EVM)) &&
|
if ((IS_ENABLED(CONFIG_TARGET_J7200_A72_EVM) || IS_ENABLED(CONFIG_TARGET_J721E_A72_EVM)) &&
|
||||||
IS_ENABLED(CONFIG_HBMC_AM654)) {
|
IS_ENABLED(CONFIG_HBMC_AM654)) {
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user