diff options
author | Tom Rini <trini@ti.com> | 2013-04-11 14:31:50 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-04-11 14:31:50 -0400 |
commit | 980464a4fc6d69c080ea02115f05694efe313cd8 (patch) | |
tree | 537e97f4cbe77ed65b56ffeafe1d50031c1771cb /arch/powerpc | |
parent | fac150e83f403933e9ffc9d01f858c4a6313874e (diff) | |
parent | dda48e8efff878e51e986befd9c6c3780b4757a7 (diff) | |
download | u-boot-imx-980464a4fc6d69c080ea02115f05694efe313cd8.zip u-boot-imx-980464a4fc6d69c080ea02115f05694efe313cd8.tar.gz u-boot-imx-980464a4fc6d69c080ea02115f05694efe313cd8.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/fdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/fdt.c b/arch/powerpc/cpu/mpc8xxx/fdt.c index 2847094..2db9045 100644 --- a/arch/powerpc/cpu/mpc8xxx/fdt.c +++ b/arch/powerpc/cpu/mpc8xxx/fdt.c @@ -167,6 +167,11 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd) } } + if (mode_idx < 0 || phy_idx < 0) { + puts("ERROR: wrong usb mode/phy defined!!\n"); + return; + } + dr_mode_type = modes[mode_idx]; dr_phy_type = phys[phy_idx]; |