summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-04-11 14:31:50 -0400
committerTom Rini <trini@ti.com>2013-04-11 14:31:50 -0400
commit980464a4fc6d69c080ea02115f05694efe313cd8 (patch)
tree537e97f4cbe77ed65b56ffeafe1d50031c1771cb /arch
parentfac150e83f403933e9ffc9d01f858c4a6313874e (diff)
parentdda48e8efff878e51e986befd9c6c3780b4757a7 (diff)
downloadblackbird-obmc-uboot-980464a4fc6d69c080ea02115f05694efe313cd8.tar.gz
blackbird-obmc-uboot-980464a4fc6d69c080ea02115f05694efe313cd8.zip
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/fdt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/fdt.c b/arch/powerpc/cpu/mpc8xxx/fdt.c
index 284709428d..2db90455f6 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];
OpenPOWER on IntegriCloud