[U-Boot] [PATCH v6 4/7] jz4740 nand driver
Xiangfu Liu
xiangfu at openmobilefree.net
Tue Mar 22 09:11:03 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/08/2011 07:44 AM, Scott Wood wrote:
>> +#if defined(CONFIG_QI_LB60)
>> > +#define KEY_U_OUT (32 * 2 + 16)
>> > +#define KEY_U_IN (32 * 3 + 19)
>> > + __gpio_as_input(KEY_U_IN);
>> > + __gpio_enable_pull(KEY_U_IN);
>> > + __gpio_as_output(KEY_U_OUT);
>> > + __gpio_clear_pin(KEY_U_OUT);
>> > +
>> > + if (__gpio_get_pin(KEY_U_IN) == 0)
>> > + usb_boot();
>> > +#endif
>> > +#endif
> This stuff does not belong in the NAND driver; it belongs under your board
> or cpu directory.
>
I have tried to move those 'usb_boot' to board files. the only problem is
I have to run this 'usb_boot' very early. after CPU load the real u-boot to memory
the usb_boot will not working. I will try to found more info about this.
then explain more in next email.
thanks Scott Wood for your feedback.
I will keeping working. until the code is good enough :)
- --
Best Regards
Xiangfu Liu
http://www.openmobilefree.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2IWZcACgkQRRAEFRxkgLTVvwCfaw7jKe7ZVzycMS+gN2lFdV2t
mEYAoIFahfXxtoiXs565cuN4vAuDdlIR
=tdrU
-----END PGP SIGNATURE-----
More information about the U-Boot
mailing list