My mistake!
We use EIM_D22 pin as ECSPI4_MISO in our board,which is not fit the sabresd board. So I mask USB code, which cause this problem.
Error port:
static iomux_v3_cfg_t const usb_otg_pads[] = {
/* Disable usb power control
*/
// MX6_PAD_EIM_D22__USB_OTG_PWR | MUX_PAD_CTRL(NO_PAD_CTRL),
// MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL),
};
static iomux_v3_cfg_t const usb_hc1_pads[] = {
/* Disable usb power control
*/
// MX6_PAD_ENET_TXD1__GPIO1_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
static void setup_usb(void)
{
/* Disable usb power control
*/
// imx_iomux_v3_setup_multiple_pads(usb_otg_pads,
// ARRAY_SIZE(usb_otg_pads));
//
// /*
// * set daisy chain for otg_pin_id on 6q.
// * for 6dl, this bit is reserved
// */
// imx_iomux_set_gpr_register(1, 13, 1, 0);
//
// imx_iomux_v3_setup_multiple_pads(usb_hc1_pads,
// ARRAY_SIZE(usb_hc1_pads));
}
Correct port:
static iomux_v3_cfg_t const usb_otg_pads[] = {
/* Disable usb power control
*/
// MX6_PAD_EIM_D22__USB_OTG_PWR | MUX_PAD_CTRL(NO_PAD_CTRL),
MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL),
};
static iomux_v3_cfg_t const usb_hc1_pads[] = {
MX6_PAD_ENET_TXD1__GPIO1_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
static void setup_usb(void)
{
imx_iomux_v3_setup_multiple_pads(usb_otg_pads,
ARRAY_SIZE(usb_otg_pads));
/*
* set daisy chain for otg_pin_id on 6q.
* for 6dl, this bit is reserved
*/
imx_iomux_set_gpr_register(1, 13, 1, 0);
imx_iomux_v3_setup_multiple_pads(usb_hc1_pads,
ARRAY_SIZE(usb_hc1_pads));
}