[U-Boot] [PATCH 8/8][v3] mcx: support for HTKW mcx board

2011-10-17 Thread Ilya Yanok
This patch adds support for the HTKW mcx AM3517-based board. Serial, Ethernet, NAND and MMC are supported. Requires updated mach-types file. Signed-off-by: Ilya Yanok ya...@emcraft.com --- Diff from v2: 1. removed dead code from board/htkw/mcx/Makefile as Mike suggested 2. removed EMAC reset

[U-Boot] [PATCH 3/7] omap/spl: actually enable the console

2011-10-17 Thread Ilya Yanok
Currently OMAP SPL code does all the initialization but does not set the gd-have_console value so no output is actually performed. This patch sets gd-have_console to 1 if CONFIG_SPL_CONSOLE is defined. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/cpu/armv7/omap-common/spl.c |4

[U-Boot] [PATCH 0/7] NAND SPL support for mcx board

2011-10-17 Thread Ilya Yanok
Hi All, these patches enable support for booting from NAND without X-loader for HTKW mcx board as well as some OMAP/SPL fixes. The last patch relies on my recently posted davinci_emac/mcx series while the others can be applied directly on master. Signed-off-by: Ilya Yanok ya...@emcraft.com

[U-Boot] [PATCH 6/7] nand_spl_simple: store temp data at CONFIG_SPL_NAND_WORKSPACE

2011-10-17 Thread Ilya Yanok
-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/nand/nand_spl_simple.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/nand_spl_simple.c b/drivers/mtd/nand/nand_spl_simple.c index dd1de27..e40cbf0 100644 --- a/drivers/mtd/nand/nand_spl_simple.c

[U-Boot] [PATCH 7/7] mcx: NAND SPL support

2011-10-17 Thread Ilya Yanok
support for booting from NAND without X-loader. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/configs/mcx.h | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/include/configs/mcx.h b/include/configs/mcx.h index 25fd610

[U-Boot] [PATCH 2/7] omap/spl: don't assume u-boot.bin size, use CONFIG_SYS_NAND_U_BOOT_SIZE

2011-10-17 Thread Ilya Yanok
Don't hardcode u-boot.bin size for the case where mkimage signature is missing, use CONFIG_SYS_NAND_U_BOOT_SIZE for this. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/cpu/armv7/omap-common/spl.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu

[U-Boot] [PATCH 1/7] omap3/emif4: fix registers definition

2011-10-17 Thread Ilya Yanok
Fix EMIF4 registers definition. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/include/asm/arch-omap3/cpu.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-omap3/cpu.h b/arch/arm/include/asm/arch-omap3/cpu.h index 08a725d..97fbee6

[U-Boot] [PATCH 5/7] omap_gpmc: use SOFTECC in SPL if it's enabled

2011-10-17 Thread Ilya Yanok
Use software ECC for the SPL build if support for software ECC in SPL is enabled. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/nand/omap_gpmc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c

[U-Boot] [PATCH 4/7] nand_spl_simple: add support for software ECC

2011-10-17 Thread Ilya Yanok
This patch adds support for software ECC to the nand_spl_simple driver. To enable this one have to define CONFIG_SPL_NAND_SOFTECC. Tested on OMAP3. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/nand/nand_ecc.c|2 +- drivers/mtd/nand/nand_spl_simple.c | 11

Re: [U-Boot] [PATCH 2/7] omap/spl: don't assume u-boot.bin size, use CONFIG_SYS_NAND_U_BOOT_SIZE

2011-10-17 Thread Ilya Yanok
Hi Tom, On 18.10.2011 03:43, Tom Rini wrote: Don't hardcode u-boot.bin size for the case where mkimage signature is missing, use CONFIG_SYS_NAND_U_BOOT_SIZE for this. Signed-off-by: Ilya Yanok ya...@emcraft.com I don't like this since it means we need to always define this variable when

Re: [U-Boot] [PATCH 6/8] AM35xx: add EMAC support

2011-10-14 Thread Ilya Yanok
Hi Mike, On 14.10.2011 02:55, Mike Frysinger wrote: --- /dev/null +++ b/arch/arm/cpu/armv7/omap3/emac.c +/* + * Initializes on-chip ethernet controllers. + * to override, implement board_eth_init() + */ +int cpu_eth_init(bd_t *bis) +{ +davinci_emac_initialize(); + +return 0;

[U-Boot] [PATCH 0/8][v2] DaVinci EMAC for AM35x and HTKW mcx board support

2011-10-13 Thread Ilya Yanok
moved to common header. Regards, 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 5/8] davinci_emac: hardcode 100Mbps for AM35xx and RMII

