Re: [U-Boot] [PATCH] [NAND] Add board_nand_init_tail to give board module a chance to init after NAND chip is scaned.

2008-08-08 Thread Scott Wood
On Fri, Aug 08, 2008 at 10:06:03AM +0800, Hong Xu wrote: > Sometimes, board module needs to know some information about the NAND > chip e.g. page size to continue it's initialization. This short patch > give board module a chance to continue its initialization after the > NAND chip is scaned. [snip

Re: [U-Boot] [PATCH] [NAND] Add board_nand_init_tail to give board module a chance to init after NAND chip is scaned.

2008-08-08 Thread Haavard Skinnemoen
"Hong Xu" <[EMAIL PROTECTED]> wrote: > +int __board_nand_init_tail(struct nand_chip *nand) { return 0; } > +int inline board_nand_init_tail (struct nand_chip *) __attribute__ > + ((weak, alias("__board_nand_init_tail"))); A globally visible inline weak alias. How does that work? Haavard _

Re: [U-Boot] [PATCH] [NAND] Add board_nand_init_tail to give board module a chance to init after NAND chip is scaned.

2008-08-08 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > > diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nand/nand.c > index e44470e..f795d2e 100644 > --- a/drivers/mtd/nand/nand.c > +++ b/drivers/mtd/nand/nand.c > @@ -41,6 +41,10 @@ static const char default_nand_name[] = "nand"; > > extern int board_n

Re: [U-Boot] [PATCH] [NAND] Add board_nand_init_tail to give board module a chance to init after NAND chip is scaned.

2008-08-07 Thread Jerry Van Baren
Hong Xu wrote: > Sometimes, board module needs to know some information about the NAND > chip e.g. page size to continue it's initialization. This short patch > give board module a chance to continue its initialization after the > NAND chip is scaned. > > best regards, > > diff --git a/drivers/mt

[U-Boot] [PATCH] [NAND] Add board_nand_init_tail to give board module a chance to init after NAND chip is scaned.

2008-08-07 Thread Hong Xu
Sometimes, board module needs to know some information about the NAND chip e.g. page size to continue it's initialization. This short patch give board module a chance to continue its initialization after the NAND chip is scaned. best regards, diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nan