[U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-07-17 Thread Ilya Yanok
Driver for NFC NAND controller found on Freescale's MX2 and MX3 processors. Ported from Linux. Tested only with i.MX27 but should works with other MX2 and MX3 processors too. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/mxc_nand.c | 902

[U-Boot] [PATCH] fec_mxc: driver for FEC ethernet controller on i.MX27

2009-07-17 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c | 10 + drivers/net/Makefile |1 + drivers/net/fec_mxc.c| 742 ++ drivers/net/fec_mxc.h| 304 + include/netdev.h |1

[U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD

2009-07-17 Thread Ilya Yanok
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAINTAINERS |1 + MAKEALL

[U-Boot] [PATCH] mx27: rename fec_imx27 to fec_mxc

2009-07-17 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpu/arm926ejs/mx27/generic.c b/cpu/arm926ejs/mx27/generic.c index b377fad..cbb6c85 100644 --- a/cpu/arm926ejs/mx27/generic.c +++ b/cpu/arm926ejs

[U-Boot] [PATCH] jffs2: some fixes to summary support

2009-07-17 Thread Ilya Yanok
aborts. 3/ Make summary scan in two passes so we can safely fall back to full scan if we found unsupported entry in the summary. Signed-off-by: Ilya Yanok ya...@emcraft.com --- fs/jffs2/jffs2_1pass.c | 122 1 files changed, 81 insertions(+), 41

Re: [U-Boot] [PATCH] mx27: rename fec_imx27 to fec_mxc

2009-07-17 Thread Ilya Yanok
Hi Wolfgang, Wolfgang Denk wrote: Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpu/arm926ejs/mx27/generic.c b/cpu/arm926ejs/mx27/generic.c index b377fad..cbb6c85 100644 --- a/cpu

[U-Boot] [PATCH] mmc: set bus width to 1 and clock to minimum early during initialization

2009-06-29 Thread Ilya Yanok
We need to switch back to 1-bit before initialization or SD 2.0 cards will fail to send SCR if we've switched to 4-bit already. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mmc/mmc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers

Re: [U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-06-17 Thread Ilya Yanok
Hi Johan, Seems like that was the trick. After removing the breakout board it works much better. I still got some problems which I don't know if its software related. Sometimes when I power on the board the ethernet LEDs does not turn green and the network does not work. If I power cycle

Re: [U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-06-08 Thread Ilya Yanok
Hi Fabio, Fabio Estevam wrote: Uh... I think the hardware is pretty the same as that is handled by mcffec.c driver but merging won't be very easy... There are other i.MX processors with FEC. Uh... I didn't know that... As far as I can see Linux driver supports only i.MX27... Regards,

Re: [U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-06-07 Thread Ilya Yanok
Hi Ben, thanks for the review. Ben Warren wrote: Naive question: Is this FEC truly unique to the iMX27? If not you should pick a more generic name. Uh... I think the hardware is pretty the same as that is handled by mcffec.c driver but merging won't be very easy... Regards, Ilya.

[U-Boot] [PATCH 0/7][v3] Support for LogicPD i.MX27-LITEKIT development board

2009-06-07 Thread Ilya Yanok
This patch set adds support for LogicPD i.MX27-LITEKIT development board. It contains support for i.MX27 CPU, support for serial console, FEC ethernet controller, NFC NAND controller and SDHC controller. Signed-off-by: Ilya Yanok ya...@emcraft.com

[U-Boot] [PATCH 2/7] serial_mx31: allow it to work with mx27 too and rename to serial_mxc

2009-06-07 Thread Ilya Yanok
UART hardware on i.MX27 is the same as on the i.MX31 so we just need to provide the driver with correct address of the registers. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/serial/Makefile|2 +- drivers/serial/{serial_mx31.c = serial_mxc.c} | 21

[U-Boot] [PATCH 1/7] mx27: basic cpu support

2009-06-07 Thread Ilya Yanok
This patch adds generic code to support Freescale's i.MX27 SoCs. Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/Makefile | 44 +++ cpu/arm926ejs/mx27/generic.c| 241 +++ cpu/arm926ejs/mx27/reset.c | 57 cpu/arm926ejs

[U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-06-07 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c | 10 + drivers/net/Makefile |1 + drivers/net/fec_imx27.c | 713 ++ drivers/net/fec_imx27.h | 304 ++ include/netdev.h |1

[U-Boot] [PATCH 6/7] arm: add support for CONFIG_GENERIC_MMC

2009-06-07 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- lib_arm/board.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib_arm/board.c b/lib_arm/board.c index 5d05d9b..268532f 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -48,6 +48,7 @@ #include serial.h #include

[U-Boot] [PATCH 5/7] mxc-mmc: sdhc host driver for MX2 and MX3 proccessor

2009-06-07 Thread Ilya Yanok
patches. Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c | 16 ++ drivers/mmc/Makefile |1 + drivers/mmc/mxcmmc.c | 523 include/asm-arm/arch-mx27/mxcmmc.h | 25 ++ 4 files changed, 565

[U-Boot] [PATCH 7/7] imx27lite: add support for imx27lite board from LogicPD

2009-06-07 Thread Ilya Yanok
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAINTAINERS |1 + MAKEALL

Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-20 Thread Ilya Yanok
Hello Paul, I was trying to test out this patch, and I'm having some trouble. I did a git pull on the u-boot tree, and then I saved this patch to a text file. I was able to apply the patch just fine. The first thing that happend was make didn't like the Makefile, but I think it was just a

[U-Boot] [PATCH 00/10][v2] Support for LogicPD i.MX27-LITEKIT development board

2009-05-19 Thread Ilya Yanok
This patch set adds support for LogicPD i.MX27-LITEKIT development board. It contains support for i.MX27 CPU, support for serial console, FEC ethernet controller, NFC NAND controller and SDHC controller. Signed-off-by: Ilya Yanok ya...@emcraft.com

[U-Boot] [PATCH 2/7] serial_mx31: allow it to work with mx27 too and rename to serial_mxc

2009-05-19 Thread Ilya Yanok
UART hardware on i.MX27 is the same as on the i.MX31 so we just need to provide the driver with correct address of the registers. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/serial/Makefile |2 +- drivers/serial/serial_mx31.c| 226

[U-Boot] [PATCH 1/7] mx27: basic cpu support

2009-05-19 Thread Ilya Yanok
This patch adds generic code to support Freescale's i.MX27 SoCs. Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/Makefile | 44 +++ cpu/arm926ejs/mx27/generic.c| 237 ++ cpu/arm926ejs/mx27/interrupt.c | 201 include

[U-Boot] [PATCH 4/7] mxc_nand: add nand driver for MX2/MX3

2009-05-19 Thread Ilya Yanok
Driver for NFC NAND controller found on Freescale's MX2 and MX3 processors. Ported from Linux. Tested only with i.MX27 but should works with other MX2 and MX3 processors too. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/mxc_nand.c | 923

[U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-05-19 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c | 10 + drivers/net/Makefile |1 + drivers/net/fec_imx27.c | 705 ++ drivers/net/fec_imx27.h | 302 ++ include/netdev.h |1

[U-Boot] [PATCH 5/7] mxc-mmc: sdhc host driver for MX2 and MX3 proccessor

2009-05-19 Thread Ilya Yanok
This is a port of Linux driver for SDHC host controller hardware found on Freescale's MX2 and MX3 processors. Uses new generic MMC framework (CONFIG_GENERIC_MMC). One need to merge with u-boot-mmc tree to get the fixes for this driver to work correctly. Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH 6/7] arm: add support for CONFIG_GENERIC_MMC

2009-05-19 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- lib_arm/board.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib_arm/board.c b/lib_arm/board.c index 5d05d9b..268532f 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -48,6 +48,7 @@ #include serial.h #include

[U-Boot] [PATCH 7/7] imx27lite: add support for imx27lite board from LogicPD

2009-05-19 Thread Ilya Yanok
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAKEALL |1 + Makefile

Re: [U-Boot] [PATCH 0/7][v2] Support for LogicPD i.MX27-LITEKIT development board

2009-05-19 Thread Ilya Yanok
Sorry, guys, I've copied the wrong subject line. It should be [PATCH 0/7][v2]... Hope this won't cause misunderstandings... Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value

2009-05-15 Thread Ilya Yanok
Hi Alfred, alfred steele wrote: Just make sure that you have all needed clocks enabled. Thanks!One thing i forgot mentioning is that when i had adopted your patch on my baseline code, i started getting the infamous 'u64 ' (64 bit) division LINK errors while compiling with EABI rooting

Re: [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value

2009-05-14 Thread Ilya Yanok
Hi Alfred, alfred steele wrote: Hi Ilya, /* Now try to get the SD card's operating condition */ err = sd_send_op_cond(mmc); I am using your set of patches on the MX31 board. I am not getting any command response for the sd_send_op_cond(mmc) called from the mmc. I

Re: [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value

2009-05-14 Thread Ilya Yanok
Hi Alfred, my English is not perfect really... but I'm actually having hard times trying to understand yours... So I give you my excuses in advance for possible misunderstandings... alfred steele wrote: Looks like accidently somehow pressed the send button. Apologize! Thanks for the much

Re: [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value

2009-05-14 Thread Ilya Yanok
Hi Alfred, alfred steele wrote: We don't have clocks API in U-Boot. You need to enable the clock by setting appropriate bit in the clocks control register manually. Why do i have to touch the CCM? IIRC, Can't it be controlled with the STR_STP_CLOCK (bit 0). When i read the CCM using

Re: [U-Boot] [PATCH 01/10] mx27: basic cpu support

2009-05-13 Thread Ilya Yanok
Hi Wolfgang, Wolfgang Denk wrote: +static ulong clk_in_26m(void) +{ +if (CSCR CSCR_OSC26M_DIV1P5) { +/* divide by 1.5 */ +return 2600 / 1.5; We definitely do not allow any FP use in U-Boot. This will be actually converted to an integer at the

[U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-06 Thread Ilya Yanok
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAKEALL |1 + Makefile

[U-Boot] [PATCH 03/10] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-05-06 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/Makefile |1 + drivers/net/fec_imx27.c| 795 drivers/net/fec_imx27.h| 305 + drivers/net/imx27_miiphy.c | 125 +++ drivers/net/imx27_miiphy.h | 157

[U-Boot] [PATCH 06/10] arm: add support for CONFIG_GENERIC_MMC

2009-05-06 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- lib_arm/board.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib_arm/board.c b/lib_arm/board.c index 5d05d9b..86635bd 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -48,6 +48,7 @@ #include serial.h #include

[U-Boot] [PATCH 02/10] serial_mx31: allow it to work with mx27 too

2009-05-06 Thread Ilya Yanok
UART hardware on i.MX27 is the same as on the i.MX31 so we just need to provide the driver with correct address of the registers. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/serial/serial_mx31.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 04/10] mxc_nand: add nand driver for MX2/MX3

2009-05-06 Thread Ilya Yanok
Driver for NFC NAND controller found on Freescale's MX2 and MX3 processors. Ported from Linux. Tested only with i.MX27 but should works with other MX2 and MX3 processors too. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/mxc_nand.c | 891

[U-Boot] [PATCH 00/10] Support for LogicPD i.MX27-LITEKIT development board

2009-05-06 Thread Ilya Yanok
This patch set adds support for LogicPD i.MX27-LITEKIT development board. It contains support for i.MX27 CPU, support for serial console, FEC ethernet controller, NFC NAND controller and SDHC controller. It also contains some fixes to generic MMC subsystem. Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH 01/10] mx27: basic cpu support

2009-05-06 Thread Ilya Yanok
This patch adds generic code to support Freescale's i.MX27 SoCs. Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/Makefile | 44 +++ cpu/arm926ejs/mx27/generic.c | 205 ++ cpu/arm926ejs/mx27/interrupt.c | 201 ++ include/asm

[U-Boot] [PATCH 05/10] mxc-mmc: sdhc host driver for MX2 and MX3 proccessor

2009-05-06 Thread Ilya Yanok
patches. Signed-off-by: Ilya Yanok ya...@emcraft.com --- cpu/arm926ejs/mx27/generic.c | 16 ++ drivers/mmc/Makefile |1 + drivers/mmc/mxcmmc.c | 520 include/asm-arm/arch-mx27/mxcmmc.h | 25 ++ 4 files changed, 562

[U-Boot] [PATCH 07/10] mmc: use lldiv() for 64-bit division

2009-05-06 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mmc/mmc.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7791c38..77a9aea 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -31,6 +31,7 @@ #include malloc.h

[U-Boot] [PATCH 08/10] mmc: some endianess fixes for generic mmc subsystem

2009-05-06 Thread Ilya Yanok
respectively). 3. Proper MMC version detection. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mmc/mmc.c | 10 +- include/mmc.h |2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 77a9aea..f7a989b 100644

[U-Boot] [PATCH 09/10] mmc: fix mmcinfo command

2009-05-06 Thread Ilya Yanok
cid field of stuct mmc stucture is char*, not u32*. so we need to convert the pointer for mmcinfo code to work correctly. Signed-off-by: Ilya Yanok ya...@emcraft.com --- common/cmd_mmc.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/common/cmd_mmc.c b/common

Re: [U-Boot] JFFS2 scanning bug

2009-03-13 Thread Ilya Yanok
Hi Mark, mpfj-l...@mimc.co.uk wrote: Hi Mark, Don't you have JTAG debugger so you could find where exactly it hangs? Or you can try adding debugging printf's to the source... I can't reproduce your problem myself so that info would be useful. Thanks for clearing this out. Okay,

Re: [U-Boot] JFFS2 scanning bug

2009-02-26 Thread Ilya Yanok
Hi Mark, Mark Jackson wrote: I've just updated from v2008.10 to v2009.01 on my AVR32 board (MIMC200). JFFS2 no longer works (it hangs at Scanning JFFS2 FS:, so I've done a git bisect, and here's the result:- [snip] Is this a known problem ? No, I've never heard of it. Could you

Re: [U-Boot] JFFS2 scanning bug

2009-02-26 Thread Ilya Yanok
Hi Mark, Don't you have JTAG debugger so you could find where exactly it hangs? Or you can try adding debugging printf's to the source... I can't reproduce your problem myself so that info would be useful. Regards, Ilya. ___ U-Boot mailing list

[U-Boot] [PATCH] qong: changes to Dave/DENX Qong configuration

2009-02-26 Thread Ilya Yanok
and MTDPARTS_DEFAULT defined 4. CONFIG_SYS_CBSIZE changed from 256 to 512. That solves the problem with truncated bootargs environment variable. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/configs/qong.h | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff

Re: [U-Boot] [PATCH 2/3] dnet: driver for Dave DNET ethernet controller

2009-02-11 Thread Ilya Yanok
Dear Wolfgang, Wolfgang Denk wrote: nothing magical in offsets actually... we usually have offsets in specs not C structures... Just to name one reason (but a very important one): using a struct allows for strict type checking by the compiler. If you use address + offset you will

Re: [U-Boot] [PATCH 2/3][v3] dnet: driver for Dave DNET ethernet controller

2009-02-09 Thread Ilya Yanok
Hi Wolfgang, Wolfgang Denk wrote: +u32 TX_JUMBO_CNT; +u32 TX_BYTE_CNT; +} __attribute__((packed)); Why is this packed? All fields are 32-bit aligned already. Generally, I prefer declaring such structures with ((packed)) regardless of if it's really do

[U-Boot] [PATCH 2/3][v4] dnet: driver for Dave DNET ethernet controller

2009-02-09 Thread Ilya Yanok
Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board). Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/Makefile |1 + drivers/net/dnet.c | 396 ++ drivers/net/dnet.h | 166

Re: [U-Boot] [PATCH 2/3][v3] dnet: driver for Dave DNET ethernet controller

2009-02-09 Thread Ilya Yanok
Hello All, Sorry guys, it looks like I posted the wrong version. Please discard [v4] patch. I'll post [v5] version soon. Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 2/3][v5] dnet: driver for Dave DNET ethernet controller

2009-02-09 Thread Ilya Yanok
Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board). Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/Makefile |1 + drivers/net/dnet.c | 396 ++ drivers/net/dnet.h | 166

[U-Boot] [PATCH 0/3][v2] qong: support for Dave/DENX QongEVB-LITE

2009-02-04 Thread Ilya Yanok
These patches add support for Dave/DENX QongEVB-LITE i.MX31-based board. Signed-off-by: Ilya Yanok ya...@emcraft.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 1/3][v2] mx31: add GPIO registers definitions

2009-02-04 Thread Ilya Yanok
Added definitions for i.MX31 processor GPIO registers. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/asm-arm/arch-mx31/mx31-regs.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/asm-arm/arch-mx31/mx31-regs.h b/include/asm-arm/arch-mx31/mx31

[U-Boot] [PATCH 3/3][v2] qong: support for Dave/DENX QongEVB-LITE board

2009-02-04 Thread Ilya Yanok
This patch adds support for Dave/DENX QongEVB-LITE i.MX31-based board. Signed-off-by: Ilya Yanok ya...@emcraft.com --- Makefile|4 + board/davedenx/qong/Makefile| 53 + board/davedenx/qong/config.mk |1 + board/davedenx/qong

Re: [U-Boot] [PATCH 2/3] dnet: driver for Dave DNET ethernet controller

2009-02-04 Thread Ilya Yanok
Dear Wolfgang, thanks for your review. I think I've addressed all your comments. Please take a look on updated patches. Wolfgang Denk wrote: I see. Please do not operate on base register plus magic offset - implement a proper C structure instead to describe the controller hardware.

Re: [U-Boot] [PATCH 3/3] qong: support for Dave/DENX QongEVB-LITE board

2009-02-04 Thread Ilya Yanok
Dear Wolfgang, Wolfgang Denk wrote: +/* + * Reducing the ARP timeout from default 5 seconds to 200ms we speed up the + * initial TFTP transfer, should the user wish one, significantly. + */ +#define CONFIG_ARP_TIMEOUT 200UL Is this really necessary on this hardware? Yes. I get

Re: [U-Boot] [PATCH 2/3] dnet: driver for Dave DNET ethernet controller

2009-02-02 Thread Ilya Yanok
Hi Ben, Thanks a lot for your comments! I'll address them and repost the patch in a short time. Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 2/3] dnet: driver for Dave DNET ethernet controller

2009-02-02 Thread Ilya Yanok
Driver for Dave DNET ethernet controller (used on Dave/DENX QongEVB-LITE board). Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/Makefile |1 + drivers/net/dnet.c | 405 ++ drivers/net/dnet.h | 169 + 3

[U-Boot] [PATCH 1/3] mx31: add GPIO registers definitions

2009-02-02 Thread Ilya Yanok
Added definitions for i.MX31 processor GPIO registers. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/asm-arm/arch-mx31/mx31-regs.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/asm-arm/arch-mx31/mx31-regs.h b/include/asm-arm/arch-mx31/mx31

Re: [U-Boot] [PATCH 3/6] jffs2: rewrite jffs2 scanning code based on Linux one

2008-12-10 Thread Ilya Yanok
Hi Stefan, Stefan Roese wrote: After this patch is now applied to the main u-boot repo, I get the following warning when compiling my new board with OneNAND JFFS2 support: [EMAIL PROTECTED] u-boot (vcth-onenand-ubi-ver3)]$ make -s -j5 jffs2_1pass.c:1411:1: warning: min_t redefined In file

[U-Boot] [PATCH] jffs2: include linux/mtd/compat.h instead of defining own min_t

2008-12-10 Thread Ilya Yanok
Include linux/mtd/compat.h header for min_t definition instead of providing our own one. Removes warnings in case of OneNAND support enabled. Although I thinks it's a bit silly to include linux/mtd/compat.h just for min_t... Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- fs/jffs2/jffs2_1pass.c

Re: [U-Boot] [PATCH 3/6] jffs2: rewrite jffs2 scanning code based on Linux one

2008-11-20 Thread Ilya Yanok
Hello Jean-Christophe, Jean-Christophe PLAGNIOL-VILLARD wrote: /* start at the beginning of the partition */ -while (offset max) { -if ((oldoffset SPIN_BLKSIZE) != (offset SPIN_BLKSIZE)) { -printf(\b\b%c , spinner[counter++ % sizeof(spinner)]);

[U-Boot] [PATCH 1/6] jffs2: fix searching for latest version in jffs2_1pass_list_inodes()

2008-11-13 Thread Ilya Yanok
We need to update i_version inside cycle to find really latest version inside jffs2_1pass_list_inodes(). With that fixed we can use isize inside dump_inode() instead of calling expensive jffs2_1pass_read_inode(). Signed-off-by: Alexey Neyman [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL

[U-Boot] [PATCH 2/6] jffs2: add sector_size field to part_info structure

2008-11-13 Thread Ilya Yanok
This patch adds sector_size field to part_info structure (used by new JFFS2 code). Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- common/cmd_jffs2.c | 20 +--- include/jffs2/load_kernel.h |1 + 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/common

[U-Boot] [RFC PATCH 0/6] Some speed improvements to U-Boot JFFS2 code (updated)

2008-11-13 Thread Ilya Yanok
Hello everybody, here is a set of changes we made to improve U-Boot JFFS2 code performance. We still can't reach Linux's performance but improvements are significant. Patches are againt current u-boot git tree. Any comments are welcome. Regards, Ilya.

[U-Boot] [PATCH 3/6] jffs2: rewrite jffs2 scanning code based on Linux one

2008-11-13 Thread Ilya Yanok
Rewrites jffs2_1pass_build_lists() function in style of Linux's jffs2_scan_medium() and jffs2_scan_eraseblock(). This includes: - Caching flash acceses - Smart dealing with free space Signed-off-by: Alexey Neyman [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- fs/jffs2

[U-Boot] [PATCH 4/6] jffs2: add buffer to cache flash accesses

2008-11-13 Thread Ilya Yanok
With this patch JFFS2 code allocates memory buffer of max_totlen size (size of the largest node, calculated during scan time) and uses it to store entire node. Speeds up loading. If malloc fails we use old ways to do things. Signed-off-by: Alexey Neyman [EMAIL PROTECTED] Signed-off-by: Ilya Yanok

[U-Boot] [PATCH 5/6] jffs2: summary support

2008-11-13 Thread Ilya Yanok
This patch adds support for reading fs information from summary node instead of scanning full eraseblock. Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- fs/jffs2/jffs2_1pass.c | 187 +++- fs/jffs2/summary.h | 163

Re: [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code

2008-11-02 Thread Ilya Yanok
Hello Wolfgang, Wolfgang Denk wrote: Sounds good. That is what we were expecting. If you submit a patch, then please add such comments *below* the --- line. That wasn't a patch submission actually... I've just wanted Michael to test if this patch helps with his problem. I'll post

Re: [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code

2008-10-31 Thread Ilya Yanok
38d2055f7b493af858c96d1db2aa5cef78adeae1 Mon Sep 17 00:00:00 2001 From: Ilya Yanok [EMAIL PROTECTED] Date: Wed, 15 Oct 2008 16:22:35 +0200 Subject: jffs2: fix sector_size calculation in case of NOR flash Need to take all sectors into account then calculating sector_size for NOR flashes. Signed-off-by: Ilya Yanok [EMAIL PROTECTED

Re: [U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code

2008-10-15 Thread Ilya Yanok
Hi Wolfgang, Wolfgang Denk wrote: here is a set of changes we made to improve U-Boot JFFS2 code performance. We still can't reach Linux's performance but improvements are significant. Any comments are welcome. Are these patches independent of each other, or are all of them

[U-Boot] [PATCH] jffs2: cache data_crc results

2008-10-13 Thread Ilya Yanok
I think, crc in RAM is really fast) but this patch impacts memory usage -- every b_node structure uses 12 bytes instead of 8. Signed-off-by: Alexey Neyman [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- fs/jffs2/jffs2_1pass.c |5 - fs/jffs2/jffs2_private.h |1 + 2

[U-Boot] [PATCH] jffs2: summary support

2008-10-13 Thread Ilya Yanok
This patch adds support for reading fs information from summary node instead of scanning full eraseblock. Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- fs/jffs2/jffs2_1pass.c | 187 +++- fs/jffs2/summary.h | 163

[U-Boot] [PATCH/RFC] Some speed improvements to U-Boot JFFS2 code

2008-10-13 Thread Ilya Yanok
Hello everybody, here is a set of changes we made to improve U-Boot JFFS2 code performance. We still can't reach Linux's performance but improvements are significant. Any comments are welcome. Regards, Ilya. ___ U-Boot mailing list

[U-Boot] [PATCH] jffs2: rewrite jffs2 scanning code based on Linux one

2008-10-13 Thread Ilya Yanok
Rewrites jffs2_1pass_build_lists() function in style of Linux's jffs2_scan_medium() and jffs2_scan_eraseblock(). This includes: - Caching flash acceses - Smart dealing with free space Signed-off-by: Alexey Neyman [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- fs/jffs2

<    1   2   3   4   5