2011-10-13 Thread Ilya Yanok
For some reason code setting the speed based on the PHY feedback causes troubles on AM3517 so hardcode 100Mbps for now. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/davinci_emac.c

[U-Boot] [PATCH 4/8] davinci_emac: fix for running with dcache enabled

2011-10-13 Thread Ilya Yanok
if it is really needed or alignment to cache line size is enough. !!!NOTE!!! This actually breaks builds for all DaVinci boards that use this driver (as there is no {invalidate,flush}_dcache_range for ARM926EJS). Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c | 41

[U-Boot] [PATCH 7/8] AM3517: move AM3517 specific mux defines to generic header

2011-10-13 Thread Ilya Yanok
AM3517 specific CONTROL_PADCONF_* defines moved from board-specific files to asm/arch-omap3/mux.h Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/include/asm/arch-omap3/mux.h | 41 + board/logicpd/am3517evm/am3517evm.h | 40

[U-Boot] [PATCH 2/8] davinci_emac: use internal addresses in buffer descriptors

2011-10-13 Thread Ilya Yanok
On AM35xx CPPI RAM had different addresses when accessed from the CPU and from the EMAC. We need to account this to deal with the buffer descriptors correctly. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c | 39 ++- 1 files

[U-Boot] [PATCH 1/8] davinci_emac: move arch-independent defines to separate header

2011-10-13 Thread Ilya Yanok
DaVinci EMAC is found not only on DaVinci SoCs but on some OMAP3 SoCs also. This patch moves common defines from arch-davinci/emac_defs.h to drivers/net/davinci_emac.h Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/include/asm/arch-davinci/emac_defs.h | 293

[U-Boot] [PATCH 6/8] AM35xx: add EMAC support

2011-10-13 Thread Ilya Yanok
AM35xx has DaVinci-compatible EMAC. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/cpu/armv7/omap3/Makefile |1 + arch/arm/cpu/armv7/omap3/emac.c | 37 ++ arch/arm/include/asm/arch-omap3/emac_defs.h | 56 +++ 3 files

[U-Boot] [PATCH 3/8] davinci_emac: conditionally compile specific PHY support

2011-10-13 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 3c442c4..d413478 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net

[U-Boot] [PATCH 8/8] mcx: support for HTKW mcx board

2011-10-13 Thread Ilya Yanok
This patch adds support for the HTKW mcx AM3517-based board. Serial, Ethernet, NAND and MMC are supported. Requires updated mach-types file. Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAINTAINERS |4 + board/htkw/mcx/Makefile | 44 + board/htkw/mcx/mcx.c| 89

[U-Boot] [PATCH] omap3/emif4: fix registers definition

2011-10-13 Thread Ilya Yanok
Fix EMIF4 registers definition. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/include/asm/arch-omap3/cpu.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-omap3/cpu.h b/arch/arm/include/asm/arch-omap3/cpu.h index 08a725d..97fbee6

