Skip to content

Commit

Permalink
tegra: add ULPI on USB2 funcmux entry
Browse files Browse the repository at this point in the history
This is needed as a prerequisite for Tegra USB ULPI support
within U-Boot.

Signed-off-by: Lucas Stach <[email protected]>
Acked-by: Stephen Warren <[email protected]>
CC: Stephen Warren <[email protected]>
CC: Tom Warren <[email protected]>
Signed-off-by: Tom Warren <[email protected]>
  • Loading branch information
lynxeye-dev authored and Albert ARIBAUD (U-Boot) committed Jul 9, 2012
1 parent 1e2d785 commit f97daaa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion arch/arm/cpu/armv7/tegra2/funcmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,20 @@ int funcmux_select(enum periph_id id, int config)
pinmux_set_func(grp[i], PMUX_FUNC_KBC);
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:
debug("%s: invalid periph_id %d", __func__, id);
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/include/asm/arch-tegra2/funcmux.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ enum {
FUNCMUX_SDMMC4_ATC_ATD_8BIT = 0,
FUNCMUX_SDMMC4_ATB_GMA_4_BIT,
FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT,

/* USB configs */
FUNCMUX_USB2_ULPI = 0,
};

/**
Expand Down

0 comments on commit f97daaa

Please sign in to comment.