Commit 4b5cfdea authored by Ye Li's avatar Ye Li Committed by Jason Liu
Browse files

MLK-16175-2 imx8qm/qxp: Remove USB OTG power domain on function



Since the DM framework and ehci-mx6 driver will enable the power domains
for USB controller and PHY via power domain driver. No need to call
the power on function in board level.
Signed-off-by: default avatarYe Li <ye.li@nxp.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
parent 3c59c8ea
......@@ -225,27 +225,6 @@ int imx8qxp_wake_secondary_cores(void)
return 0;
}
int init_otg_power(void)
{
struct power_domain pd;
int ret = 0;
/* Power on usb */
if (!power_domain_lookup_name("conn_usb0", &pd)) {
ret = power_domain_on(&pd);
if (ret)
printf("conn_usb0 Power up failed! (error = %d)\n", ret);
}
if (!power_domain_lookup_name("conn_usb0_phy", &pd)) {
ret = power_domain_on(&pd);
if (ret)
printf("conn_usb0_phy Power up failed! (error = %d)\n", ret);
}
return ret;
}
#define FUSE_MAC0_WORD0 452
#define FUSE_MAC0_WORD1 453
#define FUSE_MAC1_WORD0 454
......
......@@ -483,14 +483,6 @@ void pci_init_board(void)
}
#endif
#ifdef CONFIG_USB_EHCI_MX6
static void setup_otg(void)
{
/* Enable usb power */
init_otg_power();
}
#endif
int board_init(void)
{
#ifdef CONFIG_MXC_GPIO
......@@ -506,10 +498,6 @@ int board_init(void)
#ifdef CONFIG_SCSI_AHCI_PLAT
sata_init();
#endif
#endif
#ifdef CONFIG_USB_EHCI_MX6
setup_otg();
#endif
return 0;
}
......
......@@ -496,14 +496,6 @@ void pci_init_board(void)
#endif
#ifdef CONFIG_USB_EHCI_MX6
static void setup_otg(void)
{
/* Enable usb power */
init_otg_power();
}
#endif
int board_init(void)
{
#ifdef CONFIG_MXC_GPIO
......@@ -517,11 +509,6 @@ int board_init(void)
#ifdef CONFIG_NAND_BOOT
imx8qm_gpmi_nand_initialize();
#endif
#ifdef CONFIG_USB_EHCI_MX6
setup_otg();
#endif
return 0;
}
......
......@@ -418,8 +418,6 @@ static void setup_otg(void)
{
/* power control by IO expander 2 IO02*/
/* Enable usb power */
init_otg_power();
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment