Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-04-26 Thread Xiangfu Liu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/23/2011 12:10 AM, Scott Wood wrote: 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

Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-04-26 Thread Xiangfu Liu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/26/2011 12:04 AM, Scott Wood wrote: hmm... some question. a little confuse. 1. I using all rest of nand as rootfs partition. do I have keep some space in nand for BBT? The last block or so is marked reserved for the BBT. 2. do I

Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-03-25 Thread Xiangfu Liu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/08/2011 07:44 AM, Scott Wood wrote: You don't set nand-options... Don't you want a bad block table? hmm... some question. a little confuse. 1. I using all rest of nand as rootfs partition. do I have keep some space in nand for BBT?

Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-03-25 Thread Scott Wood
On Fri, 25 Mar 2011 17:17:17 +0800 Xiangfu Liu xian...@openmobilefree.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/08/2011 07:44 AM, Scott Wood wrote: You don't set nand-options... Don't you want a bad block table? hmm... some question. a little confuse. 1.

Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-03-22 Thread Xiangfu Liu
-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); +

Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-03-22 Thread Scott Wood
On Tue, 22 Mar 2011 16:11:03 +0800 Xiangfu Liu xian...@openmobilefree.net wrote: -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) +

Re: [U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-03-07 Thread Scott Wood
On Mon, 28 Feb 2011 14:57:11 +0800 Xiangfu Liu xian...@openmobilefree.net wrote: +static int jz_nand_rs_correct_data(struct mtd_info *mtd, u_char *dat, +u_char *read_ecc, u_char *calc_ecc) +{ + int k; + uint32_t errcnt, index, mask, status; +

[U-Boot] [PATCH v6 4/7] jz4740 nand driver

2011-02-27 Thread Xiangfu Liu
jz4740 nand driver Signed-off-by: Xiangfu Liu xian...@openmobilefree.net Acked-by: Daniel z...@ingenic.cn --- Changes for v3 - use proper I/O accessors to access registers. - don't breaks the 80-charcter-wide rule - remove C++ comments, cleanup code style. Changes for v6 - delete all