mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-29 17:51:26 +02:00
board: mx6sabresd: Remove non-DM code
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
This commit is contained in:
parent
4926c68b0e
commit
9da2dae03e
@ -563,63 +563,13 @@ int board_eth_init(bd_t *bis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_USB_EHCI_MX6
|
#ifdef CONFIG_USB_EHCI_MX6
|
||||||
#define USB_OTHERREGS_OFFSET 0x800
|
|
||||||
#define UCTRL_PWR_POL (1 << 9)
|
|
||||||
|
|
||||||
static iomux_v3_cfg_t const usb_otg_pads[] = {
|
|
||||||
IOMUX_PADS(PAD_EIM_D22__USB_OTG_PWR | MUX_PAD_CTRL(NO_PAD_CTRL)),
|
|
||||||
IOMUX_PADS(PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(NO_PAD_CTRL)),
|
|
||||||
};
|
|
||||||
|
|
||||||
static iomux_v3_cfg_t const usb_hc1_pads[] = {
|
|
||||||
IOMUX_PADS(PAD_ENET_TXD1__GPIO1_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL)),
|
|
||||||
};
|
|
||||||
|
|
||||||
static void setup_usb(void)
|
static void setup_usb(void)
|
||||||
{
|
{
|
||||||
SETUP_IOMUX_PADS(usb_otg_pads);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* set daisy chain for otg_pin_id on 6q.
|
* set daisy chain for otg_pin_id on 6q.
|
||||||
* for 6dl, this bit is reserved
|
* for 6dl, this bit is reserved
|
||||||
*/
|
*/
|
||||||
imx_iomux_set_gpr_register(1, 13, 1, 0);
|
imx_iomux_set_gpr_register(1, 13, 1, 0);
|
||||||
|
|
||||||
SETUP_IOMUX_PADS(usb_hc1_pads);
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_ehci_hcd_init(int port)
|
|
||||||
{
|
|
||||||
u32 *usbnc_usb_ctrl;
|
|
||||||
|
|
||||||
if (port > 1)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
usbnc_usb_ctrl = (u32 *)(USB_BASE_ADDR + USB_OTHERREGS_OFFSET +
|
|
||||||
port * 4);
|
|
||||||
|
|
||||||
setbits_le32(usbnc_usb_ctrl, UCTRL_PWR_POL);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int board_ehci_power(int port, int on)
|
|
||||||
{
|
|
||||||
switch (port) {
|
|
||||||
case 0:
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
if (on)
|
|
||||||
gpio_direction_output(IMX_GPIO_NR(1, 29), 1);
|
|
||||||
else
|
|
||||||
gpio_direction_output(IMX_GPIO_NR(1, 29), 0);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
printf("MXC USB port %d not yet supported\n", port);
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user