Re: [U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled

2011-10-13 Thread Ilya Yanok
Hi Mike, On 09.10.2011 19:56, Mike Frysinger wrote: arm926ejs doesn't have {invalidate,flush}_dcache_range(), so we have to add this not to break the driver on DaVinci boards (maybe we need to add empty cache functions on arm926ejs instead?) if the prototype is in include/common.h, then

Re: [U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled

2011-10-13 Thread Ilya Yanok
Hi Stefano, On 10.10.2011 17:17, Stefano Babic wrote: Should we not be sure that size is rounded up to align with the cache line size ? Surely we should. Actually it's not the size that has to be aligned but the buffer itself. Is there any generic API to get the cache line size? There is

Re: [U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled

2011-10-10 Thread Ilya Yanok
Hi Stefano, On 10.10.2011 16:35, Stefano Babic wrote: +#ifdef DAVINCI_EMAC_DCACHE +static inline void davinci_flush(void *addr, int size) +{ +flush_dcache_range((unsigned long)addr, +(unsigned long)addr + size); +} There is no check with the cache linesize. I get

Re: [U-Boot] [PATCH] mcx: support for HTKW mcx board

2011-10-10 Thread Ilya Yanok
Hi Igor, thanks for your comments, I'll post the updated patches soon. Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/6] davinci_emac: move arch-independent defines to separate header

2011-10-10 Thread Ilya Yanok
Dear Wolfgang, On 07.10.2011 01:02, Wolfgang Denk wrote: arch/arm/include/asm/arch-davinci/emac_defs.h | 293 --- drivers/net/davinci_emac.c|1 + drivers/net/davinci_emac.h| 317 + 3 files changed,

Re: [U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled

2011-10-09 Thread Ilya Yanok
Hi Mike, On 07.10.2011 21:34, Mike Frysinger wrote: +#ifdef DAVINCI_EMAC_DCACHE +static inline void davinci_flush(void *addr, int size) +{ +flush_dcache_range((unsigned long)addr, +(unsigned long)addr + size); +} + +static inline void davinci_invalidate(void *addr,

[U-Boot] [PATCH] mcx: support for HTKW mcx board

2011-10-05 Thread Ilya Yanok
This patch adds support for the HTKW mcx AM3517-based board. Serial, Ethernet, NAND and MMC are supported. Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAINTAINERS |4 + board/htkw/mcx/Makefile | 44 + board/htkw/mcx/config.mk | 27 +++ board/htkw/mcx/mcx.c

[U-Boot] [PATCH 5/6] davinci_emac: hardcode 100Mbps for AM35xx and RMII

2011-10-05 Thread Ilya Yanok
For some reason code setting the speed based on the PHY feedback causes troubles on AM3517 so hardcode 100Mbps for now. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/davinci_emac.c

[U-Boot] [PATCH 1/6] davinci_emac: move arch-independent defines to separate header

2011-10-05 Thread Ilya Yanok
DaVinci EMAC is found not only on DaVinci SoCs but on some OMAP3 SoCs also. This patch moves common defines from arch-davinci/emac_defs.h to drivers/net/davinci_emac.h Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/include/asm/arch-davinci/emac_defs.h | 293

[U-Boot] [RFC PATCH 0/0] Support for DaVinci EMAC on TI AM35xx

2011-10-05 Thread Ilya Yanok
. This definetely needs a better solution but somehow existing code causes troubles. 6. AM35xx-specific defines added into the separate header. I'm not sure if I should just squash all the patches into one. Thanks. Signed-off-by: Ilya Yanok ya...@emcraft.com

[U-Boot] [PATCH 6/6] AM35xx: add EMAC defines

2011-10-05 Thread Ilya Yanok
AM35xx has DaVinci-compatible EMAC. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/arm/include/asm/arch-omap3/emac_defs.h | 57 +++ 1 files changed, 57 insertions(+), 0 deletions(-) create mode 100755 arch/arm/include/asm/arch-omap3/emac_defs.h diff --git a/arch

[U-Boot] [PATCH 3/6] davinci_emac: conditionally compile specific PHY support

2011-10-05 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 7eb37c7..222a0d0 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net

[U-Boot] [PATCH 2/6] davinci_emac: use internal addresses in buffer descriptors

2011-10-05 Thread Ilya Yanok
On AM35xx CPPI RAM had different addresses when accessed from the CPU and from the EMAC. We need to account this to deal with the buffer descriptors correctly. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c | 28 +++- 1 files changed, 19

[U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled

2011-10-05 Thread Ilya Yanok
DaVinci EMAC is present on TI AM35xx SoCs (ARMv7) which run with D-Cache enabled by default. So we have to take care and flush/invalidate the cache before/after the DMA operations. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/davinci_emac.c | 47

Re: [U-Boot] SPL framework re-design

2011-06-27 Thread Ilya Yanok
Hi Aneesh, On 27.06.2011 08:29, Aneesh V wrote: I wonder why do we need this whole spl thing in the first place (well, surely I know what they are used for but why do we need a separate entity for this)? Isn't it just the same U-Boot in, well, very special configuration (minimal set of

Re: [U-Boot] SPL framework re-design

2011-06-26 Thread Ilya Yanok
Hello everybody, I've read the whole thread and I really like what Daniel suggests but I just want to speak it in a little bit different words. I wonder why do we need this whole spl thing in the first place (well, surely I know what they are used for but why do we need a separate entity for

[U-Boot] [PATCH 3/3] tools/Makefile: fix errors during deps generation for envcrc

2011-06-20 Thread Ilya Yanok
From: Mike Frysinger vap...@gentoo.org Dependencies for the envcrc objects should be generated only in the case we are going to build envcrc itself. Otherwise it's a waste of work and can lead to the (harmless but annoying) errors during dependency generation. Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH 1/3] config.mk: move LDSCRIPT processing to the top-level Makefile

2011-06-20 Thread Ilya Yanok
LDSCRIPT is used only from the top-level Makefile and only when the system is configured so we can move LDSCRIPT and CONFIG_SYS_LDSCRIPT related logic into the top level Makefile and under configured condition to avoid errors when building tools from unconfigured tree. Signed-off-by: Ilya Yanok

[U-Boot] [PATCH 2/3] Makefile: move $(VERSION_FILE) rule out of ifeq configured

2011-06-20 Thread Ilya Yanok
mkimage relies on autogenerated version so we need to move $(VERSION_FILE) rule out of ifeq and make tools rule depend on it to be able to run 'make tools' from the unconfigured tree. Signed-off-by: Ilya Yanok ya...@emcraft.com --- Makefile | 36 ++-- 1 files

Re: [U-Boot] [PATCH] tools: make it possible to build tools unconfigured

2011-06-19 Thread Ilya Yanok
Hi Mike, thanks for your comments. On 18.06.2011 23:03, Mike Frysinger wrote: i think you'll need to split this up in logical sep changesets since you are fixing different problems. Ok, will do. Things changed: - config.mk disable 'ld script not found error' in case if we are building

Re: [U-Boot] [PATCH] tools: make it possible to build tools unconfigured

2011-06-19 Thread Ilya Yanok
Hi Mike, On 19.06.2011 22:27, Mike Frysinger wrote: i might be thinking of a different env_embedded situation. a different problem with your patch to tools/Makefile: you copied the same logic multiple times which means more bitrot. Yes, that's a good point. Your patch looks good to me.

[U-Boot] [PATCH] tools: make it possible to build tools unconfigured

2011-06-15 Thread Ilya Yanok
mkimage relies on autogenerated version so we need to move $(VERSION_FILE) rule out of ifeq and make tools rule depend on it. - tools/Makefile put common/env_embedded.o and envcrc.o to object list conditionally. This fixes errors during dependency generation. Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH 3/5] led_display: remove unused DISPLAY_MARK define

2010-10-21 Thread Ilya Yanok
DISPLAY_MARK subcommand of display_set() is not used anywhere so we can remove it safely. Signed-off-by: Ilya Yanok ya...@emcraft.com --- doc/README.LED_display |1 - include/led-display.h |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/doc/README.LED_display b/doc

[U-Boot] [PATCH 1/5] a4m072: changes to the default environment

2010-10-21 Thread Ilya Yanok
The default values for 'addip' and 'norargs' changed per customer request. Everything else cleaned up to fit into 80 symbol line. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/configs/a4m072.h | 58 + 1 files changed, 37 insertions(+), 21

[U-Boot] Various clean-ups for a4m072 board support

2010-10-21 Thread Ilya Yanok
implementation [PATCH 3/5] led_display: remove unused DISPLAY_MARK define [PATCH 4/5] cfi_flash: handle 'chip size exceeds address window' situation [PATCH 5/5] a4m072: add CONFIG_SYS_FLASH_BANKS_SIZES define Regards, Ilya. Signed-off-by: Ilya Yanok ya...@emcraft.com

[U-Boot] [PATCH 4/5] cfi_flash: handle 'chip size exceeds address window' situation

2010-10-21 Thread Ilya Yanok
for compatibility). If non-zero flash bank size is provided and detected chip size is bigger than provided address window size the warning will be displayed and flash chip will be truncated. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/mtd/cfi_flash.c | 28 +++- 1 files

[U-Boot] [PATCH 5/5] a4m072: add CONFIG_SYS_FLASH_BANKS_SIZES define

2010-10-21 Thread Ilya Yanok
This patch adds CONFIG_SYS_FLASH_BANKS_SIZES define to make use of new cfi_flash driver ability to detect flash chips that are bigger than a corresponding address window (we have such situation on some revs of a4m072). Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/configs/a4m072.h

[U-Boot] [PATCH 2/5] a4m072: change 'display' command implementation

2010-10-21 Thread Ilya Yanok
-off-by: Ilya Yanok ya...@emcraft.com --- board/a4m072/a4m072.c | 62 ++-- 1 files changed, 23 insertions(+), 39 deletions(-) diff --git a/board/a4m072/a4m072.c b/board/a4m072/a4m072.c index ae7ccbb..09a5a51 100644 --- a/board/a4m072/a4m072.c +++ b

Re: [U-Boot] [PATCH 1/4] A4M072: Added support for the board.

2010-10-12 Thread Ilya Yanok
13.10.2010 0:45, Wolfgang Denk wrote: Applied, thanks. Ouch... I'm going to clear these patches as you requested (big NOR flash, changed default environment, changed character mapping, added dot character) and repost updated patches in a few days... Could you please rollback the whole series?

Re: [U-Boot] [PATCH 1/5] mpc83xx/pcie: make it compile with PCIE2 unconfigured

2010-09-17 Thread Ilya Yanok
Hi Kim, On 17.09.2010 03:54, Kim Phillips wrote: +#if defined(CONFIG_SYS_PCIE2_CFG_BASE) defined(CONFIG_SYS_PCIE2_SIZE) #define PCIE_MAX_BUSES 2 +#else +#define PCIE_MAX_BUSES 1 +#endif Technically this should be an indirect function of MPC8308, but what's the problem with

[U-Boot] [PATCH 1/5] mpc83xx/pcie: make it compile with PCIE2 unconfigured

2010-09-17 Thread Ilya Yanok
MPC8308 has only one PCIE host controller so we want it to compile without CONFIG_SYS_PCIE2_CFG_{BASE,SIZE} defined. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/powerpc/cpu/mpc83xx/pcie.c | 38 +- 1 files changed, 25 insertions(+), 13 deletions

[U-Boot] [PATCH 2/5] mpc83xx: add support for setting PCIE clocks

2010-09-17 Thread Ilya Yanok
This patch adds support for setting PCIE clocks in cpu_init.c by providing CONFIG_SYS_SCCR_PCIEXP{1,2} in configuration. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch

[U-Boot] [PATCH 4/5] MPC8308RDB: various clean ups

2010-09-17 Thread Ilya Yanok
* defines instead of hardcoding Signed-off-by: Ilya Yanok ya...@emcraft.com --- board/freescale/mpc8308rdb/mpc8308rdb.c | 20 +++--- board/freescale/mpc8308rdb/sdram.c | 31 + include/configs/MPC8308RDB.h| 46 +- 3 files

[U-Boot] [PATCH 5/5] mpc8308_p1m: support for MPC8308 P1M board

2010-09-17 Thread Ilya Yanok
This patch provides support for MPC8308 P1M board with the following set of features: Dual UART is supported NOR flash is supported Both TSEC Ethernet controllers are supported PCI Express initialization is supported Both I2C controllers are supported Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH 3/5] mpc8308: add SICR{L,H} fields definitions

2010-09-17 Thread Ilya Yanok
This patch adds defines to set supported fields in System I/O Configuration Registers High and Low on Freescale MPC8308 CPU. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/mpc83xx.h | 48 1 files changed, 48 insertions(+), 0 deletions

[U-Boot] [PATCH 2/5] mpc83xx: add support for setting PCIE clocks

2010-09-14 Thread Ilya Yanok
This patch adds support for setting PCIE clocks in cpu_init.c by providing CONFIG_SYS_SCCR_PCIEXP{1,2} in configuration. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch

[U-Boot] [PATCH 3/5] mpc8308: add SICR{L,H} fields definitions

2010-09-14 Thread Ilya Yanok
This patch adds defines to set supported fields in System I/O Configuration Registers High and Low on Freescale MPC8308 CPU. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/mpc83xx.h | 48 1 files changed, 48 insertions(+), 0 deletions

[U-Boot] [PATCH 1/5] mpc83xx/pcie: make it compile with PCIE2 unconfigured

2010-09-14 Thread Ilya Yanok
MPC8308 has only one PCIE host controller so we want it to compile without CONFIG_SYS_PCIE2_CFG_{BASE,SIZE} defined. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/powerpc/cpu/mpc83xx/pcie.c | 47 -- 1 files changed, 34 insertions(+), 13 deletions

[U-Boot] [PATCH 4/5] MPC8308RDB: various clean ups

2010-09-14 Thread Ilya Yanok
* defines instead of hardcoding Signed-off-by: Ilya Yanok ya...@emcraft.com --- board/freescale/mpc8308rdb/mpc8308rdb.c | 19 +++-- board/freescale/mpc8308rdb/sdram.c | 31 + include/configs/MPC8308RDB.h| 46 +- 3 files

[U-Boot] [PATCH 5/5] mpc8308_p1m: support for MPC8308 P1M board

2010-09-14 Thread Ilya Yanok
This patch provides support for MPC8308 P1M board with the following set of features: Dual UART is supported NOR flash is supported Both TSEC Ethernet controllers are supported PCI Express initialization is supported Both I2C controllers are supported Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH 3/4] a4m072: led display support

2010-09-09 Thread Ilya Yanok
This patch adds support for LED display on a4m072 board. Hardware is capable of displaying only one symbol at any time. We support displaying two symbols in software (via blinking). Signed-off-by: Ilya Yanok ya...@emcraft.com --- board/a4m072/a4m072.c| 174

[U-Boot] [PATCH 4/4] a4m072: support for SHOW_BOOT_PROGRESS feature using LED display

2010-09-09 Thread Ilya Yanok
blinking. Boot progress codes are displayed with decimal got unset (as opposed to 'display' command output). Signed-off-by: Ilya Yanok ya...@emcraft.com --- board/a4m072/a4m072.c| 79 +++--- include/configs/a4m072.h |2 + 2 files changed, 76 insertions

[U-Boot] [PATCH 1/4] A4M072: Added support for the board.

2010-09-09 Thread Ilya Yanok
From: Sergei Poselenov p...@pollux.denx.de This patch provides support for the A4M072 board with the following features: UART NOR flash FEC Ethernet External SRAM I2C EEPROM CompactFlash cards on IDE/ATA port USB Host PCI initialization The 7-segment LED indicator is not yet supported.

[U-Boot] [PATCH][v3] mpc8308_p1m: support for MPC8308 P1M board

2010-09-08 Thread Ilya Yanok
This patch provides support for MPC8308 P1M board with the following set of features: Dual UART is supported NOR flash is supported Both TSEC Ethernet controllers are supported PCI Express initialization is supported Both I2C controllers are supported Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH][v2] mpc8308_p1m: support for MPC8308 P1M board

