mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
sniper: Add build guards around MUSB support code
If MUSB support is disabled, these parts of the code will fail to build. Cc: Paul Kocialkowski <contact@paulk.fr> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
570c3dcfc1
commit
7d0559910f
@ -43,6 +43,7 @@ U_BOOT_DRVINFO(sniper_serial) = {
|
|||||||
.plat = &serial_omap_plat
|
.plat = &serial_omap_plat
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
|
||||||
static struct musb_hdrc_config musb_config = {
|
static struct musb_hdrc_config musb_config = {
|
||||||
.multipoint = 1,
|
.multipoint = 1,
|
||||||
.dyn_fifo = 1,
|
.dyn_fifo = 1,
|
||||||
@ -61,6 +62,7 @@ static struct musb_hdrc_platform_data musb_platform_data = {
|
|||||||
.platform_ops = &omap2430_ops,
|
.platform_ops = &omap2430_ops,
|
||||||
.board_data = &musb_board_data,
|
.board_data = &musb_board_data,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
void set_muxconf_regs(void)
|
void set_muxconf_regs(void)
|
||||||
{
|
{
|
||||||
@ -147,8 +149,9 @@ int misc_init_r(void)
|
|||||||
omap_die_id_serial();
|
omap_die_id_serial();
|
||||||
|
|
||||||
/* MUSB */
|
/* MUSB */
|
||||||
|
#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
|
||||||
musb_register(&musb_platform_data, &musb_board_data, (void *)MUSB_BASE);
|
musb_register(&musb_platform_data, &musb_board_data, (void *)MUSB_BASE);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user