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
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
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
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
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
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
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
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
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,
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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)]);
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
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
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.
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
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
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
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
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
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
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
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
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
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
401 - 476 of 476 matches
Mail list logo