2010-09-06 Thread Ilya Yanok
This patch provides support for MPC8308 P1M board with the following set of features: Dual UART is supported NOR flash is supported Both TSEC Ethernet controllers are supported PCI Express initialization is supported Both I2C controllers are supported Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH] mpc8308_p1m: support for MPC8308 P1M board

2010-08-25 Thread Ilya Yanok
This patch provides support for MPC8308 P1M board with the following set of features: Dual UART is supported NOR flash is supported Both TSEC Ethernet controllers are supported PCI Express initialization is supported Both I2C controllers are supported Signed-off-by: Ilya Yanok ya

[U-Boot] [PATCH] mpc5xxx_fec: add call to reset_phy() after PHY initialization

2010-08-19 Thread Ilya Yanok
the PHY from the driver) so we need to add call to reset_phy() directly in the driver. Cc: Ben Warren biggerbadder...@gmail.com Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/mpc5xxx_fec.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/net

Re: [U-Boot] [RFC] CONFIG_RESET_PHY_R feature is broken

2010-08-18 Thread Ilya Yanok
Hello Albert, Albert ARIBAUD albert.aribaud at free.fr writes: At the moment your problem is not being able to reset the PHY at times other than boot, i.e. the 'PHY API' would be limited to reset_phy() which is pretty much board-specific anyway. The problem is the PHY being reseted by the

