MX28 & finding out boot mode
Chen Peter-B29397
B29397 at freescale.com
Thu Aug 30 05:40:05 EDT 2012
>
> Some customers want this to handle the recovery case differently than
> the standard case.
>
If you can't find method at datasheet (like reading some registers), a workaround
is according to usb register, usually, usbcmd.rs (pull-up DP) stands for usb is using
or not.
1. Make sure usbcmd.rs = 0 is the default value.
2. Before the usb code is running, the usbcmd.rs should be 0 at normal mode
So, get a flag before usb code is running
if (usbcmd.rs == 0)
usb_recover_mode = 0;
else
usb_recover_mode = 1;
Peter
> Thanks for the help!
>
> Wolfram
>
> --
> Pengutronix e.K. | Wolfram Sang
> |
> Industrial Linux Solutions | http://www.pengutronix.de/
> |
More information about the linux-arm-kernel
mailing list