[PATCH] ARM: atmel: at91sam9n12ek: correct udc device name

Bo Shen voice.shen at atmel.com
Wed Feb 4 02:04:37 PST 2015


The created device name for atmel udc is at91_udc while not
at91_udc0.

Signed-off-by: Bo Shen <voice.shen at atmel.com>
---

 arch/arm/boards/at91sam9n12ek/env/bin/init_board | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/at91sam9n12ek/env/bin/init_board b/arch/arm/boards/at91sam9n12ek/env/bin/init_board
index 6b44044..4931342 100644
--- a/arch/arm/boards/at91sam9n12ek/env/bin/init_board
+++ b/arch/arm/boards/at91sam9n12ek/env/bin/init_board
@@ -12,7 +12,7 @@ button_wait=5
 
 dfu_config="/dev/nand0.barebox.bb(barebox)sr,/dev/nand0.kernel.bb(kernel)r,/dev/nand0.rootfs.bb(rootfs)r"
 
-if [ $at91_udc0.vbus != 1 ]
+if [ $at91_udc.vbus != 1 ]
 then
 	echo "No USB Device cable plugged, normal boot"
 	exit
@@ -30,7 +30,7 @@ fi
 echo "${button_name} pressed detected wait ${button_wait}s"
 timeout -s -a ${button_wait}
 
-if [ $at91_udc0.vbus != 1 ]
+if [ $at91_udc.vbus != 1 ]
 then
 	echo "No USB Device cable plugged, normal boot"
 	exit
-- 
2.3.0.rc0




More information about the barebox mailing list