[U-Boot] [RFC] CONFIG_RESET_PHY_R feature is broken

2010-08-17 Thread Ilya Yanok
Hello Ben, Everybody, some boards used to have their PHY quirks in board-specific reset_phy() function. This used to work because of reset_phy() being called later than Ethernet drivers initialization during startup. But nowadays some drivers (in particular I faced this problem using

[U-Boot] [PATCH] mpc5xxx_fec/motionpro: disable PHY initialization on motionpro board

2010-08-11 Thread Ilya Yanok
and now Ethernet on motionpro board is broken again. I haven't managed to find the true reason of such behavior so I've just disabled PHY initialization on motionpro board. Signed-off-by: Ilya Yanok ya...@emcraft.com --- drivers/net/mpc5xxx_fec.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions

Re: [U-Boot] [PATCH] mpc5xxx_fec/motionpro: disable PHY initialization on motionpro board

2010-08-11 Thread Ilya Yanok
Hello All, On 12.08.2010 02:34, Ilya Yanok wrote: Historically PHY intialization was disabled on motionpro board. Then at some point PHY init was enabled and only comment message was left. After looking once more at the history I've found that this problem was actually fixed by commit

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale (ICache issue)

2010-08-10 Thread Ilya Yanok
Hi Kim, 20.07.2010 4:33, Kim Phillips wrote: turning icache on early causes a different pattern of bus accesses when fetching code, and this might trigger bus accesses that interfere with code that sets bus configuration registers, such as the acr. Can you test this patch please?: This

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-07-20 Thread Ilya Yanok
Hi Kim, 20.07.2010 4:33, Kim Phillips wrote: Thanks for your advice but this doesn't help... turning icache on early causes a different pattern of bus accesses when fetching code, and this might trigger bus accesses that interfere with code that sets bus configuration registers, such as the

[U-Boot] [PATCH 2/2] MPC8308RDB: minimal support for devboard from Freescale

2010-07-07 Thread Ilya Yanok
-by: Ilya Yanok ya...@emcraft.com --- MAINTAINERS |4 + MAKEALL |1 + board/freescale/mpc8308rdb/Makefile | 52 +++ board/freescale/mpc8308rdb/config.mk|1 + board/freescale/mpc8308rdb/mpc8308rdb.c | 160

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-07-01 Thread Ilya Yanok
Hi Kim, On 01.07.2010 04:30, Kim Phillips wrote: This patch provides support for MPC8308ERDB development board from so, according to this document: http://cache.freescale.com/files/32bit/doc/user_guide/MPC8308RDBUG.pdf the board name is just 'mpc8308rdb', not 'mpc8308erdb'. AFAICT,

[U-Boot] [PATCH 1/2] mpc8308: support for Freescale MPC8308 cpu

2010-06-28 Thread Ilya Yanok
This patch adds basic support for Freescale MPC8308 CPU. Serial ports, NOR flash and integrated Ethernet controllers are supported. PCI Express is also supported. eSDHC, NAND and USB may work but aren't tested (using ULPI PHY requires additional patch). Signed-off-by: Ilya Yanok ya...@emcraft.com

[U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-28 Thread Ilya Yanok
-by: Ilya Yanok ya...@emcraft.com --- MAINTAINERS |4 + MAKEALL |1 + board/freescale/mpc8308erdb/Makefile | 52 +++ board/freescale/mpc8308erdb/config.mk |1 + board/freescale/mpc8308erdb/mpc8308erdb.c | 160

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-24 Thread Ilya Yanok
Dear Kim, On 23.06.2010 04:17, Kim Phillips wrote: +#define CONFIG_SYS_HID0_FINAL (HID0_ENABLE_MACHINE_CHECK | \ + HID0_ENABLE_DYNAMIC_POWER_MANAGMENT) | HID0_ENABLE_INSTRUCTION_CACHE? I've enabled icache and now the board sometimes resets twice

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-24 Thread Ilya Yanok
Hi Kim, On 24.06.2010 22:00, Kim Phillips wrote: I've enabled icache and now the board sometimes resets twice after U-Boot 'reset' command: (It doesn't always stop at DRAM: line but that position is most frequent) Maybe you have some ideas on this subject? hmm, if it's

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-23 Thread Ilya Yanok
Hi Wolfgang, On 22.06.2010 22:14, Wolfgang Denk wrote: Entry to MAINTAINERS missing. Should I add you as a maintainer or myself? You did the actual work... but I fear I won't be able to maintain it... I don't have much free time to spend now... + return

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-23 Thread Ilya Yanok
Hi Ben, On 22.06.2010 23:10, Ben Warren wrote: +int board_eth_init(bd_t *bis) +{ +cpu_eth_init(bis);/* Initialize TSECs first */ I think it's wrong to ignore the return code here. What makes you think so? What can we do with the return code here? Print warning? If we return error

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-23 Thread Ilya Yanok
Hi Kim, Thanks for your review. On 23.06.2010 04:17, Kim Phillips wrote: MAKEALL |1 + Makefile |3 + board/freescale/mpc8308erdb/Makefile | 52 +++ board/freescale/mpc8308erdb/config.mk |1 +

Re: [U-Boot] [PATCH 1/2] mpc8308: support for Freescale MPC8308 cpu

2010-06-21 Thread Ilya Yanok
Dear Wolfgang, thanks for your review. On 21.06.2010 11:44, Wolfgang Denk wrote: This patch adds basic support for Freescale MPC8308 CPU. Serial ports, NOR flash and integrated Ethernet controllers are supported. PCI Express is also supported. eSDHC, NAND and USB may work but aren't tested

Re: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-21 Thread Ilya Yanok
/mpc8308erdb.c @@ -0,0 +1,154 @@ +/* + * Copyright (C) 2010 Freescale Semiconductor, Inc. + * Copyright (C) 2010 Ilya Yanok, Emcraft Systems, ya...@emcraft.com + * + * Author: Freescale unknown Maybe Initial author ? Dropped this line. +int board_early_init_f(void

[U-Boot] [PATCH] Makefile: always call date with LANG=C set

2010-06-21 Thread Ilya Yanok
Ensure that date is called only with LANG=C locale set to make dates locale neutral thus preventing lurking of non-ASCII characters into U-Boot binary. Signed-off-by: Ilya Yanok ya...@emcraft.com --- Makefile |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile

[U-Boot] [PATCH 0/2] Support for MPC8308ERDB board

2010-06-20 Thread Ilya Yanok
These patches add support for MPC8308 based development board from Freescale. 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 2/2] MPC8308ERDB: minimal support for devboard from Freescale

2010-06-20 Thread Ilya Yanok
but not fully tested: I2C (used to get the board revision) I2C-connected RTC VSC7385 switch Signed-off-by: Ilya Yanok ya...@emcraft.com --- MAKEALL |1 + Makefile |3 + board/freescale/mpc8308erdb/Makefile | 52

[U-Boot] [PATCH 1/2] mpc8308: support for Freescale MPC8308 cpu

2010-06-20 Thread Ilya Yanok
This patch adds basic support for Freescale MPC8308 CPU. Serial ports, NOR flash and integrated Ethernet controllers are supported. PCI Express is also supported. eSDHC, NAND and USB may work but aren't tested (using ULPI PHY requires additional patch). Signed-off-by: Ilya Yanok ya...@emcraft.com

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

2009-08-20 Thread Ilya Yanok
Hi Mike, Mike Frysinger wrote: +#ifdef CONFIG_JFFS2_SUMMARY +static u32 sum_get_unaligned32(u32 *ptr) +{ +u32 val; +u8 *p = (u8 *)ptr; + +val = *p | (*(p + 1) 8) | (*(p + 2) 16) | (*(p + 3) 24); + +return __le32_to_cpu(val); +} + +static u16 sum_get_unaligned16(u16

[U-Boot] [PATCH] jffs2: clean the cache in case of malloc fails in build_lists

2009-08-12 Thread Ilya Yanok
We should call jffs2_clean_cache() if we return from jffs2_build_lists() with an error to prevent usage of incomplete lists. Also we should free() a local buffer to prevent memory leaks. Signed-off-by: Ilya Yanok ya...@emcraft.com --- fs/jffs2/jffs2_1pass.c | 17 ++--- 1 files

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

2009-08-12 Thread Ilya Yanok
Hi Fabio, Fabio Estevam wrote: cpu/arm926ejs/mx27/generic.c | 65 include/asm-arm/arch-mx27/imx-regs.h Shouldn't these two files be part of a separate patch as they are not specific to the iMX27 Lite board support? Well, I thought about this... Let's wait for a

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

2009-08-10 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] mxc_nand: add nand driver for MX2/MX3

2009-08-10 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 | 880

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

2009-08-02 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] imx27lite: add support for imx27lite board from LogicPD

2009-08-02 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] mxc_nand: add nand driver for MX2/MX3

2009-08-02 Thread Ilya Yanok
Hi Scott, thanks for the review. Scott Wood wrote: +/* OOB placement block for use with hardware ecc generation */ +static struct nand_ecclayout nand_hw_eccoob = { +.eccbytes = 5, +.eccpos = {6, 7, 8, 9, 10}, +.oobfree = {{0, 5}, {11, 5}, } +}; + +#ifndef

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

2009-07-22 Thread Ilya Yanok
Hi Jean-Christophe, Jean-Christophe PLAGNIOL-VILLARD wrote: +static int imx27lite_devices_init(void) +{ +struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; +int i; +unsigned int mode[] = { +PD0_AIN_FEC_TXD0, +PD1_AIN_FEC_TXD1, +

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

2009-07-21 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

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

2009-07-17 Thread Ilya Yanok
Hi Scott, please review the updated patch (will be posted as a follow-up). Scott Wood wrote: Please look at drivers/mtd/nand/mpc5121_nfc.c, which AFAICT is very similar hardware, and see if anything can be factored out into common code, and try to keep the rest looking the same except where

<    1   2   3   4   5   >