Re: [U-Boot] [U-Boot:RESEND][[PATCH 6/7] k2hk: add support for k2hk SOC and EVM

2014-02-10 Thread Vitaly Andrianov
On 02/10/2014 04:25 PM, Tom Rini wrote: On Fri, Feb 07, 2014 at 06:23:13PM -0500, Murali Karicheri wrote: k2hk EVM is based on Texas Instruments Keystone2 Hawking/Kepler SoC. Keystone2 SoC has ARM v7 Cortex-A15 MPCore processor. Please refer the ti/k2hk_evm/README for details on the board,

Re: [U-Boot] [U-Boot:RESEND][[PATCH 1/7] fdt: call ft_board_setup_ex() at the end of image_setup_libfdt()

2014-02-10 Thread Vitaly Andrianov
On 02/10/2014 04:25 PM, Tom Rini wrote: On Fri, Feb 07, 2014 at 06:23:08PM -0500, Murali Karicheri wrote: From: Vitaly Andrianov vita...@ti.com The keystone2 SOC requires to fix all 32 bit aliased addresses to their 36 physical format. This has to happen after all fdt nodes are added

[U-Boot] [PATCH] arm: implement find_next_zero_bit function

2015-02-05 Thread Vitaly Andrianov
This commit copies implementation of the find_next_zero_bit() from git://git.denx.de/u-boot.git/arch/mips/include/asm/bitops.h. v2014.07 The function is required to enable MCAST_TFTP support for ARM platforms. Signed-off-by: Vitaly Andrianov vita...@ti.com --- arch/arm/include/asm/bitops.h

[U-Boot] [PATCH] keystone2: ddr3: eliminate using global ddr3_size variable

2015-02-11 Thread Vitaly Andrianov
KS2 ddr3 initialization uses ddr3_size global variable before u-boot relocation. Even if the variable is not being used after relocation, writing to it corrupts relocation table. This patch removes the global ddr3_size variable and uses local one instead. Signed-off-by: Vitaly Andrianov vita

[U-Boot] [PATCH] net: keystone_net: move serdes setup to initialization function

2015-02-11 Thread Vitaly Andrianov
is being called. Signed-off-by: Vitaly Andrianov vita...@ti.com --- drivers/net/keystone_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/keystone_net.c b/drivers/net/keystone_net.c index bedab1d..35f1a57 100644 --- a/drivers/net/keystone_net.c +++ b

Re: [U-Boot] [PATCH] arm: implement find_next_zero_bit function

2015-02-11 Thread Vitaly Andrianov
On 02/05/2015 12:52 PM, Albert ARIBAUD wrote: Hello Vitaly, On Thu, 5 Feb 2015 11:24:46 -0500, Vitaly Andrianov vita...@ti.com wrote: This commit copies implementation of the find_next_zero_bit() from git://git.denx.de/u-boot.git/arch/mips/include/asm/bitops.h. v2014.07 The function

[U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-02-16 Thread Vitaly Andrianov
prefix that act as 1K NOP instructions before reaching 0xc001000. Signed-off-by: Vitaly Andrianov vita...@ti.com Acked-by: Murali Karicheri m-kariche...@ti.com Tested-by: Murali Karicheri m-kariche...@ti.com --- Makefile| 6 ++ board/ti/ks2_evm/README | 17 + 2

[U-Boot] [U-boot][PATCH v2] keystone2: add support for UART download

2015-02-17 Thread Vitaly Andrianov
to add 4K zeros prefix that act as 1K NOP instructions before reaching 0xc001000. Signed-off-by: Vitaly Andrianov vita...@ti.com Acked-by: Murali Karicheri m-kariche...@ti.com Tested-by: Murali Karicheri m-kariche...@ti.com --- Changes in V2: - removed extra EOL - MSMC replaced

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-02-16 Thread Vitaly Andrianov
On 02/16/2015 03:15 PM, Nishanth Menon wrote: On 02/16/2015 12:22 PM, Vitaly Andrianov wrote: Currently to flash u-boot image onto NAND or SPI NOR flash, very first time user need to use Code Composer Studio (CCS). This is cumbersome for an user not familiar with CCS. This patch add simpler

Re: [U-Boot] [U-boot][PATCH v2] keystone2: add support for UART download

2015-02-17 Thread Vitaly Andrianov
On 02/17/2015 12:17 PM, Nishanth Menon wrote: On 02/17/2015 10:39 AM, Vitaly Andrianov wrote: Currently to flash u-boot image onto NAND or SPI NOR flash, very first time user need to use Code Composer Studio (CCS). This is cumbersome for an user not familiar with CCS. This patch add simpler

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-02-18 Thread Vitaly Andrianov
On 02/17/2015 05:47 PM, Nishanth Menon wrote: On Tue, Feb 17, 2015 at 4:27 PM, Murali Karicheri m-kariche...@ti.com wrote: is complete the boot-loader sets the PC to the first MSMC address 0x0c00. The u-boot.bin is linked to the address 0x0c001000. why not just shift u-boot.bin to start

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-03-03 Thread Vitaly Andrianov
On 03/03/2015 12:27 PM, Nishanth Menon wrote: On 02/18/2015 09:35 AM, menon.nisha...@gmail.com wrote: On Wed, Feb 18, 2015 at 7:12 AM, Vitaly Andrianov vita...@ti.com wrote: On 02/17/2015 05:47 PM, Nishanth Menon wrote: On Tue, Feb 17, 2015 at 4:27 PM, Murali Karicheri m-kariche...@ti.com

Re: [U-Boot] [PATCH] arm: implement find_next_zero_bit function

2015-03-27 Thread Vitaly Andrianov
Hello Albert, On 03/27/2015 11:54 AM, Albert ARIBAUD wrote: Hello Vitaly, On Wed, 11 Feb 2015 14:11:12 -0500, Vitaly Andrianov vita...@ti.com wrote: On 02/05/2015 12:52 PM, Albert ARIBAUD wrote: Hello Vitaly, On Thu, 5 Feb 2015 11:24:46 -0500, Vitaly Andrianov vita...@ti.com wrote

Re: [U-Boot] [PATCH] keystone2: use detected ddr3a size

2015-06-23 Thread Vitaly Andrianov
On 06/18/2015 11:57 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 12:42:49PM -0400, Vitaly Andrianov wrote: On 06/15/2015 10:17 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:48:01AM -0400, Vitaly Andrianov wrote: KS2 u-boot detects the ddr3a size installed to EVM. The detected size can

Re: [U-Boot] keystone2: use correct EFUSE_BOOTROM fileds to configure speed

2015-06-23 Thread Vitaly Andrianov
On 06/19/2015 04:24 PM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:54:15AM -0400, Vitaly Andrianov wrote: The get_max_arm_speed() and get_max_dev_speed() used wrong register fields to get the maximum speeds. This commit fixes the bug. Signed-off-by: Vitaly Andrianov vita...@ti.com Reviewed

[U-Boot] [PATCH] keystone2: use detected ddr3a size

2015-06-15 Thread Vitaly Andrianov
. Because KS2 u-boot works in 32 bit address space the existing ram_size global data filed cannot be used. The maximum, which the get_ram_size() can detect is 2GB only. This patch creates the ddr3_size filed in the arch_global_data structure, which is used for that purpose. Signed-off-by: Vitaly

[U-Boot] [PATCH] keystone2: use SPD info to configure K2HK and K2E DDR3

2015-06-15 Thread Vitaly Andrianov
-off-by: Vitaly Andrianov vita...@ti.com --- board/ti/ks2_evm/Makefile| 5 +- board/ti/ks2_evm/ddr3_cfg.c | 2 + board/ti/ks2_evm/ddr3_cfg.h | 10 +- board/ti/ks2_evm/ddr3_k2e.c | 56 ++--- board/ti/ks2_evm/ddr3_k2hk.c | 103 - board/ti/ks2_evm/ddr3_spd.c | 531

[U-Boot] [PATCH] keystone2: use correct EFUSE_BOOTROM fileds to configure speed

2015-06-15 Thread Vitaly Andrianov
The get_max_arm_speed() and get_max_dev_speed() used wrong register fields to get the maximum speeds. This commit fixes the bug. Signed-off-by: Vitaly Andrianov vita...@ti.com --- arch/arm/mach-keystone/clock.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch

Re: [U-Boot] [PATCH] keystone2: use SPD info to configure K2HK and K2E DDR3

2015-06-15 Thread Vitaly Andrianov
On 06/15/2015 09:47 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:32:21AM -0400, Vitaly Andrianov wrote: This commit replaces hard-coded EMIF and PHY DDR3 configurations for predefined SODIMMs to a calculated configuration. The SODIMM parameters are read from SODIMM's SPD and used

Re: [U-Boot] [PATCH] keystone2: use detected ddr3a size

2015-06-17 Thread Vitaly Andrianov
On 06/15/2015 12:56 PM, York Sun wrote: On 06/15/2015 09:42 AM, Vitaly Andrianov wrote: On 06/15/2015 10:17 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:48:01AM -0400, Vitaly Andrianov wrote: KS2 u-boot detects the ddr3a size installed to EVM. The detected size can be used instead

Re: [U-Boot] [PATCH] keystone2: use detected ddr3a size

2015-06-15 Thread Vitaly Andrianov
On 06/15/2015 10:17 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:48:01AM -0400, Vitaly Andrianov wrote: KS2 u-boot detects the ddr3a size installed to EVM. The detected size can be used instead of environment variable. Because the ddr3 configuration is done before relocation we cannot use

[U-Boot] [PATCH] keystone2: switch to zImage boot on K2 devices

2015-07-01 Thread Vitaly Andrianov
Signed-off-by: Murali Karicheri m-kariche...@ti.com Signed-off-by: Vitaly Andrianov vita...@ti.com --- include/configs/k2e_evm.h | 4 ++-- include/configs/k2hk_evm.h | 4 ++-- include/configs/k2l_evm.h | 4 ++-- include/configs/ks2_evm.h | 8 4 files changed, 10 insertions(+), 10

[U-Boot] [PATCH] keystone2: Add support for bootz

2015-07-01 Thread Vitaly Andrianov
From: Lokesh Vutla lokeshvu...@ti.com Adding support for zImage loading. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com Signed-off-by: Vitaly Andrianov vita...@ti.com --- include/configs/ks2_evm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ks2_evm.h b/include/configs

[U-Boot] [PATCH 1/2] configs: ti_armv7_keystone2: fix initrd address at args_ramfs

2015-08-04 Thread Vitaly Andrianov
This patch set the correct initrd address to much rdaddr, which used at get_fs_ramfs commad. Fixes: 3e97f0b63c8e (configs: ti_armv7_keystone2: switch addresses to generic addresses) Signed-off-by: Vitaly Andrianov vita...@ti.com --- include/configs/ti_armv7_keystone2.h | 2 +- 1 file changed, 1

[U-Boot] [PATCH 2/2] configs: ti_armv7_keystone2: increase size reserved for initrd

2015-08-04 Thread Vitaly Andrianov
9MB reserved for initrd is not enough for default ramfs used for keystone devices, which is ~33MB. This patch increases the size up to 80MB. Signed-off-by: Vitaly Andrianov vita...@ti.com --- include/configs/ti_armv7_keystone2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 0/2] configs: ti_armv7_keystone2: fix default args_ramfs

2015-08-04 Thread Vitaly Andrianov
This series fixes couple of bugs in default args_ramfs environment variable Vitaly Andrianov (2): configs: ti_armv7_keystone2: fix initrd address at args_ramfs configs: ti_armv7_keystone2: increase size reserved for initrd include/configs/ti_armv7_keystone2.h | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH 1/2] configs: ti_armv7_keystone2: fix initrd address at args_ramfs

2015-08-04 Thread Vitaly Andrianov
On 08/04/2015 11:23 AM, Tom Rini wrote: On Tue, Aug 04, 2015 at 11:16:15AM -0400, Vitaly Andrianov wrote: This patch set the correct initrd address to much rdaddr, which used at get_fs_ramfs commad. Fixes: 3e97f0b63c8e (configs: ti_armv7_keystone2: switch addresses to generic addresses

[U-Boot] [PATCH] configs: ti_armv7_keystone2: replace addr_uboot with loadaddr

2015-08-03 Thread Vitaly Andrianov
This patch replaces not existing addr_uboot environment variable by loadaddr at get_uboot_net and burn_uboot_xxx commands. Otherwise these commands are broken. Signed-off-by: Vitaly Andrianov vita...@ti.com Acked-by: Nishanth Menon n...@ti.com --- include/configs/ti_armv7_keystone2.h | 6

Re: [U-Boot] [PATCH] ti_armv7_common: enable setexpr

2015-08-06 Thread Vitaly Andrianov
# r2=20 U-Boot# setexpr.l r3 $r1 + $r2 U-Boot# echo $r3 30 Reported-by: Vitaly Andrianov vita...@ti.com Suggested-by: Tom Rini tr...@ti.com Signed-off-by: Nishanth Menon n...@ti.com This needs to be done in the configs/ files now instead as we have CMD_EXPR there. In fact I'm not sure right now

Re: [U-Boot] [PATCH 1/8] ARM: keystone2: Cleanup SoC detection

2015-07-22 Thread Vitaly Andrianov
= (jtag_id 28) 0xf; + u32 jtag_id = __raw_readl(KS2_JTAG_ID_REG); + u8 rev = (jtag_id JTAGID_VARIANT_MASK) JTAGID_VARIANT_SHIFT; return rev; } Reviewed-by: Vitaly Andrianov vita...@ti.com ___ U-Boot mailing list U

Re: [U-Boot] [PATCH 2/8] ARM: keystone2: Enable CONFIG_DISPLAY_CPUINFO

2015-07-22 Thread Vitaly Andrianov
CONFIG_BOARD_EARLY_INIT_F +#define CONFIG_DISPLAY_CPUINFO /* SoC Configuration */ #define CONFIG_ARCH_CPU_INIT Reviewed-by: Vitaly Andrianov vita...@ti.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] keystone2: add high memory test

2015-07-22 Thread Vitaly Andrianov
On 07/21/2015 05:28 PM, Tom Rini wrote: On Wed, Jul 08, 2015 at 11:51:39AM -0400, Vitaly Andrianov wrote: Keystone2 SOC physical DDR3 address range is outside the first 4GB and cannot be entirely accessible without MMU enabled. Only first 2GB of the physical memory have 32-bits aliased

Re: [U-Boot] [PATCH 6/8] ARM: keystone2: Cleanup init_pll definition

2015-07-23 Thread Vitaly Andrianov
On 07/22/2015 11:39 AM, Lokesh Vutla wrote: This is just a cosmetic change that makes the calling of pll init code looks much cleaner. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/clock.c | 12 ++--- arch/arm/mach-keystone/include/mach/clock.h

Re: [U-Boot] [PATCH 6/8] ARM: keystone2: Cleanup init_pll definition

2015-07-24 Thread Vitaly Andrianov
Lokesh, On 07/24/2015 12:20 AM, Lokesh Vutla wrote: Hi Vitaly, On Thursday 23 July 2015 11:31 PM, Vitaly Andrianov wrote: On 07/22/2015 11:39 AM, Lokesh Vutla wrote: This is just a cosmetic change that makes the calling of pll init code looks much cleaner. Signed-off-by: Lokesh Vutla

Re: [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-17 Thread Vitaly Andrianov
/configs/ks2_evm.h b/include/configs/ti_armv7_keystone2.h similarity index 100% rename from include/configs/ks2_evm.h rename to include/configs/ti_armv7_keystone2.h Acked-By: Murali Karicheri m-kariche...@ti.com Acked-by: Vitaly Andrianov vita...@ti.com

Re: [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR

2015-07-17 Thread Vitaly Andrianov
(CONFIG_SYS_SDRAM_BASE + 0x100) #define CONFIG_SUPPORT_RAW_INITRD Acked-By: Murali Karicheri m-kariche...@ti.com Acked-by: Vitaly Andrianov vita...@ti.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] keystone2: add wfi in to the core_spin loop

2015-07-08 Thread Vitaly Andrianov
When core A turning of core B, via tetris DPSC it places the core B DPSC into transitional state. The core B has to execute wfi instruction to move its DPSC to the OFF state. This patch add such instruction. Signed-off-by: Vitaly Andrianov vita...@ti.com --- arch/arm/mach-keystone/cmd_mon.c | 9

[U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
] was used for that purpose. Even if that worked on K2HK devices, the correct field for K2HK is the pkt_info. The netcp_send() configure appropriate HD info field depending on the direct_info of the currently using netcp. Signed-off-by: Vitaly Andrianov vita...@ti.com Acked-by: Murali Karicheri m

[U-Boot] [PATCH] keystone2: add high memory test

2015-07-08 Thread Vitaly Andrianov
memory to the first 4GB address range. Signed-off-by: Vitaly Andrianov vita...@ti.com --- arch/arm/mach-keystone/Makefile | 3 +- arch/arm/mach-keystone/highmem.c | 162 +++ 2 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach

[U-Boot] [PATCH] keystone2: net: add mcast function to keyston2 Ethernet driver

2015-07-08 Thread Vitaly Andrianov
The MCAST_TFTP support requires that network drivers has mcast functon implemented. This commit adds dummy keystone2_eth_bcast_addr() to meet the requirement. As far as the driver doesn't use ALE and doesn't filter any incoming packets, the function is empty. Signed-off-by: Vitaly Andrianov vita

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
On 07/08/2015 01:50 PM, ivan.khoronzhuk wrote: Vitaly, On 08.07.15 20:26, Vitaly Andrianov wrote: On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
to check this for each sent packet. You better statically assign how to use this field depending on h/w revision, using #if. On 08.07.15 18:45, Vitaly Andrianov wrote: K2L and L2E have different from K2HK EthSS version, which uses tag_info field for destination slave port. This commit adds

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in drivers/net/keystone_net.c The keystone navigator

Re: [U-Boot] [PATCH] ti: k2g: increase phy autoneg timeout

2016-03-14 Thread Vitaly Andrianov
On 03/11/2016 12:14 PM, Tom Rini wrote: On Fri, Mar 11, 2016 at 08:23:04AM -0500, Vitaly Andrianov wrote: After power cycle of a K2G EVM dhcp fails due to a auto-negotiation timeout. This commit increases the timeout to fix the issue. Signed-off-by: Vitaly Andrianov <vita...@ti.

[U-Boot] [PATCH] ti: k2g: increase phy autoneg timeout

2016-03-11 Thread Vitaly Andrianov
After power cycle of a K2G EVM dhcp fails due to a auto-negotiation timeout. This commit increases the timeout to fix the issue. Signed-off-by: Vitaly Andrianov <vita...@ti.com> --- board/ti/ks2_evm/board.c | 2 +- include/configs/k2g_evm.h | 1 + 2 files changed, 2 insertions(+), 1 de

[U-Boot] [PATCH] configs: ti_armv7_keystone2: make SYS_TEXT_BASE configurable at build time

2016-03-28 Thread Vitaly Andrianov
definition to make command. Signed-off-by: Vitaly Andrianov <vita...@ti.com> --- include/configs/ti_armv7_keystone2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h index a7206f4..76b901bf 100644 --- a/i

Re: [U-Boot] [PATCH] configs: ti_armv7_keystone2: make SYS_TEXT_BASE configurable at build time

2016-03-29 Thread Vitaly Andrianov
On 03/28/2016 03:32 PM, Tom Rini wrote: On Mon, Mar 28, 2016 at 03:15:59PM -0400, Vitaly Andrianov wrote: U-boot for general purpose KS2 devices is loaded to the beginning of the internal memory (0x0c00). Secure devices uses this memory and CONFIG_SYS_TEXT_BASE has to be different