[U-Boot] [PATCH] Add support s3c2440 NAND controller

2012-04-19 Thread Ilya Averyanov
arch/arm/include/asm/arch-s3c24x0/s3c2410.h |4 +- arch/arm/include/asm/arch-s3c24x0/s3c2440.h |4 +- arch/arm/include/asm/arch-s3c24x0/s3c24x0.h | 13 +- drivers/mtd/nand/Makefile |3 +- drivers/mtd/nand/s3c2410_nand.c | 189 --- driver

[U-Boot] [PATCH] Fix s3c24x0 timer

2012-04-19 Thread Ilya Averyanov
Timer in s3c24x0 arch very old and use global variable. This patch fix it and use DECLARE_GLOBAL_DATA_PTR diff --git a/arch/arm/cpu/arm920t/s3c24x0/timer.c b/arch/arm/cpu/arm920t/s3c24x0/timer.c index 9571870..3ded465 100644 --- a/arch/arm/cpu/arm920t/s3c24x0/timer.c +++ b/arch/arm/cpu/arm920t/s3c

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-19 Thread Ilya Averyanov
2012/4/20 Marek Vasut > Dear Gabriel Huau, > > > On Thu, Apr 19, 2012 at 10:08:47PM +0200, Marek Vasut wrote: > > > Dear Gabriel Huau, > > > > > > > --- > > > > > > > > Changes for v2: > > > > - Coding style cleanup > > > > - Remove unnecessary files modification > > > > - Remove unnecessar

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Ilya Averyanov
2012/4/20 Marek Vasut > Dear Gabriel Huau, > > > On Thu, Apr 19, 2012 at 10:45:21PM +0200, Marek Vasut wrote: > > > Dear Gabriel Huau, > > > > > > > On Thu, Apr 19, 2012 at 10:08:47PM +0200, Marek Vasut wrote: > > > > > Dear Gabriel Huau, > > > > > > > > > > > --- > > > > > > > > > > > > Changes

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Ilya Averyanov
2012/4/20 Marek Vasut > Dear Ilya Averyanov, > > [...] > > > > > > > > > .word 0x32 > > > > > > > > +.word 0x30 > > > > > > > > +.word 0x30 > > > > > > > > > > > > &g

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Ilya Averyanov
2012/4/20 Marek Vasut > Dear Ilya Averyanov, > > > 2012/4/20 Marek Vasut > > > > > Dear Ilya Averyanov, > > > > > > [...] > > > > > > > > > > > > > .word 0x32 > > > > > > > > > > +

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Ilya Averyanov
2012/4/20 Ilya Averyanov > > > 2012/4/20 Marek Vasut > >> Dear Ilya Averyanov, >> >> > 2012/4/20 Marek Vasut >> > >> > > Dear Ilya Averyanov, >> > > >> > > [...] >> > > >> > &

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Ilya Averyanov
2012/4/20 Marek Vasut > Dear Ilya Averyanov, > > > 2012/4/20 Ilya Averyanov > > > > > 2012/4/20 Marek Vasut > > > > > >> Dear Ilya Averyanov, > > >> > > >> > 2012/4/20 Marek Vasut > > >> > > > &

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-20 Thread Ilya Averyanov
2012/4/21 Marek Vasut > Dear Vasily Khoruzhick, > > > 2012/4/20 Marek Vasut : > > > Which doesn't matter, either way you need stack ... and you can have > the > > > stack in cache ;-) > > > > s3c24xx has 4kb of SRAM (steppingstone), you can use it for stack > > Oh, I didn't know that ... so there

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440)

2012-04-20 Thread Ilya Averyanov
2012/4/21 Gabriel Huau > On Sat, Apr 21, 2012 at 02:51:46AM +0400, Ilya Averyanov wrote: > > 2012/4/21 Marek Vasut > > > > > Dear Vasily Khoruzhick, > > > > > > > 2012/4/20 Marek Vasut : > > > > > Which doesn't matter, either wa

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-21 Thread Ilya Averyanov
2012/4/21 Vasily Khoruzhick > 2012/4/21 Ilya Averyanov : > > > > No have problem. > > Available only if you boot from NOR flash. > > If you boot from the NAND 4kb of SRAM (steppingstone) not available. > > For NAND boot it's mapped at 0x0 > For NO

Re: [U-Boot] [PATCH] Add support s3c2440 NAND controller

2012-04-21 Thread Ilya Averyanov
2012/4/19 Ilya Averyanov > arch/arm/include/asm/arch-s3c24x0/s3c2410.h |4 +- > arch/arm/include/asm/arch-s3c24x0/s3c2440.h |4 +- > arch/arm/include/asm/arch-s3c24x0/s3c24x0.h | 13 +- > drivers/mtd/nand/Makefile |3 +- > drivers/mtd/nand

Re: [U-Boot] [PATCH] Add support s3c2440 NAND controller

2012-04-22 Thread Ilya Averyanov
2012/4/19 Ilya Averyanov > arch/arm/include/asm/arch-s3c24x0/s3c2410.h |4 +- > arch/arm/include/asm/arch-s3c24x0/s3c2440.h |4 +- > arch/arm/include/asm/arch-s3c24x0/s3c24x0.h | 13 +- > drivers/mtd/nand/Makefile |3 +- > drivers/mtd/nand

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-23 Thread Ilya Averyanov
Dear Marek Vasut, Would you please explain, why do you want to initialize the sdram has been in C code. If for provide this feature should be written assembly code. And it would sometimes even harder than the initialization code sdram? 2012/4/21 Marek Vasut > Dear Ilya Averyanov, > >

Re: [U-Boot] [PATCH v3] Add support for MINI2440 (s3c2440). Documentation about the product can be found on: http://www.friendlyarm.net/products/mini2440

2012-04-23 Thread Ilya Averyanov
2012/4/23 Marek Vasut > Dear Ilya Averyanov, > > > Dear Marek Vasut, > > > > Would you please explain, why do you want to initialize the sdram has > been > > in C code. > > Ok, no problem: > - You'll be able to call get_ram_size() to scan for ram

[U-Boot] Fwd: [PATCH] Add support s3c2440 NAND controller

2012-04-24 Thread Ilya Averyanov
Dear Marek Vasut > > Dear Ilya Averyanov, > > please always Cc the mainline list. Also, I'm now s3c2440 person, I have > no > relationship with this chip at all ... > > >  arch/arm/include/asm/arch-s3c24x0/s3c2410.h |    4 +- > >  arch/arm/include/asm/arch-s3c

Re: [U-Boot] [PATCH] Add support s3c2440 NAND controller

2012-04-24 Thread Ilya Averyanov
Dear Marek Vasut > > Dear Ilya Averyanov, > > please always Cc the mainline list. Also, I'm now s3c2440 person, I have > no > relationship with this chip at all ... > > >  arch/arm/include/asm/arch-s3c24x0/s3c2410.h |    4 +- > >  arch/arm/include/asm/arch-s3c