mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
tegra: add ULPI on USB2 funcmux entry
This is needed as a prerequisite for Tegra USB ULPI support within U-Boot. Signed-off-by: Lucas Stach <dev@lynxeye.de> Acked-by: Stephen Warren <swarren@wwwdotorg.org> CC: Stephen Warren <swarren@wwwdotorg.org> CC: Tom Warren <twarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
1e2d785975
commit
f97daaa231
2 changed files with 16 additions and 2 deletions
|
@ -209,9 +209,20 @@ int funcmux_select(enum periph_id id, int config)
|
||||||
pinmux_set_func(grp[i], PMUX_FUNC_KBC);
|
pinmux_set_func(grp[i], PMUX_FUNC_KBC);
|
||||||
pinmux_set_pullupdown(grp[i], PMUX_PULL_UP);
|
pinmux_set_pullupdown(grp[i], PMUX_PULL_UP);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PERIPH_ID_USB2:
|
||||||
|
if (config == FUNCMUX_USB2_ULPI) {
|
||||||
|
pinmux_set_func(PINGRP_UAA, PMUX_FUNC_ULPI);
|
||||||
|
pinmux_set_func(PINGRP_UAB, PMUX_FUNC_ULPI);
|
||||||
|
pinmux_set_func(PINGRP_UDA, PMUX_FUNC_ULPI);
|
||||||
|
|
||||||
|
pinmux_tristate_disable(PINGRP_UAA);
|
||||||
|
pinmux_tristate_disable(PINGRP_UAB);
|
||||||
|
pinmux_tristate_disable(PINGRP_UDA);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
debug("%s: invalid periph_id %d", __func__, id);
|
debug("%s: invalid periph_id %d", __func__, id);
|
||||||
|
|
|
@ -51,6 +51,9 @@ enum {
|
||||||
FUNCMUX_SDMMC4_ATC_ATD_8BIT = 0,
|
FUNCMUX_SDMMC4_ATC_ATD_8BIT = 0,
|
||||||
FUNCMUX_SDMMC4_ATB_GMA_4_BIT,
|
FUNCMUX_SDMMC4_ATB_GMA_4_BIT,
|
||||||
FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT,
|
FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT,
|
||||||
|
|
||||||
|
/* USB configs */
|
||||||
|
FUNCMUX_USB2_ULPI = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue